this.networkPause = false;
this.networkPauseTimeout = null;
this.networkPauseQueue = [];
+ this.canNavigate = false;
this.datas = datas;
this.singleMode = (this.datas.mobileNavigationType === 'portrait');
},
__hideSplash: function () {
+
$("#main,#viewOverlay,#view").css('visibility', 'visible');
this.resize.resize(false, true);
this.hideLoader(0, true);
})
}
+ this.allowChangePage(1.5);
$(this).trigger('fluidbook.splash.hide');
},
+ allowChangePage: function (timeout) {
+ var $this = this;
+ setTimeout(function () {
+ console.log('can change page');
+ $this.canNavigate = true;
+ $($this).trigger('fluidbook.navigation.cannavigate');
+ }, timeout * 1000);
+ },
+
ready: function () {
if (this.isReady) {
return;
hidePage: function (position) {
$("#pages ." + position).hide();
},
+ canChangePage: function () {
+ try {
+ return this.pagetransitions.canChangePage();
+ } catch (e) {
+
+ }
+ return false;
+ },
initVideos: function () {
var $this = this;
$(".videoContainer").each(function () {
return offset;
},
goNextPage: function () {
- if (this.pagetransitions.transitionning) {
+ if (!this.pagetransitions.canChangePage()) {
return;
}
this.transitionAxis = 'x';
this.setCurrentPage(this.normalizePage(this.currentPage) + this.getNextOffset());
},
goFirstPage: function () {
- if (this.pagetransitions.transitionning) {
+ if (!this.pagetransitions.canChangePage()) {
return;
}
this.transitionAxis = 'x';
this.setCurrentPage(1);
},
goPreviousPage: function () {
- if (this.pagetransitions.transitionning) {
+ if (!this.pagetransitions.canChangePage()) {
return;
}
this.transitionAxis = 'x';
this.setCurrentPage(this.normalizePage(this.currentPage) - this.getNextOffset());
},
goLastPage: function () {
- if (this.pagetransitions.transitionning) {
+ if (!this.pagetransitions.canChangePage()) {
console.log('golastpage skip');
return;
}
this.setCurrentPage(this.contentlock.getMaxPage());
},
goNextChapter: function () {
- if (this.pagetransitions.transitionning) {
+ if (!this.pagetransitions.canChangePage()) {
return;
}
var next = this.bookmarks.getNextGroupCover(this.currentPage);
this.setCurrentPage(this.normalizePage(next));
},
goPreviousChapter: function () {
- if (this.pagetransitions.transitionning) {
+ if (!this.pagetransitions.canChangePage()) {
return;
}
var prev = this.bookmarks.getPreviousGroupCover(this.currentPage);
this.setCurrentPage(this.normalizePage(prev));
},
goNextChapterPage: function () {
- if (this.pagetransitions.transitionning) {
+ if (!this.pagetransitions.canChangePage()) {
return;
}
this.setCurrentPage(this.normalizePage(next));
},
goPreviousChapterPage: function () {
- if (this.pagetransitions.transitionning) {
+ if (!this.pagetransitions.canChangePage()) {
return;
}