this.searchHintXHR = null;
this.searchString = '';
this.termsToHighlight = '';
- this.imagesVersion = (this.datas.mobileVersion == 'html5-images' || !this.support.SVG);
- this.vectorTexts = !this.imagesVersion;
+ this.vectorTexts = !this.support.imagesVersion;
this.displayOnePage = false;
this.indexHTML = '';
this.transitionning = false;
this.audiodescription.setupPages();
}
- $(this).trigger('fluidbook.page.change.end',[this.currentPage]);
+ $(this).trigger('fluidbook.page.change.end', [this.currentPage]);
},
setPageNumbers: function () {
$("#pagesnumbers .left").html(this.getPageNumberOfSide('left'));
FluidbookLoader.prototype = {
canPreload: function () {
this.numPreload = 6;
- if (this.fluidbook.imagesVersion) {
+ if (this.fluidbook.support.imagesVersion) {
this.numPreload += 6;
}
if (this.fluidbook.datas.phonegap) {
},
getBackgroundURL: function (page) {
var prefix = 'p';
- if (this.fluidbook.imagesVersion) {
+ if (this.fluidbook.support.imagesVersion) {
prefix = 't';
}
},
loadTexts: function (pageNr, callback) {
- if (this.fluidbook.imagesVersion) {
+ if (this.fluidbook.support.imagesVersion) {
callback();
return;
}
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;
+ switch (this.fluidbook.datas.mobileVersion) {
+ case 'html5':
+ this.imagesVersion = false;
+ break;
+ case 'html5-images':
+ this.imagesVersion = true;
+ break;
+ case 'html5-desktop':
+ this.imagesVersion = this.iOS || this.android;
+ break;
+ default:
+ this.imagesVersion = false;
+ break;
+ }
+
this.transitions2d = Modernizr.csstransforms && Modernizr.csstransitions;
this.transitions3d = Modernizr.csstransforms3d && Modernizr.preserve3d && this.transitions2d;