return this.pageTransition2DPortrait(pageNr);
}
+ if(!this.fluidbook.support.transitions3d && this.fluidbook.datas.mobileTransitions === 'flip'){
+ this.fluidbook.zoom.resetZoom();
+ return this.pageTransition2D(pageNr);
+ }
+
if ((!this.fluidbook.support.transitions3d && !this.fluidbook.support.transitions3dacc) || this.fluidbook.datas.mobileTransitions === 'slide') {
this.fluidbook.zoom.resetZoom();
return this.pageTransition2D(pageNr);
res.dir = -1;
}
- if (this.fluidbook.l10n.dir == 'ltr') {
+ if (this.fluidbook.l10n.dir === 'ltr') {
res.currentLeft = this.fluidbook.currentPage - this.fluidbook.currentPage % 2;
res.currentRight = res.currentLeft + 1;
if (res.dir == 1) {
} else {
res.currentRight = this.fluidbook.currentPage - this.fluidbook.currentPage % 2;
res.currentLeft = res.currentRight + 1;
- if (res.dir == 1) {
+ if (res.dir === 1) {
res.currentToClass = 'next';
res.nextFromClass = 'prev';
res.flat = [newPage + 1, res.currentRight];
this.transitionendevent = null;
- if (window.resolution == 'auto') {
+ if (window.resolution === 'auto') {
if (Modernizr.mq('(min-device-width : 320px) and (max-device-width : 480px)')) {
this.resolution = 150;
} else {
};
var t = connetion.type;
- if (t == undefined) {
+ if (t === undefined) {
t = 'unknown';
- } else if (t == 0) {
+ } else if (t === 0) {
t = 'unknown';
- } else if (t == 1) {
+ } else if (t === 1) {
t = 'ethernet';
- } else if (t == 2) {
+ } else if (t === 2) {
t = 'wifi';
- } else if (t == 3) {
+ } else if (t === 3) {
t = '2g';
- } else if (t == 4) {
+ } else if (t === 4) {
t = '3g';
- } else if (t == 5) {
+ } else if (t === 5) {
t = '4g';
} else {
t = 'none';
try {
if (this.fluidbook.pad && this.fluidbook.pad.enabled) {
return 0;
- } else if (this.fluidbook.datas.mobileNavigationType == 'landscape') {
+ } else if (this.fluidbook.datas.mobileNavigationType === 'landscape') {
return 90;
- } else if (this.fluidbook.datas.mobileNavigationType == 'portrait') {
+ } else if (this.fluidbook.datas.mobileNavigationType === 'portrait') {
return 0;
}
} catch (err) {