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
/** Detect support for media queries (all size and browser) and add a polyfill for browser that don't support it | |
Find the polyfill under http://code.google.com/p/css3-mediaqueries-js/ | |
This required the modernizr load to be in the build | |
**/ | |
Modernizr.load([{ | |
test : Modernizr.mq('only all'), | |
yep : '', | |
nope : 'css3-mediaqueries.js', | |
}]); |
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
input[type=search]{ | |
-webkit-appearance: textfield; | |
-webkit-box-sizing: content-box; | |
} |
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
/* in function */ | |
function my_deregister_javascript() { | |
/**adding some cleanup for plugin **/ | |
if (!is_page('contact')){ | |
wp_deregister_script( 'jquery-form' ); | |
} | |
} | |
add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 ); |
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
// Adds [branch id=""] shortcode in WordPress | |
if ( !function_exists('branch_embedded')) { | |
function branch_embedded($atts) { | |
$atts = shortcode_atts(array('id' => ''), $atts); | |
$output = '<script type="text/javascript" src="http://embed-script.branch.com/assets/embed/embed.m.js?body=0" data-branch-embedid="' . esc_attr($atts['id']) . '" ></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
a { | |
-webkit-tap-highlight-color:rgba(0,0,0,0); | |
} |
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 changeClass(elem,className1,className2){ | |
elem.className = (elem.className == className1)?className2:className1; | |
} | |
document.getElementById('menutoggle').onclick = function() { | |
changeClass(this, 'navtoogle active', 'navtoogle'); | |
} | |
// Many thanks to https://twitter.com/Martel_Louis |
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.value |
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
document.body.className = 'hasJS'; |
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
document.body.className += ' hasJS' |
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 href="/" class="site-logo"> | |
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==" alt=" " class="logo "> | |
</a> |
OlderNewer