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
| $('#ninja_forms_form_4_wrap').click(function(){ | |
| $(this).animate({ | |
| height: $(this).get(0).scrollHeight | |
| }, 1000, function(){ | |
| $(this).height('auto'); | |
| }); | |
| }); |
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 header = $(".header"); | |
| $(window).scroll(function() { | |
| var scroll = $(window).scrollTop(); | |
| if (scroll >= 1) { | |
| header.addClass('small'); | |
| } else { |
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
| <style> | |
| body { | |
| background: url(<?php echo get_option('bgimg'); ?>) no-repeat top center <?php echo get_option('bgcolor'); ?>; } | |
| </style> | |
| //*this goes in theme options*/ | |
| array('bgcolor' => 'Site Background Color', 'input'), | |
| array('bgimg' => 'Site Background Image', 'input'), |
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
| $(".gallery .thumbnails li:first").addClass('active'); | |
| $(".gallery .thumbnails li").click(function(e){ | |
| e.preventDefault(); | |
| $(".gallery .thumbnails li").each(function(k, v){ | |
| $(this).removeClass('active'); | |
| }); |
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
| <div class="web-product"> | |
| <div class="crumbs">[1sc:breadcrumbs /]</div> | |
| <div class="head"> | |
| <div class="title"> | |
| <h2>[1sc:product.name /]</h2> | |
| <p class="sku">SKU: [1sc:product.sku /]</p> | |
| </div> | |
| <div class="price"> | |
| <p><span class="base">[1sc:product.price /]</span> [1sc:product.saleprice /] [1sc:product.onsale /]</p> | |
| </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
| var newList = $('ul#cats').children('li').clone(); | |
| var numOfLis = newList.length; | |
| $('ul#cats2').html(newList); | |
| $('ul#cats').find('li:gt(' + Math.floor(numOfLis/2) + ')').remove(); | |
| $('ul#cats2').find('li:lt(' + Math.ceil(numOfLis/2) + ')').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
| <div id="wrapper"> | |
| <div id="one">One</div> | |
| <div id="two">Two</div> | |
| <div id="three">Three</div> | |
| </div> | |
| /*This is the css:*/ | |
| #wrapper {display:table;} | |
| #one {display:table-footer-group;} |
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
| // hover and restore for inner pages. | |
| var defaultFlip = $(".flipImg").attr("src"); | |
| $(".flips li").hover(function(){ | |
| var img = $(this).data("targetimg"); | |
| $(".flipImg").attr("src", img); | |
| }, function() { | |
| $(".flipImg").attr("src", defaultFlip); | |
| }); | |
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
| <style> | |
| body { | |
| -webkit-user-select: none; | |
| -moz-user-select: -moz-none; | |
| -ms-user-select: none; | |
| user-select: none; | |
| } | |
| input, textarea { | |
| -moz-user-select: text; |
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
| /* functions.php */ | |
| function lorem_function() { | |
| return 'Custom code or content'; | |
| } | |
| add_shortcode('customshortcodename', 'lorem_function'); | |
| <!-- To use --> | |
| [customshortcodename] |