Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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