2
0
mirror of https://github.com/erikflowers/weather-icons.git synced 2025-10-13 07:52:12 -06:00
2013-07-01 18:30:35 -06:00

20 lines
1.8 KiB
JavaScript

// Generated by CoffeeScript 1.6.1
(function() {
$.simpleWeather({
zipcode: "84095",
woeid: "2496395",
location: "",
unit: "f",
success: function(weather) {
var html;
html = " <section class=\"weather container\"> <div class=\"row-fluid\"> <div class=\"col-sm-12\"> <div class=\"currently\">Partly Cloudy</div> </div> </div> <div class=\"row-fluid\"> <div class=\"col-sm-12\"> <div class=\"mainTemp\"> <div class=\"temp\">" + weather.temp + "&deg;</div> <div class=\"highLow\"> <div class=\"high\">" + weather.high + "</div> <div class=\"low\">" + weather.low + "</div> </div> </div> <div class=\"mainIcon\"><i class=\"weather-" + weather.code + "-" + weather.timeOfDay + "\"></i></div> </div> </div> <div class=\"row-fluid\"> <div class=\"col-sm-12\"> <div class=\"tomorrow weatherseparator\"> <div class=\"day\"><span class=\"name\">Saturday</span><span class=\"condition\">Sunny</span></div> <div class=\"temps\"><i class=\"weather-" + weather.tomorrow.code + "-" + weather.timeOfDay + " tomorrow-icon\"></i><span class=\"high\">" + weather.tomorrow.high + "</span><span class=\"low\">" + weather.tomorrow.low + "</span></div> </div> </div> </div> </section> ";
return $("#weather").html(html);
},
error: function(error) {
return $("#weather").html("<p>" + error + "</p>");
}
});
}).call(this);