if (!this.mobilefirst.enabled) {
this.slider = new FluidbookSlider(this);
}
+ this.displayOnePage = this.alwaysDisplayOnePage = this.settings.mobileNavigationType === 'portrait' || (this.pad && this.pad.enabled) || this.mobilefirst.enabled;
this.zoom = new FluidbookZoom(this);
this.zoom.resetZoom();
this.cache = new FluidbookCache(this.settings);
this.refh = 0;
this.searchString = '';
this.vectorTexts = !this.support.imagesVersion;
- this.displayOnePage = false;
this.indexHTML = '';
this.gal = null;
this.isReady = false;
this.toggleNotes();
}
},
+
toggleNotes: function () {
$('body').toggleClass('notes-hidden').toggleClass('notes-unhidden');
},
var $this = this;
$.each(this.getAllNotes(), function (k, note) {
if (!$this.fluidbook.displayOnePage) {
- if (note.p === 0) {
- note.p = 1;
- } else if (note.p % 2 === 1) {
+ if (note.p % 2 === 1) {
note.p--;
}
}
this.orientation = newo;
$('body').addClass(this.orientation);
- this.fluidbook.displayOnePage = (this.orientation === 'portrait');
+ this.fluidbook.displayOnePage = this.fluidbook.alwaysDisplayOnePage || (this.orientation === 'portrait');
if (changeOrientation) {
$(this.fluidbook).trigger('fluidbook.resize.beforeOrientationChange');
var i = 0;
$.each(sectionPages, function (k, value) {
if (value !== '-') {
- console.log(value);
- if (value % 2 === 1) {
+ if (!$this.fluidbook.alwaysDisplayOnePage && value % 2 === 1) {
value--;
}
$this.links.push({
}
});
- console.log(page, id, this.links);
-
-
if (id === 'none') {
this.svg.find('[id^="o"].active').removeClass('active');
} else {