summaryrefslogtreecommitdiff
path: root/dist/reader_iframe.min.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-11-19 07:59:26 +0300
committerAndrew Dolgov <[email protected]>2020-11-19 07:59:26 +0300
commit94e0592f456880e72a8d8114db80e2288958c638 (patch)
tree4055fcd6609ec1f609a595c3807437e08703185a /dist/reader_iframe.min.js
parent521a040b7a460688675f1d5c0eac46bfe1a24883 (diff)
WIP: check online status via app if possible
Diffstat (limited to 'dist/reader_iframe.min.js')
-rw-r--r--dist/reader_iframe.min.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/reader_iframe.min.js b/dist/reader_iframe.min.js
index 4edac94..189e5ad 100644
--- a/dist/reader_iframe.min.js
+++ b/dist/reader_iframe.min.js
@@ -1 +1 @@
-"use strict";let Reader;function enable_swipes(){$(window).off("swipeleft swiperight"),$(window).on("swipeleft",(function(){Reader.Page.next()})),$(window).on("swiperight",(function(){Reader.Page.prev()}))}$(document).ready((function(){Reader=parent.__get_reader(),$(window).on("doubletap",(function(){getSelection().toString().trim().match(/^$/)&&Reader.toggleFullscreen()})),$(window).on("click tap",(function(e){if(0==e.button){if($(".modal").is(":visible"))return;"undefined"!=typeof EpubeApp?EpubeApp.toggleActionBar():Reader.showUI(!0)}})),$(window).on("touchstart",(function(){enable_swipes()})),$(window).on("mousedown",(function(){$(window).off("swipeleft swiperight")})),$(window).on("wheel",(function(e){e.originalEvent.deltaY>0?Reader.Page.next():e.originalEvent.deltaY<0&&Reader.Page.prev()})),$(window).on("mouseup touchend",(function(){if(!navigator.onLine)return;const e=getSelection().toString().trim();e.match(/^[\w­]+$/)&&Reader.lookupWord(e,(function(){"undefined"!=typeof EpubeApp&&EpubeApp.showActionBar(!1),getSelection().removeAllRanges()}))})),enable_swipes()})); \ No newline at end of file
+"use strict";let Reader,App;function enable_swipes(){$(window).off("swipeleft swiperight"),$(window).on("swipeleft",(function(){Reader.Page.next()})),$(window).on("swiperight",(function(){Reader.Page.prev()}))}$(document).ready((function(){Reader=parent.__get_reader(),App=parent.__get_app(),$(window).on("doubletap",(function(){getSelection().toString().trim().match(/^$/)&&Reader.toggleFullscreen()})),$(window).on("click tap",(function(e){if(0==e.button){if($(".modal").is(":visible"))return;"undefined"!=typeof EpubeApp?EpubeApp.toggleActionBar():Reader.showUI(!0)}})),$(window).on("touchstart",(function(){enable_swipes()})),$(window).on("mousedown",(function(){$(window).off("swipeleft swiperight")})),$(window).on("wheel",(function(e){e.originalEvent.deltaY>0?Reader.Page.next():e.originalEvent.deltaY<0&&Reader.Page.prev()})),$(window).on("mouseup touchend",(function(){if(!App.onLine)return;const e=getSelection().toString().trim();e.match(/^[\w­]+$/)&&Reader.lookupWord(e,(function(){"undefined"!=typeof EpubeApp&&EpubeApp.showActionBar(!1),getSelection().removeAllRanges()}))})),enable_swipes()})); \ No newline at end of file