Skip to content

Instantly share code, notes, and snippets.

@fleeting
Created October 30, 2012 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fleeting/3983539 to your computer and use it in GitHub Desktop.
Save fleeting/3983539 to your computer and use it in GitHub Desktop.
Can I use different weather icons instead of Yahoo's? [example]
$.simpleWeather({
zipcode: '76309',
unit: 'f',
success: function(weather) {
html = '<h2>'+weather.city+', '+weather.region+'</h2>';
html += '<img style="float:left;" width="125px" src="images/weather/'+weather.code+'.png">';
html += '<p>'+weather.temp+'&deg; '+weather.units.temp+'<br /><span>'+weather.currently+'</span></p>';
html += '<a href="'+weather.link+'">View Forecast &raquo;</a>';
$("#weather").html(html);
},
error: function(error) {
$("#weather").html("<p>"+error+"</p>");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment