diff options
author | Andrew Dolgov <[email protected]> | 2020-11-20 20:24:24 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-11-20 20:24:24 +0300 |
commit | 7df3df758589dde34aa49dfe20a5079e47366014 (patch) | |
tree | bcee5e62973e58a76aa9a89652bea5f95ebde65c /dist/reader_iframe.min.js | |
parent | 94e0592f456880e72a8d8114db80e2288958c638 (diff) | |
parent | 076a76af57ae2ec4e87f15b38f20e367a5225a14 (diff) |
Merge remote-tracking branch 'origin' into app-online
Diffstat (limited to 'dist/reader_iframe.min.js')
-rw-r--r-- | dist/reader_iframe.min.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/reader_iframe.min.js b/dist/reader_iframe.min.js index 189e5ad..9280922 100644 --- a/dist/reader_iframe.min.js +++ b/dist/reader_iframe.min.js @@ -1 +1 @@ -"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 +"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("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()}));let e=null;$(document).on("selectionchange",(function(){App.onLine&&(window.clearTimeout(e),e=window.setTimeout((function(){const e=getSelection().toString().trim();e.match(/^[\w]+$/)&&Reader.lookupWord(e,(function(){"undefined"!=typeof EpubeApp&&EpubeApp.showActionBar(!1),getSelection().removeAllRanges()}))}),250))})),enable_swipes()}));
\ No newline at end of file |