simpleWeather in https
This commit is contained in:
parent
9607998bb5
commit
a273ff182d
|
@ -25,7 +25,7 @@
|
|||
|
||||
var now = new Date();
|
||||
|
||||
var weatherUrl = 'http://query.yahooapis.com/v1/public/yql?format=json&rnd='+now.getFullYear()+now.getMonth()+now.getDay()+now.getHours()+'&diagnostics=true&callback=?&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&q=';
|
||||
var weatherUrl = 'https://query.yahooapis.com/v1/public/yql?format=json&rnd='+now.getFullYear()+now.getMonth()+now.getDay()+now.getHours()+'&diagnostics=true&callback=?&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&q=';
|
||||
if(options.location !== '') {
|
||||
weatherUrl += 'select * from weather.forecast where location in (select id from weather.search where query="'+options.location+'") and u="'+options.unit+'"';
|
||||
} else if(options.zipcode !== '') {
|
||||
|
@ -132,4 +132,4 @@
|
|||
return this;
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
||||
})(jQuery);
|
||||
|
|
Reference in New Issue