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
<!DOCTYPE html> | |
<!--[if lt IE 7 ]><html class="no-js ie ie6 lte6 lte7 lte8 lte9"><![endif]--> | |
<!--[if IE 7 ]><html class="no-js ie ie7 lte7 lte8 lte9"> <![endif]--> | |
<!--[if IE 8 ]><html class="no-js ie ie8 lte8 lte9"><![endif]--> | |
<!--[if IE 9 ]><html class="no-js ie ie9 lte9"><![endif]--> | |
<!--[if gt IE 9]><!--><html class="no-js"><!--<![endif]--> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=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
<!DOCTYPE html> | |
<!--[if lt IE 7 ]><html class="no-js ie ie6 lte6 lte7 lte8 lte9"><![endif]--> | |
<!--[if IE 7 ]><html class="no-js ie ie7 lte7 lte8 lte9"> <![endif]--> | |
<!--[if IE 8 ]><html class="no-js ie ie8 lte8 lte9"><![endif]--> | |
<!--[if IE 9 ]><html class="no-js ie ie9 lte9"><![endif]--> | |
<!--[if gt IE 9]><!--><html class="no-js"><!--<![endif]--> |
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 supports_touch = 'ontouchend' in document; | |
var events = { | |
desktop: { | |
start : 'mousedown', | |
stop : 'mouseup', | |
move : 'mousemove', | |
leave : 'mouseleave', | |
resize : 'resize' | |
}, |
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 frames = { | |
init: function() { | |
$(window).on({ | |
'blur': frames.pause, | |
'focus': frames.play | |
}); | |
frames.play(); | |
}, | |
loop: 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> | |
// Add a script element as a child of the body | |
function downloadJSAtOnload() { | |
var element = document.createElement("script"); | |
element.src = "deferredfunctions.js"; | |
document.body.appendChild(element); | |
} | |
// Check for browser support of event handling capability |
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
@media (min--moz-device-pixel-ratio: 1.5), | |
(-o-min-device-pixel-ratio: 3/2), | |
(-webkit-min-device-pixel-ratio: 1.5), | |
(min-device-pixel-ratio: 1.5), | |
(min-resolution: 144dpi), | |
(min-resolution: 1.5dppx) { | |
/* Retina rules! */ | |
} |
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
createPlaceholders: function() { | |
var noPlaceholderSupport = $('html').hasClass('lte9'); | |
if(noPlaceholderSupport) { | |
var createPlaceholder = function() { | |
var self = this; | |
var $this = $(this); | |
var isEmpty = true; | |
var placeholder = this.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
createPlaceholders: function() { | |
var noPlaceholderSupport = $('html').hasClass('lte9'); | |
if(noPlaceholderSupport) { | |
var createPlaceholder = function() { | |
var self = this; | |
var $this = $(this); | |
var isEmpty = true; | |
var placeholder = this.placeholder; |