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>'; |
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
///// ---------- 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
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
#map_canvas { | |
width: 400px; | |
height: 400px; | |
margin: 0 auto; | |
} | |
.info { | |
display:none; | |
} |
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
body{ | |
background:#fff; | |
} | |
#map{ | |
height: 300px; | |
} | |
#legend{ | |
width:100%; | |
padding:5px; | |
text-align:left; |
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
.user-box{ | |
margin:5px; | |
display:inline-block; | |
} | |
.user-image{ | |
max-width:100px; | |
max-height:100px; | |
border-radius:100px; | |
overflow:hidden; | |
margin:5px; |
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
setTimeout(function(){ //// Timeout required to grab iFrame info after Disqus load | |
var newURL = jQuery(".moduletable-lang a").attr("href"); | |
var curURL = decodeURIComponent(jQuery("iframe").attr("src")); | |
var newTitle = "1211-new-brunswick-lagging-behind-other-parts-of-canada-on-wilderness-protection-cpaws-report"; | |
if (jQuery("body").hasClass("fr-fr")){ | |
createNewURL(newURL,newTitle,curURL); /// custome function to build new uri | |
} | |
},750); | |
function createNewURL(newURL,newTitle,curURL){ |
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
<div id="results"></div> |
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
<?php | |
define( '_JEXEC', 1 ); | |
define('JPATH_BASE', '../../../'); | |
require_once ( JPATH_BASE .'/includes/defines.php' ); | |
require_once ( JPATH_BASE .'/includes/framework.php' ); | |
$database = &JFactory::getDBO(); | |
$sql = "SELECT * FROM `b7j6z_content` WHERE `state` = '1'"; // Select data from DB | |
$database->setQuery( $sql ); | |
$result=$database->loadAssocList(); |
OlderNewer