summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-02-26 19:05:07 +0300
committerAndrew Dolgov <[email protected]>2017-02-26 19:05:07 +0300
commitbd6cc25bc5cabe4bf4f2ec9ccf4da8bd37fcbfa7 (patch)
tree8982886bcbf11870cef38b57ace2ca90f9b1a082 /read.html
parentfafcfcd6755642225b428013f506da985ec6dd99 (diff)
show an indicator while chapter is loaded by epub.js
Diffstat (limited to 'read.html')
-rw-r--r--read.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/read.html b/read.html
index f42fa82..0f60695 100644
--- a/read.html
+++ b/read.html
@@ -142,6 +142,7 @@
</div>
<div class="footer">
+ <div class="notice bg-warning text-warning" style="display : none"></div>
<div class="location">
Loc: <span id="cur_page">-1</span> / <span id="total_pages">-1</span>
</div>
@@ -326,6 +327,15 @@
});
})
+ book.on("renderer:chapterUnloaded", function() {
+ $(".notice").html("Loading...").show();
+
+ });
+
+ book.on("renderer:chapterDisplayed", function() {
+ $(".notice").hide();
+ });
+
book.on("renderer:chapterDisplayed", function() {
$("#reader iframe")[0].contentWindow.onmousewheel = function(event) {