diff options
author | Andrew Dolgov <[email protected]> | 2018-06-29 16:35:02 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-06-29 16:35:02 +0300 |
commit | f1aa90fa6c4599107cee9149220da617b66b527e (patch) | |
tree | ca4c324757cc378da58ae8c1aad682f56709b7f7 /read.html | |
parent | 84fef6ce365385f71e325d63c12fe4101b352226 (diff) |
add button to enter fullscreen; disable transitions for now
Diffstat (limited to 'read.html')
-rw-r--r-- | read.html | 30 |
1 files changed, 11 insertions, 19 deletions
@@ -72,7 +72,7 @@ </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> @@ -90,7 +90,7 @@ </label> </div> </div> - </div> + </div> --> <hr/> @@ -202,6 +202,10 @@ <span class="glyphicon glyphicon-th-list" aria-hidden="true"></span> </button> --> + <button class="btn btn-default btn-xs" onclick="request_fullscreen()"> + <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span> + </button> + <button class="btn btn-default btn-xs" data-toggle="modal" data-target="#settings-modal"> <span class="glyphicon glyphicon-wrench" aria-hidden="true"></span> @@ -409,10 +413,6 @@ } }); - localforage.getItem("epube.enable-fullscreen").then(function(enable) { - _enable_fullscreen = enable; - }); - var book = ePub({ restore: false, minSpreadWidth: 961, @@ -478,7 +478,7 @@ .append($("<style type='text/css'>") .text(_res_data[base_url + 'css/reader.css'])); - localforage.getItem("epube.disable-transitions").then(function(notransitions) { + /*localforage.getItem("epube.disable-transitions").then(function(notransitions) { if (!notransitions) { $(contents.document.head) .append($("<style type='text/css'>") @@ -486,13 +486,13 @@ // TODO: fix transitions somehow - /*EPUBJS.Render.Iframe.prototype.setLeft = function(leftPos){ + EPUBJS.Render.Iframe.prototype.setLeft = function(leftPos){ this.docEl.style[this.transform] = 'translate('+ (-leftPos) + 'px, 0)'; - }*/ + } } - }); + }); */ - localforage.getItem("epube.theme").then(function(theme) { + return localforage.getItem("epube.theme").then(function(theme) { if (!theme) theme = 'default'; @@ -519,14 +519,6 @@ }); }); - 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; |