This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var target = ".target div img"; | |
var dest = "#header_img"; | |
var link = jQuery(target).attr("src"); | |
console.log(link); | |
jQuery(dest).css("backgroundImage","url('+link+')"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///// ---------- DATE Split Color & Remove Middle Characters ---------- ////// | |
jQuery('.mod_events_latest_date').each(function(i,val){ | |
var wordArray = val.innerHTML.split(" "); | |
var string = wordArray[0]; | |
var a = string.substring(0,1); | |
var b = string.substring(string.length-1,string.length); | |
var first = a += b; | |
var second = ""; | |
if (wordArray.length > 2){ | |
for (i=1;i<wordArray.length;i++){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('.home #bottom_in h3').each(function(i,val){ | |
var titleWords = val.innerHTML.split(" "); | |
var first = titleWords[0] + " "; | |
var second = ""; | |
if (titleWords.length > 2){ | |
for (i=1;i<titleWords.length;i++){ | |
second += titleWords[i]+" "; | |
} | |
}else{ | |
second = titleWords[1]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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+'°'+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>'; |
NewerOlder