Skip to content

A weather dashboard with a 5 day forecast that will run in the browser and feature dynamically updated HTML and CSS.

Notifications You must be signed in to change notification settings

malloryfaria/weather-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Weather Dashboard

Description

A weather dashboard with a 5 day forecast that will run in the browser and feature dynamically updated HTML and CSS.

Build status

Live

Deployed application

https://malloryfaria.github.io/weather-dashboard/

Screenshots

Weather Dashboard Screenshot

Tech/framework used

Built with

  • HTML
  • JavaScript
  • JQuery
  • BootStrap
  • OpenWeather API
  • Axios

Code Example

    // Listener for the click on the search button

    $(search).on("click",function() {
        var searchTerm = input.value;

        // Ensure user input a city name

        if (searchTerm) {
            getWeather(searchTerm);
            searchHistory.push(searchTerm);
            localStorage.setItem("search",JSON.stringify(searchHistory));
            loadSearchHistory();

          } 
          // If user didn't input a value, alert them
          else {
            alert("Please enter a city name");
          }
          $("#city-input").val("");  
    })

License

None

© Mallory

About

A weather dashboard with a 5 day forecast that will run in the browser and feature dynamically updated HTML and CSS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published