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( "constants", [ "utils" ], function( Utils ) { | |
/** | |
* _constants is a private object that will hold the | |
* constant values. Hidden behind a closure to prevent | |
* modules from changing "constant" values once set. | |
* @type {Object} | |
*/ | |
var _constants = {}, | |
/** |
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
// ---- | |
// libsass (v3.3.2) | |
// ---- | |
%placeholder { | |
width: 100px; | |
height: 100px; | |
} | |
%placeholder { |
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
// base _article.scss | |
// ------------------ | |
.article-hed { | |
@extend %layout-article-hed; | |
@extend %type-article-hed; | |
} | |
.article-dek { | |
@extend %layout-article-dek; | |
@extend %type-article-dek; |
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() { | |
var old = document.write; | |
document.write = function( content ) { | |
if ( "interactive" === document.readyState ) { | |
console.log("document.write called after page load: ", content ); | |
// optional.. safely append the content | |
// document.body.appendChild( content ); | |
return; | |
} |
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
var aeConfig = { | |
//URL of the Audience Engine end point | |
endpoint: "engine.hdmtools.com/get_teaser_block.json.php", | |
//Array of "blocks" (lists of stories) created in Audience Engine | |
blocks: [ | |
{ | |
//Each block has a name | |
name: "Smart Tout?", | |
//The container of the module being populated by Audience Engine |
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
if ( !window.requestAnimationFrame ){ | |
window.requestAnimationFrame = (function(){ | |
return window.webkitRequestAnimationFrame || | |
window.mozRequestAnimationFrame || | |
window.oRequestAnimationFrame || | |
window.msRequestAnimationFrame || | |
function( callback ) { | |
window.setTimeout( callback, 1000 / 60 ); | |
}; | |
})(); |
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
/* Rule Id: 418180 */ | |
/* Rule Id: 404574 */ | |
(function doAdTargeting() { | |
//wait for jquery | |
if (undefined === window.$) { | |
setTimeout(doAdTargeting, 10); | |
return; | |
} |
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( window ){ | |
var console = window.console; | |
var methods = ["log","dir"], | |
old = {}; | |
//TODO - set this via query param or whatever you want | |
var debug = true; |
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
var Mediator = { | |
channels: {}, | |
subscribe: function( channel, fn, ctx ){ | |
var channels = this.channels; | |
if ( !channels[ channel ] ){ channels[ channel ] = []; } | |
channels[ channel ].push({ context: ctx || this, callback: fn }); | |
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
var transEndEvent = { | |
'WebkitTransition': 'webkitTransitionEnd', | |
'MozTransition' : 'transitionend', | |
'OTransition' : 'oTransitionEnd otransitionend', | |
'msTransition' : 'MSTransitionEnd', | |
'transition' : 'transitionend' | |
}[ Modernizr.prefixed('transition') ]; |
NewerOlder