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
# DEFAULTS ##################################################################################################### | |
document.body.addEventListener('touchmove', (e) -> e.preventDefault() ); | |
###################################################################################################################### | |
# HELPER METHODS ##################################################################################################### | |
###################################################################################################################### | |
getComponent = (layer, parentLayer, opts) -> | |
c = layer.copy() | |
c.visible = 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
$(window).bind('resize', function(){ | |
var size = window.getComputedStyle(document.body,':after').getPropertyValue('content'); | |
if (size.indexOf("break2") !=-1){ | |
// Do stuff for breakpoint 2 | |
} else if (size.indexOf("tablet") !=-1){ | |
// Do stuff for tablet | |
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 clone = $(".cloneThisElement").clone().attr("id", "id-"+$.now()); |
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 type="text/javascript"> | |
document.addEventListener('touchmove', function(e){e.preventDefault();}, false); | |
</script> |
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( 'ontouchstart' in window ){ document.addEventListener("touchstart", function(){}, false) } |
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 b = document.documentElement; | |
b.setAttribute('data-ua', navigator.userAgent); | |
b.setAttribute('data-pf', navigator.platform ); |
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
/* Loader */ | |
$loader-size = 2.1334em | |
@keyframes rotate | |
0% | |
transform: rotate(0deg) | |
100% | |
transform: rotate(360deg) |
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
"recipe":{ | |
"overview":{ | |
"title": "Easy Layered Taco Bake", | |
"total": "35 min", | |
"prep": "15 min.", | |
"makes": "6 servings, 1 cup each." | |
}, | |
"steps": [{ | |
"step": ["Heat oven to 400\u2109.", "Brown meat in large skillet on medium-high heat."], | |
"pic": "/assets/images/taco-bake/intro.jpg" |
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
/* ---------------------------------------------------------- */ | |
/* */ | |
/* A media query that captures: */ | |
/* */ | |
/* - Retina iOS devices */ | |
/* - Retina Macs running Safari */ | |
/* - High DPI Windows PCs running IE 8 and above */ | |
/* - Low DPI Windows PCs running IE, zoomed in */ | |
/* - Low DPI Windows PCs and Macs running Firefox, zoomed in */ | |
/* - Android hdpi devices and above */ |
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
/* Update to Ribbon *****************************************************************/ | |
#page-content header.affix { | |
position: fixed; | |
top: 0px; | |
} | |
#page-content header > .panelContainer{ | |
width: 100%; |