this.transitionAxis = 'x';
if (this.support.isMobile) {
$("body").addClass('mobile');
- }
- else {
+ } else {
$("body").addClass('desktop');
}
if (this.pad.enabled) {
}
$(this).trigger('fluidbook.splash.beforehide');
var $this = this;
- if (this.support.transitions3dacc && this.datas.mobileTransitions==='flip3d') {
+ if (this.support.transitions3dacc && this.datas.mobileTransitions === 'flip3d') {
this.pauseNetwork(1500);
setTimeout(function () {
this.fluidbook.pagetransitions.flip3d.performancesTest(function () {
$this.hideSplash();
}, true);
- }
-
- else if (args[1] == 'landing') {
+ } else if (args[1] == 'landing') {
$this.hideSplash();
if (this.landingpage !== undefined) {
this.landingpage.show();
}
- }
-
- else {
+ } else {
var view = args[1];
if (this.currentPage == -1) {
if (view == 'multimedia' || view == 'video') {
_downloadFilePhonegap: function (url, localname, fs, callback, callbackArgs) {
console.log('download file phonegap');
var $this = this;
- if (fs == undefined) {
+ if (fs === undefined) {
fs = LocalFileSystem.PERSISTENT;
}
filePath,
function (entry) {
console.log('file donwloaded');
- if (callback != undefined) {
- if (callbackArgs == undefined) {
+ if (callback !== undefined) {
+ if (callbackArgs === undefined) {
callbackArgs = [];
}
callbackArgs[0] = entry.toURL();
var $this = this;
var types_ios = {pdf: 'com.adobe.pdf'};
var types_android = {pdf: 'application/pdf'};
- if (this.datas.phonegap == 'ios') {
+ if (this.datas.phonegap === 'ios') {
console.log('open download on ios ' + type + ' -> ' + types_ios[type]);
this.displayLoader();
if (types_ios[type] != undefined) {
}
}
- if (this.datas.phonegap == 'android') {
- if (types_android[type] != undefined) {
+ if (this.datas.phonegap === 'android') {
+ if (types_android[type] !== undefined) {
console.log('open pdf file');
this.displayLoader();
window.requestFileSystem(LocalFileSystem.TEMPORARY, 0, function (fileSystem) {
}, function (args) {
$this.hideLoader(5);
}, function (args) {
+ this.wopen(copyEntry.toURL(), '_blank', '');
$this.hideLoader(5);
});
}, lazy);