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
jQuery(document).ready(function(){ | |
jQuery('input[type="text"]').addClass('textfield'); | |
jQuery('input[type="submit"]').addClass('fancy_button'); | |
jQuery('textarea').addClass('textarea'); | |
}); |
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
<?php if( is_page(4) ) { ?> | |
<div id="yourId" class="yourClass">You Info</div> | |
<?php } ?> |
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
<!--Html--> | |
<img src="l1.png" class="lights"> | |
<a href="#" class="play">click me</a> | |
<a href="#" class="pause">Stop Lights</a> | |
<!--Jquery--> | |
<script type="text/javascript"> |
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
jQuery(document).ready(function ($) {// ...You Code!... | |
}); |
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
<img src="<?php bloginfo('template_directory'); ?>/images/example.png"/> |
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
<body> | |
<div style="position: absolute; left: 50%;"> | |
<div style="position: relative; left: -50%; border: dotted red 1px;"> | |
I am some centered shrink-to-fit content! <br /> | |
tum te tum | |
</div> | |
</div> | |
</body> |
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
body, #logo h1 a, ul#menu li.on {background-color: #39f !important;} | |
@-webkit-keyframes colours { | |
0% {background-color: #39f;} | |
15% {background-color: #8bc5d1;} | |
30% {background-color: #f8cb4a;} | |
45% {background-color: #95b850;} | |
60% {background-color: #944893;} | |
75% {background-color: #c71f00;} | |
90% {background-color: #bdb280;} | |
100% {background-color: #39f;} |
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 preload(arrayOfImages) { | |
$(arrayOfImages).each(function(){ | |
$('<img/>')[0].src = this; | |
// Alternatively you could use: | |
// (new Image()).src = this; | |
}); | |
} | |
// Usage: | |
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
body.page-id-2821 { | |
} |
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($) | |
{ | |
$.fn.removeStyle = function(style) | |
{ | |
var search = new RegExp(style + '[^;]+;?', 'g'); | |
return this.each(function() | |
{ | |
$(this).attr('style', function(i, style) | |
{ |
OlderNewer