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
// Find the common intersection between the arrays | |
a1=[1,2,3] | |
a2=[2,3,4,5] | |
$.map(a1,function(a){return $.inArray(a, a2) < 0 ? null : a;}) | |
// http://stackoverflow.com/a/9401775/24559 |
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 myArray = new Array(1, 2, 3); | |
var copy = myArray.slice(); | |
// now I can change myArray[0] = 5; & it wont affect copy array |
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
// This should be added to your custom lens based on the Tool Kit lens, right after these functions near the end of the file: | |
deckNavigation(); | |
overlay(); | |
setOptions(); | |
deckAdjustments(); | |
bindScrollEventForDotUpdate(); | |
bindScrollEventForThumbUpdate(); | |
// Add the external title to the frame |
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 only screen and (min-width: 320px) { | |
/* Small screen, non-retina */ | |
} | |
@media | |
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px), |
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 youTubeRegex = /(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|[a-zA-Z0-9_\-]+\?v=)([^#\&\?\n<>\'\"]*)/gi; |
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 name="viewport" content="width=device-width, target-densityDpi=device-dpi"> |
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
$('#my_awesome_element').click(function(event){ | |
var element = this; | |
if (this.timer) clearTimeout(element.timer); | |
this.timer = setTimeout(function(){ | |
console.log("Nothing Pressed for 1000ms"); | |
},1000); | |
return 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
div { | |
width: intrinsic; /* Safari/WebKit uses a non-standard name */ | |
width: -moz-max-content; /* Firefox/Gecko */ | |
} |
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
</div> | |
</div> | |
</div> | |
<!-- /Footer --> | |
<?php wp_footer(); ?> | |
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
jQuery('.slidedeck-frame').bind('mouseenter', function(){ | |
jQuery('.slidedeck').slidedeck().pauseAutoPlay = 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
http://www.youtube.com/embed/oHg5SJYRHA0?wmode=opaque&autoplay=1&modestbranding=1&vq=hd720 |
OlderNewer