summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-06-29 18:40:49 +0300
committerAndrew Dolgov <[email protected]>2018-06-29 18:40:49 +0300
commit7481076e80ac56a5d7e371a206b6a84d81baa43c (patch)
tree0253266caff01b2839e94b6360e5bc4da7cd8b2c /read.html
parentbb6cfa1b5b285d592ebd8d8cc7dde48849c6659c (diff)
add synthesized page numbers
Diffstat (limited to 'read.html')
-rw-r--r--read.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/read.html b/read.html
index b29a112..ad197ce 100644
--- a/read.html
+++ b/read.html
@@ -230,7 +230,8 @@
<div class="footer">
<div class="chapter" data-toggle="modal" data-target="#toc-modal"></div>
<div class="location">
- <span id="page_pct">?</span>
+ <span id="cur_page">?</span> / <span id="total_pages">?</span>
+ (<span id="page_pct">?</span>)
</div>
</div>
@@ -783,6 +784,9 @@
var currentPage = parseInt(book.locations.percentageFromCfi(currentCfi) * 100);
var pct = book.locations.percentageFromCfi(currentCfi);
+ $("#cur_page").html(location.start.location);
+ $("#total_pages").html(book.locations.length());
+
$("#page_pct").html(parseInt(pct*100) + '%');
if (_store_position && new Date().getTime()/1000 - _last_position_sync > 15) {