How yamaan18/weather-lens works
A small browser-based weather app: the user searches for a city, the home page fetches current conditions and stores them in session storage, then the weather page displays them and fetches a five-day forecast. Both pages also draw the animated cloud background. The HTML and CSS are present in the tree but their contents were not sampled, so page-to-script wiring is not asserted.
Main entry points: script.js Search and validation · index.html Search page · weather.html Weather page · weather.js Current conditions
Components 11
City search
- Search page
index.html - Search and validation
script.js - Current weather API
- Session storage
Weather results
- Weather page
weather.html - Current conditions
weather.js - Forecast loading and display
weather.js - Forecast API
Shared visuals
- Cloud animation
script.js - Cloud animation
weather.js
Other components
- User
Connections 11
- User → Search page: opens
- Search page → Search and validation: hosts
- Search and validation → Current weather API: fetches weather
script.js - Search and validation → Session storage: stores result
script.js - Search and validation → Weather page: navigates to
script.js - Weather page → Current conditions: hosts
- Current conditions → Session storage: reads result
weather.js - Current conditions → Forecast loading and display: loads forecast
weather.js - Forecast loading and display → Forecast API: fetches forecast
weather.js - Search page → Cloud animation: hosts
- Weather page → Cloud animation: hosts