var map = {1: 'none', 2: 'slide', 3: 'flip', 4: 'flip3d'};
this.settings.mobileTransitions = map[$_GET['transition']];
}
+ if (this.nointerface) {
+ this.settings.mobileTransitions = 'none';
+ }
/**
* @deprecated
var e = $('[data-id="' + iid + '"]');
e.removeClass('animaterollover');
},
+
resizeIframe: function (height) {
var iframe = $('.link iframe').eq(0);
var container = iframe.closest('.content');
},
preloadStart: function (callback) {
- this.toPreload = [1, 2, 3];
+ if (this.fluidbook.nointerface) {
+ this.toPreload = [1];
+ } else {
+ this.toPreload = [1, 2, 3];
+ }
this.preloaded = this.toPreload.slice(0);
this.preloadPages(callback);
},
}
var $__callback = function () {
+
+
if ($this.getVersionToLoad(page) === 'textasvector' || $this.getVersionToLoad(page) === 'vector') {
$this.loadTexts(page, $_callback);
} else {
$this._preloadPage(page, callback);
return;
}
- ctx.drawImage(img, -1, 0, d+2, d);
+ ctx.drawImage(img, -1, 0, d + 2, d);
} catch (e) {
}
}
callbackCalled = true;
cb();
}
- }, 10)
+ }, $this.fluidbook.nointerface ? 0 : 10);
}
}
},
executeWhenNetwork: function (f, highPriority) {
+ if (this.fluidbook.nointerface) {
+ f();
+ return;
+ }
if (highPriority === undefined) {
highPriority = false;
}
this.waitForReady = true;
var defaultMin = 5;
- if (this.fluidbook.nointerface) {
- defaultMin = 0;
- }
var min = parseFloat(this.fluidbook.settings.splashMinimalTime);
if (min < defaultMin || isNaN(min)) {
min = defaultMin;
}
+ if (this.fluidbook.nointerface) {
+ min = 0;
+ this.waitForTimer = false;
+ this.hideIfPossible();
+ }
+
var $this = this;
this.initTime = Date.now();
setTimeout(function () {
$this.waitForTimer = false;
$this.hideIfPossible();
}, min * 1000);
-
},
hide: function () {
}
$(this.fluidbook).trigger('fluidbook.splash.beforehide');
var $this = this;
- if (this.fluidbook.support.transitions3dacc && this.fluidbook.settings.mobileTransitions === 'flip3d' && !this.fluidbook.mobilefirst.enabled) {
+ if (this.fluidbook.support.transitions3dacc && this.fluidbook.settings.mobileTransitions === 'flip3d' && !this.fluidbook.mobilefirst.enabled && !this.fluidbook.nointerface) {
$("#main,#viewOverlay,#view").css('visibility', 'visible');
resize();
this.fluidbook.networkControl.pause(4000);
_hide: function () {
var $this = this;
- var timeout = 700;
+ var timeout = this.fluidbook.nointerface?0:700;
this.fluidbook.resize.resize(false, true);
setTimeout(function () {
$this.__hide();
},
__hide: function () {
-
$("#main,#viewOverlay,#view").css('visibility', 'visible');
this.fluidbook.resize.resize(false);
this.fluidbook.hideLoader(0, true);
- if (this.fluidbook.support.transitions2d && !this.fluidbook.support.iOS) {
+ if (this.fluidbook.nointerface) {
+ $('#splash').remove();
+ } else if (this.fluidbook.support.transitions2d && !this.fluidbook.support.iOS) {
$("#splash").css('opacity', 0).one('transitionend', function () {
$(this).remove();
});
},\r
\r
track: function (type, page, extra) {\r
- if (!this.fluidbook.support.hasNetwork()) {\r
+ if (!this.fluidbook.support.hasNetwork() || this.fluidbook.nointerface) {\r
return;\r
}\r
\r