diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2017-02-26 19:05:07 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2017-02-26 19:05:07 +0300 |
| commit | bd6cc25bc5cabe4bf4f2ec9ccf4da8bd37fcbfa7 (patch) | |
| tree | 8982886bcbf11870cef38b57ace2ca90f9b1a082 /read.html | |
| parent | fafcfcd6755642225b428013f506da985ec6dd99 (diff) | |
| download | the-epube-bd6cc25bc5cabe4bf4f2ec9ccf4da8bd37fcbfa7.tar.gz the-epube-bd6cc25bc5cabe4bf4f2ec9ccf4da8bd37fcbfa7.tar.xz | |
show an indicator while chapter is loaded by epub.js
Diffstat (limited to 'read.html')
| -rw-r--r-- | read.html | 10 |
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) { |
