Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion jquery.orbit-1.3.0.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
bulletThumbs: false, // thumbnails for the bullets
bulletThumbLocation: '', // location from this file where thumbs will be
afterSlideChange: $.noop, // empty function
centerBullets: true // center bullet nav with js, turn this off if you want to position the bullet nav manually
centerBullets: true, // center bullet nav with js, turn this off if you want to position the bullet nav manually
advanceOnClick: false // if you want the slide to advance if user clicks on it
},

activeSlide: 0,
Expand Down Expand Up @@ -127,6 +128,10 @@
this.setupBulletNav();
this.setActiveBullet();
}

if (this.options.advanceOnClick) {
this.setupAdvanceOnClick();
}
},

currentSlide: function () {
Expand Down Expand Up @@ -335,6 +340,14 @@
});
},

setupAdvanceOnClick: function() {
var self = this;
$(this.$slides).click(function(evt) {
self.stopClock();
self.$element.trigger('orbit.next');
});
},

setupBulletNav: function () {
this.$bullets = $(this.bulletHTML);
this.$wrapper.append(this.$bullets);
Expand Down