This file contains 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
<li><?php if ($page->prev->id) : ?><a href="<?php echo $page->prev->url; ?>">Previous</a><?php endif; ?><?php if ($page->id === $page->siblings->last->id || $page->id === $page->siblings->first->id) : ?><?php else : ?>/<?php endif; ?><?php if ($page->next->id) : ?><a href="<?php echo $page->next->url; ?>">Next</a><?php endif; ?></li> |
This file contains 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
$(document).ready(function() { | |
var latLngA = new google.maps.LatLng(<?php echo $page->article_location_lat; ?>,<?php echo $page->article_location_long; ?>); | |
var latLngB = new google.maps.LatLng(53.381129, -1.470085); | |
var directionsService = new google.maps.DirectionsService(); | |
var request = { | |
origin: latLngA, | |
destination: latLngB, | |
travelMode: google.maps.DirectionsTravelMode.DRIVING | |
}; | |
directionsService.route(request, function (response, status) { |
This file contains 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
function preloadImages() { | |
var imgs = []; | |
var iterate = function (i) { | |
if (imgs.length > i) { | |
var img = new Image(); | |
img.src = templateUrl + 'css/' + imgs[i]; | |
//console.log("loading: " + img.src); | |
img.onLoad = function () { | |
iterate(i + 1); | |
}(); |
This file contains 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
$('ul.navigation-list li, ul.tag-list li').each(function() { | |
var classes = this.classList; | |
for (var i=0,len=classes.length; i<len; i++) { | |
if ($('body').hasClass(classes[i])) { | |
$(this).addClass('active'); | |
} | |
} | |
}); | |
$('.menu-section-container ul li').each(function() { |
This file contains 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
<script src="jquery.cookie.js"></script> | |
<script> | |
$(document).ready(function() { | |
if ( !$.cookie('the_cookie' ) ) { | |
$('.temp-modal').show(); | |
} | |
else { | |
$('.temp-modal').hide(); | |
} | |
}); |
This file contains 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 | |
$projects = $pages->find('template=project-detail, sort=sort'); | |
$projects_array = array(); | |
foreach ($projects as $project) { | |
$title = $project->title; | |
$summary = $project->project_summary; | |
$long = $project->project_location_marker_long; | |
$lat = $project->project_location_marker_lat; |
This file contains 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
Header add Access-Control-Allow-Origin "*" |
This file contains 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
-webkit-transition: -webkit-transform 0.5s ease-in-out; | |
-moz-transition: -moz-transform 0.5s ease-in-out; | |
transition: transform 0.5s ease-in-out; | |
-webkit-transform: translateX(100%); | |
-moz-transform: translateX(100%); | |
transform: translateX(100%); |
This file contains 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
text-indent: -1000vw; |
This file contains 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
/* | |
$(document).ready(function() { | |
$('.menu-container ul li a').on('click', function() { | |
$('.menu-container ul li').removeClass('active'); | |
$(this).parent('li').addClass('active'); | |
$('.content-container .content').html('<p>Loading...</p>'); | |
$.get($(this).attr('href'), function(data) { | |
$('.content-container .content').html(data); |