function FluidbookSplash(fluidbook) {
this.fluidbook = fluidbook;
+ this.hideSplashTimeout = 1;
this.init();
}
setTimeout(function () {
this.fluidbook.pagetransitions.flip3d.performancesTest(function () {
$this.fluidbook.networkControl.resume();
+ var timeout = $this.hideSplashTimeout;
+ if (window.SCORM !== undefined && window.SCORM===true) {
+ timeout += 5;
+ }
setTimeout(function () {
$this.hideIfPossible();
- }, 1000);
+ }, timeout * 1000);
})
}, 500);
} else {
SCORM_LOCATION_INITED = true;
var currentLocation = getScormValue('location');
try {
+ var changePage = false;
if (currentLocation.indexOf('page_') === 0) {
var e = currentPage.split('_');
if (e.length === 2 && e[0] === 'page') {
fluidbook.setCurrentPage(e[1]);
+ changePage = true;
}
} else if (currentLocation.indexOf('{') === 0) {
var location = JSON.parse(currentLocation);
}
if (location.page) {
fluidbook.setCurrentPage(location.page);
+ changePage = true;
}
}
+
+ if (changePage) {
+ fluidbook.splash.hideSplashTimeout = 6;
+ }
} catch (err) {
console.log(err);
}