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
module.exports = function( grunt ) { | |
'use strict'; | |
// | |
// Grunt configuration: | |
// | |
// https://github.com/cowboy/grunt/blob/master/docs/getting_started.md | |
// | |
grunt.loadNpmTasks('grunt-jade'); |
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
// Define a console object to prevent errors in IE | |
if(typeof window.console === 'undefined' ) { | |
window.console = { | |
log: 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
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
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
// Enable console.log fallback for IE | |
var alertFallback = true; | |
if (typeof console === "undefined" || typeof console.log === "undefined") { | |
console = {}; | |
if (alertFallback) { | |
console.log = function(msg) { | |
alert(msg); | |
}; | |
} else { | |
console.log = 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
/* Animate transitions to links on the same page */ | |
var ANIMATEANCHORS = {} | |
ANIMATEANCHORS.initialize = function() { | |
$('a[href*=#]').not('.fancybox').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var $target = $(this.hash) | |
$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']') | |
var targetOffset = $target.length ? $target.offset().top - 20 : 0 // Offset the target distance to have some margin at the top | |
$('html, body').animate({scrollTop: targetOffset}, 700) |
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
define(['jquery', 'require'], function($, require) { | |
'use strict'; | |
// Test for jwplayer videos | |
if ($('.jwplayer-video[data-video-url]')[0]) { | |
require(['jwplayerjs'], function(jwplayer) { | |
$('.jwplayer-video').each(function(i) { | |
// add a child dom node with a unique id |
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
{ | |
"featureToggles": { | |
"releaseTheKraken": true, | |
} | |
} |