weather works
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
var options = {
|
||||
location: 40.7127+','+ 74.0059, // New York
|
||||
unit: 'c',
|
||||
success: function(weather) {
|
||||
html = '<h2><i class="sw icon-'+weather.code+'"></i> '
|
||||
html += weather.temp+'°'+weather.units.temp+'</h2>';
|
||||
html += '<ul><li>'+weather.city+', '+weather.region +'</li>';
|
||||
html += '<li class="currently">'+weather.currently+'</li>';
|
||||
|
||||
$("#weather").html(html);
|
||||
},
|
||||
error: function(error) {
|
||||
$("#weather").html('<p>'+error+'</p>');
|
||||
}
|
||||
}
|
||||
|
||||
Weather.options = options
|
||||
|
||||
Reference in New Issue
Block a user