getPageDimensions: function (page, width) {
var dim = this.fluidbook.datas.pagesDimensions[page];
+ if(dim===undefined){
+ console.log(page);
+ }
var height;
if (undefined === width) {
width = dim[0];
$("#pages").css('maxHeight', h);
},
+ getBookScale: function () {
+ return Math.min(620, this.fluidbook.resize.ww * 0.9) / this.fluidbook.datas.width;
+ },
+
getFooterNavigation: function (page) {
var visibility = this.fluidbook.getButtonsVisibility(page);
var footer = '<div class="mf-nav"><div class="reveal">';
var ah = this.hh - marginTop - marginBottom;
var fhh = this.fluidbook.datas.height;
var fww = this.fluidbook.datas.width;
- if (this.orientation == 'landscape') {
+ if (this.orientation === 'landscape') {
fww *= 2;
}
this.bookScale = Math.min(aw / fww, ah / fhh);
var origin = ['50%', '50%'];
if (this.fluidbook.mobilefirst.enabled) {
- this.bookScale = Math.min(aw / fww, 1);
+ this.bookScale=this.fluidbook.mobilefirst.getBookScale();
origin[1] = '0%';
}
opacity: 0;
z-index: 0;
}
-
- .mobilefirst & {
- display: none;
- }
-
}
a.bookmark {
.mobilefirst {
#shadow {
- box-shadow: rgba(0, 0, 0, @shadow-opacity) 0 0 10px;
-
- .shadow.bottom {
- height: 80px;
- bottom: -80px;
- background-size: unit(@book-page-width - 10, px) 80px;
- background-position: 50% 100%;
- background-repeat: no-repeat;
- opacity: @shadow-opacity*0.25;
- }
+ display: none;
+ //box-shadow: rgba(0, 0, 0, @shadow-opacity) 0 0 10px;
+ //
+ //.shadow.bottom {
+ // height: 80px;
+ // bottom: -80px;
+ // background-size: unit(@book-page-width - 10, px) 80px;
+ // background-position: 50% 100%;
+ // background-repeat: no-repeat;
+ // opacity: @shadow-opacity*0.25;
+ //}
}
#main, #fluidbook {