malloryfaria / weather-dashboard

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

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

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


Languages

Language:JavaScript 61.9%Language:HTML 35.0%Language:CSS 3.1%