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
#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
;(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
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
$(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
<video class="my-video-class"> | |
<source src="<?php echo wp_get_attachment_url( $post->ID ) ?>" type='video/mp4' /> | |
Your browser does not support the video tag. | |
</video> |
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 replaced = $("body").html().replace(/-1o9-2202/g,'The ALL new string'); | |
$("body").html(replaced); | |
//or, as a one liner | |
$("body").html($("body").html().replace(/12345-6789/g,'<b>abcde-fghi</b>')); | |
//replace every word | |
$("body").html($("p").html().replace(/[a-zA-Z0-9_]\w/g,'<b>oh hai!!!</b>')); |
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
/** | |
* Display advanced TinyMCE editor in taxonomy page | |
*/ | |
function wpse_7156_enqueue_category() { | |
global $pagenow, $current_screen; | |
if( $pagenow == 'edit-tags.php' ) { | |
require_once(ABSPATH . 'wp-admin/includes/post.php'); | |
require_once(ABSPATH . 'wp-admin/includes/template.php'); |