this.canNavigate = false;
this.initSettings(datas);
- this.singleMode = (this.datas.mobileNavigationType === 'portrait');
+ this.singleMode = (this.datas.mobileNavigationType === 'portrait' || this.datas.mobileNavigationType === 'mobilefirst');
this.junk = datas.cacheDate;
this.networkControl = new FluidbookNetworkControl(this);
this.enabled = this.fluidbook.datas.mobileNavigationType === 'mobilefirst';
if (this.enabled) {
this.init();
- }else{
+ } else {
$("html").addClass('no-mobilefirst');
}
}
FluidbookMobileFirst.prototype = {
init: function () {
$("html").addClass('mobilefirst');
+ this.fluidbook.datas.soundTheme = '';
},
}
\ No newline at end of file
function FluidbookSound(fluidbook) {
this.fluidbook = fluidbook;
- if (this.fluidbook.datas.soundTheme == '' || !Modernizr.audio || this.fluidbook.support.iOS || this.fluidbook.support.android) {
+ if (this.fluidbook.datas.soundTheme === '' || !Modernizr.audio || this.fluidbook.support.iOS || this.fluidbook.support.android) {
this.enabled = false;
this.on = false;
return;
},
getNormalView: function () {
- if (this.normalHTML == '') {
+ if (this.normalHTML === '') {
this.normalHTML += '<div class="content"><div id="indexView">';
if (this.fluidbook.datas.indexMessage !== '') {
} else {
c = '';
- if (this.fluidbook.l10n.dir == 'ltr') {
+ if (this.fluidbook.l10n.dir === 'ltr') {
s1 = 'left';
s2 = 'right'
} else {