summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-09-14 19:00:53 +0300
committerAndrew Dolgov <[email protected]>2021-09-14 19:00:53 +0300
commita8d98e68cc3ad674d4047fdb7ab7a3519d438a6f (patch)
tree8d2c119c87f8150ac7412c5e23bc0d16cccf5f6b /js
parent189d771936663ff0d8b487420f35f8773b3d0bb8 (diff)
generate locations for smaller character ranges; disable onresized for now
Diffstat (limited to 'js')
-rw-r--r--js/reader.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/reader.js b/js/reader.js
index 07c167e..b141f67 100644
--- a/js/reader.js
+++ b/js/reader.js
@@ -629,16 +629,16 @@ const Reader = {
return book.locations.load(locations);
} else {
$(".loading-message").html("Preparing locations…");
- return book.locations.generate(1600);
+ return book.locations.generate(100);
}
});
} else {
$(".loading-message").html("Preparing locations…");
- return book.locations.generate(1600);
+ return book.locations.generate(100);
}
}).catch(function() {
$(".loading-message").html("Preparing locations…");
- return book.locations.generate(1600);
+ return book.locations.generate(100);
});
}
});
@@ -688,7 +688,7 @@ const Reader = {
Reader.hotkeyHandler(e);
});
- rendition.on('resized', function() {
+ /*rendition.on('resized', function() {
console.log('resized');
$(".loading").show();
@@ -700,7 +700,7 @@ const Reader = {
$(".loading").hide();
}, 250);
- });
+ });*/
rendition.on('rendered', function(/*chapter*/) {
$(".chapter").html($("<span>").addClass("glyphicon glyphicon-th-list"));