about summary refs log tree commit diff stats
path: root/read.html
diff options
context:
space:
mode:
authorAndrew Dolgov <noreply@fakecake.org>2017-02-26 19:05:07 +0300
committerAndrew Dolgov <noreply@fakecake.org>2017-02-26 19:05:07 +0300
commitbd6cc25bc5cabe4bf4f2ec9ccf4da8bd37fcbfa7 (patch)
tree8982886bcbf11870cef38b57ace2ca90f9b1a082 /read.html
parentfafcfcd6755642225b428013f506da985ec6dd99 (diff)
downloadthe-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.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) {