$(function() { $.simpleWeather({ zipcode: '60616', unit: 'f', success: function(weather) { html = '
'+weather.city+', '+weather.region+'
'; html += 'Current: '+weather.temp+'° '+weather.units.temp+'
Today\'s High: '+weather.high+'° '+weather.units.temp+'
Today\'s Low: '+weather.low+'° '+weather.units.temp+'
Last updated: '+weather.updated+'
'; $(".weather").html(html); }, error: function(error) { $(".weather").html(''+error+'
'); } }); $.simpleWeather({ zipcode: '60616', unit: 'f', success: function(weather) { html = ''+weather.city+', '+weather.region+'
'; html += 'Current: '+weather.temp+'° '+weather.units.temp+'
Today\'s High: '+weather.high+'° '+weather.units.temp+'
Today\'s Low: '+weather.low+'° '+weather.units.temp+'
';
html += '';
html += 'Wind: '+weather.wind.direction+' '+weather.wind.speed+' '+weather.units.speed+'
Wind Chill: '+weather.wind.chill+'
Currently: '+weather.currently+'
'; html += 'Humidity: '+weather.humidity+'
Pressure: '+weather.pressure+'
Rising: '+weather.rising+'
Visibility: '+weather.visibility+'
Heat Index: '+weather.heatindex+'"
'; html += 'Sunrise: '+weather.sunrise+'
Sunset: '+weather.sunset+'
Forecast: '+weather.forecast+'
'+error+'
'); } }); $.simpleWeather({ zipcode: '60616', unit: 'f', success: function(weather) { html = 'Tomorrow
'; html += ''+weather.tomorrow.day+' '+weather.tomorrow.date+'
'; html += 'Tomorrow\'s High/Low: '+weather.tomorrow.high+'/'+weather.tomorrow.low+'Last updated: '+weather.updated+'
'; //html += 'View forecast at Yahoo! Weather
'; $(".weather3").html(html); }, error: function(error) { $(".weather3").html(''+error+'
'); } }); });