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
if (function_exists('register_sidebar')) { | |
register_sidebar(array( | |
'name'=> 'Top Tabs', | |
'id' => 'top_tabs', | |
'before_widget' => '<li id="%1$s" class="widget %2$s">', | |
'after_widget' => '</li>', | |
'before_title' => '<h2 class="offscreen">', | |
'after_title' => '</h2>', | |
)); | |
register_sidebar(array( |
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
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage Widget Area')) : ?> | |
<?php endif; ?> |
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="javascript:ajaxpage('test.htm', 'contentarea'); loadobjs('external.css', 'feature.js')">test</a> | |
<div id="contentarea"></div> |
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
<!--[if lte IE 8]> | |
<script type="text/javascript"> | |
<!-- | |
function HideFrame() { | |
var fr = document.getElementById ("sunrise"); | |
if(fr.style.display=="none") { | |
fr.style.display="block"; | |
} | |
else { | |
fr.style.display="none"; |
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="#" onclick="HideFrame()">Sample text</a> |
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
//On click of the heading-click class members or h4 elements, expand the following element. The sub-content of the headings are wrapped in <article> or <section> tags. | |
jQuery(document).ready(function(){ | |
$('.heading-click, h4').click(function() { | |
$(this).next().toggle('slow'); | |
return false; | |
}).next().hide(); | |
//Go to the location shown by the hash in the URL and show the element(s) containing it. | |
function goToByScroll(id){ | |
$('html,body').animate({scrollTop: $("#"+id).offset().top},'fast');} |
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
$(".productTable").after("<div id='product-container'></div>"); | |
$(".productTable .product_item").appendTo("#product-container").each(function() {}); | |
$('.productTable').remove(); |
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
<table class="productTable "> | |
<tbody> | |
<tr> | |
<td class="productItem"> | |
<div class="product_item"> | |
Product 1 | |
</div> | |
</td> | |
<td class="productItem"> | |
<div class="product_item"> |
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(){ | |
function randomgen() | |
{ | |
var rannumber=''; | |
for(ranNum=1; ranNum<=6; ranNum++){ | |
rannumber+=Math.floor(Math.random()*10).toString(); | |
} | |
$('#verifyNum').html(rannumber); | |
$('#verifyNumHidden').val(rannumber); | |
} |
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
<form id="checkDelivery"> | |
<label for="postcode">Enter your postcode</label> | |
<input type="text" required name="postcode"/> | |
<button class="button">Submit</button> | |
</form> | |
<div id="delivery_options"></div> | |
<script> | |
$('#checkDelivery').submit(function() { | |
var data = $(this).serializeArray(), |
OlderNewer