From 36075d3f6a1c5785f8ffe959b2a86421f3673d24 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 6 Jun 2017 13:36:17 +0300 Subject: popup dictionary window on touch events --- read.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'read.html') diff --git a/read.html b/read.html index 087834c..10850fe 100644 --- a/read.html +++ b/read.html @@ -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 @@ } }); } - }; + };*/ }); -- cgit v1.2.3