this.flags = {};
this.canNavigate = false;
+ if ($_GET['nointerface'] !== undefined) {
+ $('body').addClass('nointerface');
+ settings.mobileTransitions = 'none';
+ this.nointerface=true;
+ }else{
+ this.nointerface=false;
+ }
+
this.initSettings(settings);
this.secure = new FluidbookSecure(this);
initTheme: function () {
var $this = this;
+
if (this.settings.arrowsTheme) {
$('html').addClass('sharp');
}
},
wopen: function (url, target, options, print) {
- var $this=this;
+ var $this = this;
var win;
if (this.support.nwjs) {
win = nw.Window.get().window;
var numPreloadAfter = 10;
var numPreloadBefore = 4;
+
if (this.fluidbook.resize.orientation === 'portrait' || this.fluidbook.singleMode) {
numPreloadAfter /= 2;
numPreloadBefore /= 2;
}
+
+ if (this.fluidbook.nointerface) {
+ numPreloadAfter = numPreloadBefore = 0;
+ }
+
var fmx = this.fluidbook.contentlock.getMaxPage();
var max = Math.min(page + numPreloadAfter, fmx);
var min = Math.max(1, page - numPreloadBefore);
this.waitForTimer = true;
this.waitForReady = true;
+ var defaultMin = 5;
+ if (this.fluidbook.nointerface) {
+ defaultMin = 0;
+ }
+
var min = parseFloat(this.fluidbook.settings.splashMinimalTime);
- if (min < 5 || isNaN(min)) {
- min = 5;
+ if (min < defaultMin || isNaN(min)) {
+ min = defaultMin;
}
var $this = this;
@import "mobilefirst.less";
@import "tabs.less";
@import "widget.less";
-@import "menu-articles.less";
\ No newline at end of file
+@import "menu-articles.less";
+@import "nointerface.less";
\ No newline at end of file
--- /dev/null
+.nointerface {
+ footer, #interface, header {
+ visibility: hidden;
+ }
+}
\ No newline at end of file