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
| js: | |
| jQuery(function($){ | |
| $(document).ready(function(){ | |
| //custom carousel code | |
| //initialize carousel | |
| $('ul.carousel li:first-child').addClass('active-slide') | |
| //next + prev navigation | |
| $('.carousel-nav').click(function(){ | |
| var $this = $(this), |
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
| //insert at the bottom of your theme | |
| $(document).ready(function () { | |
| var imagePosts = $('.type_photo') | |
| if (imagePosts.length > 0 && imagePosts[0]) { | |
| var theImage, img, | |
| thePost = $(imagePosts)[0], | |
| postImages = $(thePost).find('img'); | |
| if (postImages.length > 0 && postImages[0]) { | |
| theImage = $(postImages)[0], | |
| img = $(theImage).attr('src') |
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 compareNum(a,b) { | |
| if (a < b) { | |
| return -1 | |
| } | |
| if (a > b) { | |
| return 1 | |
| } | |
| if (a == b) { | |
| return 0 | |
| } |