diff options
author | Andrew Dolgov <[email protected]> | 2018-01-25 18:52:21 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-01-25 18:52:21 +0300 |
commit | f0deb0736294d72c5edc38d2569c59eb2cac67ab (patch) | |
tree | 9e384468528bb60d83131dc51dc9903e991de297 /read.html | |
parent | f11c22169f9468ddb2dcdfa51da7327d91d35396 (diff) |
fullscreen (not working)
Diffstat (limited to 'read.html')
-rw-r--r-- | read.html | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -75,6 +75,12 @@ type="checkbox"> Disable swipes </label> </div> + <div class="checkbox"> + <label> + <input class="fullscreen_checkbox" + type="checkbox"> Request fullscreen mode + </label> + </div> </div> </div> @@ -447,6 +453,14 @@ }); }); + localforage.getItem("epube.enable-fullscreen").then(function(enable) { + $(".fullscreen_checkbox") + .attr("checked", enable) + .on("click", function() { + localforage.setItem("epube.enable-fullscreen", this.checked); + }); + }); + localforage.getItem("epube.fontFamily").then(function(font) { if (!font) font = DEFAULT_FONT_FAMILY; |