From edbc49b9b7ad9dd4323db4a0e4ed0a7907871dd6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 2 Jul 2018 12:31:52 +0300 Subject: add option to keep UI when turning pages, remove terrible iframe onclick hack --- read.html | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'read.html') diff --git a/read.html b/read.html index 5cfdb1e..074a4d7 100644 --- a/read.html +++ b/read.html @@ -72,25 +72,19 @@ -
-
-
-
- --> +
@@ -502,6 +496,14 @@ }); });*/ + localforage.getItem("epube.keep-ui-visible").then(function(keep) { + $(".keep_ui_checkbox") + .attr("checked", keep) + .on("click", function() { + localforage.setItem("epube.keep-ui-visible", this.checked); + }); + }); + localforage.getItem("epube.fontFamily").then(function(font) { if (!font) font = DEFAULT_FONT_FAMILY; -- cgit v1.2.3