Skip to content

A simple jQuery weather widget which uses the Yahoo Weather API.

Notifications You must be signed in to change notification settings

gr8pathik/WeatherWidget

 
 

Repository files navigation

WeatherWidget

A simple jQuery weather widget which uses the Yahoo Weather API.

Weather Widget Preview

Example

Add a div element to a page with either an id or class to identify it.

<body>
    <div id="weather-widget"></div>
</body>

Call the WeatherWidget function on the element and specify the required zipCode configuration property.

$('#weather-widget').weatherWidget({
    zipCode: '22102'
});

Installation

Ensure that jQuery is referenced and add the weatherWidget.min.css stylesheet and the weatherWidget.min.js javascript to the page.

<link href="weatherWidget.min.css" rel="stylesheet" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="weatherWidget.min.js"></script>

About

A simple jQuery weather widget which uses the Yahoo Weather API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.0%
  • CSS 27.2%
  • HTML 12.8%