This file contains hidden or 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
$(document).ready(function() { | |
var body_class = $.cookie('body_class'); | |
if(body_class) { | |
$('body').attr('class', body_class); | |
} | |
$("a#switcher").click(function() { | |
$("body").toggleClass("alternate_body"); | |
$.cookie('body_class', $('body').attr('class')); | |
}); | |
}); |
This file contains hidden or 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
setTimeout(function() { | |
$('body').addClass("poster"); | |
}, 1000); |
This file contains hidden or 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($){ | |
$.fn.bgMouse = function(argOptions) { | |
var FILENAME = argOptions.folder; | |
var FILE_COUNT = argOptions.count; | |
return this.each(function(index, theContainer) { |
This file contains hidden or 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
#container{ | |
width:400px; | |
} | |
#side{ | |
width:100px; | |
float:left; | |
background:#aeaeae; | |
} | |
#main{ | |
width:300px; |
This file contains hidden or 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 href="#" class="arrow">Arrow</a> | |
*/ | |
.arrow { | |
display: inline-block; | |
position: relative; | |
text-indent: -9999px; | |
width: 36px; | |
height: 36px; | |
background: url(sprites.png) no-repeat; |
This file contains hidden or 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 body = document.getElementsByTagName("body")[0]; | |
var script = document.createElement('script'); | |
script.type = "text/javascript"; | |
script.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"; | |
body.appendChild(script); |
This file contains hidden or 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
jQuery(document).ready(function($) { | |
//capture ipad device change | |
function doOnOrientationChange() | |
{ | |
switch(window.orientation) | |
{ | |
case -90: | |
case 90: | |
alert('landscape'); //debug | |
////add class to assist with libraries like Modernizr |
This file contains hidden or 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 jeherve_custom_image( $media, $post_id, $args ) { | |
if ( empty( $media ) ) { | |
$permalink = get_permalink( $post_id ); | |
$url = apply_filters( 'jetpack_photon_url', 'YOUR_LOGO_IMG_URL' ); | |
return array( array( | |
'type' => 'image', | |
'from' => 'custom_fallback', | |
'src' => esc_url( $url ), | |
'href' => $permalink, |