if (this.fluidbook.datas.displayChaptersAtStart) {
$(this.fluidbook).on('fluidbook.splash.hide', function () {
$this.openView('chapters', '', '', function () {
-
+
});
});
}
__openView: function (view, param1, param2, callback) {
//console.log('__openView(' + view + ',' + param1 + ',' + param2 + ')');
- param1=decodeURIComponent(param1);
- param2=decodeURIComponent(param2);
+ param1 = decodeURIComponent(param1);
+ param2 = decodeURIComponent(param2);
var $this = this;
var camelView = view.charAt(0).toUpperCase() + view.substr(1);
var $this = this;
$.each(this.fluidbook.l10n.multilang, function (k, v) {
var url = v.url;
- if (url.substr(0, 3) == '../' && !$this.fluidbook.datas.standalone) {
+ if (url.substr(0, 3) == '../' && !$this.fluidbook.datas.standalone && !$this.fluidbook.support.offline) {
url = '../' + url;
}
/*'datas' => array(__('Langue') => 'lang',
this.android = this.fitScreenAtZero = this.userAgent.search(/android/i) > -1 || this.userAgent.search(/galaxy/i) > -1;
this.android3 = this.android && this.userAgent.search(/android 3/i) > -1;
this.iOS = this.userAgent.search(/ipad/i) > -1 || this.userAgent.search(/iphone/i) > -1 || this.userAgent.search(/ipod/i) > -1;
+ this.offline = typeof process !== "undefined" && process.versions['node-webkit'];
switch (this.fluidbook.datas.mobileVersion) {
case 'html5':
},
networkState: function () {
var connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection || {
- type: 'unknown'
- };
+ type: 'unknown'
+ };
var t = connetion.type;
if (t == undefined) {