]> _ Git - fluidbook-html5.git/commitdiff
#1445
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 13 Jun 2017 16:25:15 +0000 (18:25 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 13 Jun 2017 16:25:15 +0000 (18:25 +0200)
images/shadeleft-thumb.png [new file with mode: 0644]
images/shaderight-thumb.png [new file with mode: 0644]
js/libs/fluidbook/fluidbook.loader.js

diff --git a/images/shadeleft-thumb.png b/images/shadeleft-thumb.png
new file mode 100644 (file)
index 0000000..772f411
Binary files /dev/null and b/images/shadeleft-thumb.png differ
diff --git a/images/shaderight-thumb.png b/images/shaderight-thumb.png
new file mode 100644 (file)
index 0000000..5aedbf6
Binary files /dev/null and b/images/shaderight-thumb.png differ
index a3e9f6d88022cf49b6ff47e911ca56542b1c11ef..a41499cc32aa97edee9333375c3211b97a5262e8 100644 (file)
@@ -265,7 +265,7 @@ FluidbookLoader.prototype = {
         left = (page % 2 == 0);
 
         var h = this.fluidbook.datas.thumbHeight;
-        var s = Math.floor(page / 100);
+        var s = Math.floor((page - 1) / 100);
         var row = Math.floor((page - 1) / 10);
         var col = (page - 1) % 10;
         if (col < 0) {
@@ -285,10 +285,10 @@ FluidbookLoader.prototype = {
                 p = '100%';
                 i = 'left';
             }
-            shadeImage = 'url("images/shade' + i + '-reflet.png"),';
+            shadeImage = 'url("images/shade' + i + '-thumb.png"),';
 
             shadePosition = p + " 0%,";
-            shadeSize = '20px ' + h + 'px,';
+            shadeSize = '50px ' + h + 'px,';
         }
 
         $(div).css({