Sha256: fb9941a77c2db53538e8fa2aeb0fa1dda37a7911d9cc893b5d55a4fee453a93c
Contents?: true
Size: 813 Bytes
Versions: 3
Compression:
Stored size: 813 Bytes
Contents
pageflow.DomOrderScrollNavigator = function(slideshow) { this.getLandingPage = function(pages) { return pages.first(); }; this.back = function(currentPage) { slideshow.goTo(currentPage.prev('.page'), {position: 'bottom'}); }; this.next = function(currentPage) { slideshow.goTo(currentPage.next('.page')); }; this.nextPageExists = function(currentPage, pages) { return !currentPage.is(pages.last()); }; this.previousPageExists = function(currentPage, pages) { return !currentPage.is(pages.first()); }; this.getNextPage = function(currentPage, pages) { return currentPage.next('.page'); }; this.getTransitionDirection = function(previousPage, currentPage, options) { return (currentPage.index() > previousPage.index() ? 'forwards' : 'backwards'); }; };
Version data entries
3 entries across 3 versions & 1 rubygems