summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-01-25 18:25:36 +0300
committerAndrew Dolgov <[email protected]>2018-01-25 18:25:36 +0300
commitf11c22169f9468ddb2dcdfa51da7327d91d35396 (patch)
tree30abd11e93817ba06e415e3ae35013c245cc47e4 /read.html
parentf76c411e47f07c8f00327996c66e652c664678d2 (diff)
remove two needless functions
Diffstat (limited to 'read.html')
-rw-r--r--read.html16
1 files changed, 12 insertions, 4 deletions
diff --git a/read.html b/read.html
index 327a179..0c09b88 100644
--- a/read.html
+++ b/read.html
@@ -65,13 +65,13 @@
<div class="checkbox">
<label>
- <input class="transition_checkbox" onchange="toggle_transitions(this)"
+ <input class="transition_checkbox"
type="checkbox"> Disable transitions
</label>
</div>
<div class="checkbox">
<label>
- <input class="swipe_checkbox" onchange="toggle_swipes(this)"
+ <input class="swipe_checkbox"
type="checkbox"> Disable swipes
</label>
</div>
@@ -432,11 +432,19 @@
});
localforage.getItem("epube.disable-transitions").then(function(disable) {
- $(".transition_checkbox").attr("checked", disable);
+ $(".transition_checkbox")
+ .attr("checked", disable)
+ .on("click", function() {
+ localforage.setItem("epube.disable-transitions", this.checked);
+ });
});
localforage.getItem("epube.disable-swipes").then(function(disable) {
- $(".swipe_checkbox").attr("checked", disable);
+ $(".swipe_checkbox")
+ .attr("checked", disable)
+ .on("click", function() {
+ localforage.setItem("epube.disable-swipes", this.checked);
+ });
});
localforage.getItem("epube.fontFamily").then(function(font) {