var options = {
location: 40.7127+','+ 74.0059, // New York
unit: 'c',
success: function(weather) {
html = '
'
html += weather.temp+'°'+weather.units.temp+'
';
html += '- '+weather.city+', '+weather.region +'
';
html += '- '+weather.currently+'
';
$("#weather").html(html);
},
error: function(error) {
$("#weather").html(''+error+'
');
}
}
Weather.options = options