summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-06-29 15:01:55 +0300
committerAndrew Dolgov <[email protected]>2018-06-29 15:01:55 +0300
commit49cf8bbd4d7e2a7e98777a271f04c2268e146e95 (patch)
tree7721dfe297c6fa0425f2ad2384c2c36e993149b9 /read.html
parent888365e2e44845485af8ae50dc3163e919fc3a63 (diff)
minor cleanup
Diffstat (limited to 'read.html')
-rw-r--r--read.html44
1 files changed, 2 insertions, 42 deletions
diff --git a/read.html b/read.html
index 50f660b..f606235 100644
--- a/read.html
+++ b/read.html
@@ -746,42 +746,6 @@
});
- /*if (!_pagination_stored) {
- if (navigator.onLine) {
- $.post("backend.php", { op: "storepagination", id: $.urlParam("id"),
- payload: JSON.stringify(pageList), total: book.pagination.totalPages });
- }
-
- localforage.setItem(cacheId("pagination"), pageList);
- }
-
- var curPage = book.pagination.pageFromCfi(book.getCurrentLocationCfi());
-
- $("#total_pages").html(book.pagination.totalPages);
- $("#cur_page").html(curPage);
-
- if (book.pagination.totalPages > 0) {
- var pct = parseInt(curPage / book.pagination.totalPages * 100);
- $("#page_pct").html(pct + "%");
- }
-
- open_lastread();
-
- window.setTimeout(function() {
- $(".loading").hide();
- }, 1500);
-
- $(".location").click(function() {
- var current = book.pagination.pageFromCfi(book.getCurrentLocationCfi());
- var total = book.pagination.totalPages;
-
- var page = prompt("Jump to location [1-" + total + "]", current);
-
- if (page) {
- book.gotoPage(page);
- }
-
- }); */
}).then(function(locations) {
if (locations && !_pagination_stored) {
@@ -806,12 +770,6 @@
});
open_lastread();
-
- window.setTimeout(function() {
- $(".loading").hide();
- }, 1500);
-
-
});
rendition.on("keyup", hotkey_handler);
@@ -875,6 +833,8 @@
rendition.on('relocated', function(location) {
+ $(".loading").hide();
+
var currentCfi = location.start.cfi;
var currentPage = parseInt(book.locations.percentageFromCfi(currentCfi) * 100);
var totalPages = 100;