diff options
author | Andrew Dolgov <[email protected]> | 2018-06-29 18:40:49 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-06-29 18:40:49 +0300 |
commit | 7481076e80ac56a5d7e371a206b6a84d81baa43c (patch) | |
tree | 0253266caff01b2839e94b6360e5bc4da7cd8b2c /read.html | |
parent | bb6cfa1b5b285d592ebd8d8cc7dde48849c6659c (diff) |
add synthesized page numbers
Diffstat (limited to 'read.html')
-rw-r--r-- | read.html | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) { |