diff options
author | Andrew Dolgov <[email protected]> | 2017-06-06 13:36:17 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-06-06 13:36:17 +0300 |
commit | 36075d3f6a1c5785f8ffe959b2a86421f3673d24 (patch) | |
tree | c434522941ac208d686bb09549a66b270d76ab13 /read.html | |
parent | 7e4ee45037eb013be2311cecc0af4dd8f3a2258b (diff) |
popup dictionary window on touch events
Diffstat (limited to 'read.html')
-rw-r--r-- | read.html | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -339,6 +339,7 @@ EPUBJS.core.addScripts([baseUrl + "lib/bootstrap/v3/js/jquery.js", baseUrl + "lib/jquery.mobile.custom.js", + baseUrl + "js/dict.js", baseUrl + "js/swipes.js" ], null, renderer.doc.head); EPUBJS.core.addCss(baseUrl + "lib/bootstrap/v3/css/bootstrap.css", null, renderer.doc.head); @@ -509,7 +510,13 @@ }; - $("#reader iframe")[0].contentWindow.onmouseup = function(event) { + $("#reader iframe")[0].contentWindow.ontouchend = function(event) { + console.log('ontouchend'); + + + }; + + /*$("#reader iframe")[0].contentWindow.onmouseup = function(event) { if (!navigator.onLine) return; @@ -530,7 +537,7 @@ } }); } - }; + };*/ }); |