summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-07-02 12:31:52 +0300
committerAndrew Dolgov <[email protected]>2018-07-02 12:31:52 +0300
commitedbc49b9b7ad9dd4323db4a0e4ed0a7907871dd6 (patch)
treec15eb0dc8bacc471e20c0e5146e9dfa15307c398 /read.html
parenta42f5887aee2560cec360845e89fe66092ec352b (diff)
add option to keep UI when turning pages, remove terrible iframe onclick hack
Diffstat (limited to 'read.html')
-rw-r--r--read.html24
1 files changed, 13 insertions, 11 deletions
diff --git a/read.html b/read.html
index 5cfdb1e..074a4d7 100644
--- a/read.html
+++ b/read.html
@@ -72,25 +72,19 @@
</div>
</div>
- <!-- <div class="form-group">
+ <div class="form-group">
<label class="col-sm-3 control-label"></label>
<div class="col-sm-9">
- <div class="text-muted">Options take effect after reload:</div>
+ <!-- <div class="text-muted">Options take effect after reload:</div> -->
<div class="checkbox">
<label>
- <input class="transition_checkbox"
- type="checkbox"> Disable transitions
- </label>
- </div>
- <div class="checkbox">
- <label>
- <input class="fullscreen_checkbox"
- type="checkbox"> Request fullscreen mode
+ <input class="keep_ui_checkbox"
+ type="checkbox"> Keep UI when turning pages
</label>
</div>
</div>
- </div> -->
+ </div>
<hr/>
@@ -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;