if (this.fluidbook.help) {
this.fluidbook.help.resize(this.ww, this.hh, interfaceScale, navScale);
}
- $('#loader').css({top:this.hh/2,left:this.ww/2});
+ $('#loader').css({top: this.hh / 2, left: this.ww / 2});
this.fluidbook.background.resize(this.ww, this.hh);
if (this.fluidbook.slider) {
this.fluidbook.slider.resize(this.ww, this.hh, this.orientation == 'portrait');
}
}
+ this.checkLogoVisibility();
+
$(window).scrollTop(0);
$(this.fluidbook).trigger('fluidbook.resize', {ww: this.ww, hh: this.hh, orientation: this.orientation, fluidbookrect: $("#fluidbook").get(0).getBoundingClientRect()});
},
$("#next,#previous").show();
},
+ checkLogoVisibility: function () {
+ var logo = document.getElementById("logo").getBoundingClientRect();
+ var fluidbook = document.getElementById("fluidbook").getBoundingClientRect();
+ var hidden = logo.bottom > fluidbook.top && logo.left < fluidbook.right;
+ if (hidden) {
+ $("#logo").addClass('hidden');
+ } else {
+ $("#logo.hidden").removeClass('hidden');
+ }
+ },
resizeSplash: function () {
if ($("#splash").length == 0) {