Skip to content

Instantly share code, notes, and snippets.

@goldnuggets24
Created September 6, 2013 20:43
Show Gist options
  • Save goldnuggets24/6469744 to your computer and use it in GitHub Desktop.
Save goldnuggets24/6469744 to your computer and use it in GitHub Desktop.
var n = true;
jQuery('#menu-item-27').click(function() {
n == false; });
jQuery('.iosSlider').iosSlider({
snapToChildren: true,
autoSlide: n,
desktopClickDrag: true,
keyboardControls: true,
autoSlideTimer: 1000,
navNextSelector: jQuery(this).closest('.iosSlider').find('.next'),
navPrevSelector: jQuery(this).closest('.iosSlider').find('.prev'),
navSlideSelector: jQuery('.selectors .item'),
scrollbar: true,
scrollbarContainer: '#slideshow .scrollbarContainer',
scrollbarMargin: '0',
scrollbarBorderRadius: '4px',
onSlideComplete: slideComplete,
onSliderLoaded: function(args){
var otherSettings = {
hideControls : true, // Bool, if true, the NAVIGATION ARROWS will be hidden and shown only on mouseover the slider
hideCaptions : false // Bool, if true, the CAPTIONS will be hidden and shown only on mouseover the slider
}
sliderLoaded(args, otherSettings);
},
onSlideChange: slideChange,
keyboardControls: true,
infiniteSlider: true,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment