Skip to content

Instantly share code, notes, and snippets.

View AlphaNerd's full-sized avatar
💭
Nerding as always

J.Coleman AlphaNerd

💭
Nerding as always
View GitHub Profile
@AlphaNerd
AlphaNerd / gist:48f6b1ff0f894d1ba5d3
Created April 1, 2015 19:17
Basic translation script for SimpleWeather.js - Translates to French once weather.currently is passed in to function.
var daysCast = 1;
jQuery.simpleWeather({
woeid: '2357536', //2357536
location: 'Shediac,NB',
unit: 'c',
success: function(weather) {
html = '<div id="an-todayImage"><img src="'+weather.forecast[0].image+'"/></div>';
html += '<div id="an-todayTemp" class="uk-width-small-1-2"><h1>'+weather.temp+'&deg;'+weather.units.temp+'</h1></div>';
html += '<div><ul style="padding-top:15px;padding-left:15px!important;"><li style="display:inline;margin-right:10px;"><b>'+weather.city+', '+weather.region+'</b><br></li>';
html += '<li style="display:inline;margin-right:10px;" class="currently">'+checkWXLang(weather.currently)+'</li>';