Last active
December 19, 2015 16:09
-
-
Save kosinix/5981324 to your computer and use it in GitHub Desktop.
Hide cycle2 pager when there is only 1 slide. Ignores sentinel slide.
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
var slides = $('.slideshow .slides').children('.slide').length; //Change css selectors accordingly | |
if(slides <= 1) { | |
$('.slideshow .pager').hide(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To ignore sentinel slide: