]> _ Git - fluidbook-html5.git/commitdiff
wip #2691 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 6 May 2019 18:28:51 +0000 (20:28 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 6 May 2019 18:28:51 +0000 (20:28 +0200)
js/libs/fluidbook/fluidbook.loader.js
style/fluidbook.less

index f643ff973066d0df5052f2cb03f6d56f6b616474..60efd4286089f0a240e9949db2238d008fd1c52c 100644 (file)
@@ -539,17 +539,9 @@ FluidbookLoader.prototype = {
             width = 100;
         }
 
-        left = ((page % 2 == 0) && this.fluidbook.l10n.ltr) || ((page % 2 == 1) && this.fluidbook.l10n.rtl);
+        left = ((page % 2 === 0) && this.fluidbook.l10n.ltr) || ((page % 2 == 1) && this.fluidbook.l10n.rtl);
 
         var h = width * (this.fluidbook.datas.thumbHeight / 100);
-        var s = Math.floor((page - 1) / width);
-        var row = Math.floor(((page - (s * width)) - 1) / 10);
-        var col = (page - 1) % 10;
-        if (col < 0) {
-            col += 10;
-        }
-        var spriteleft = col * width;
-        var spritetop = row * h;
 
         var shadeImage = '';
         var shadePosition = '';
@@ -568,15 +560,9 @@ FluidbookLoader.prototype = {
             shadeSize = (width / 2) + 'px ' + h + 'px,';
         }
 
-        var thumbImage = 'url("data/thumbnails/s' + s + '.jpg")';
-        var thumbPosition = (-spriteleft) + 'px ' + (-spritetop) + 'px';
-        var thumbSize = 'auto auto';
-
-        if (width !== 100) {
-            thumbImage = 'url("data/background/150/t' + page + '.jpg")';
-            thumbPosition = '0px 0px';
-            thumbSize = '100% 100%';
-        }
+        var thumbImage = 'url("data/thumbnails/p' + page + '.jpg")';
+        var thumbPosition = '0px 0px';
+        var thumbSize = '100% 100%';
 
         $(div).css({
             backgroundImage: shadeImage + thumbImage,
index e86ce04d14b9f36f232b66f8231e4ef4b16bd6d6..8a6444e48cbeed1f7cb7a84692759408a2de0797 100644 (file)
@@ -1487,6 +1487,7 @@ html.ios body.portrait #interface {
 
           .img {
             position: relative;
+
             width: @w;
             height: @w/@book-page-ratio;
 
@@ -1806,14 +1807,14 @@ form input[type="text"], form input[type="email"] {
   .img {
     width: 100px;
     height: @thumb-height;
-    background-color: transparent;
+    background-color: #fff;
     position: relative;
     z-index: 1;
-    background-blend-mode: normal, overlay;
+    //background-blend-mode: normal, overlay;
     // Fix #2631
-    .android.chrome & {
-      background-blend-mode: normal, normal;
-    }
+    //.android.chrome & {
+    //  background-blend-mode: normal, normal;
+    //}
 
     background-repeat: no-repeat;
   }