summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-06-06 13:36:17 +0300
committerAndrew Dolgov <[email protected]>2017-06-06 13:36:17 +0300
commit36075d3f6a1c5785f8ffe959b2a86421f3673d24 (patch)
treec434522941ac208d686bb09549a66b270d76ab13 /read.html
parent7e4ee45037eb013be2311cecc0af4dd8f3a2258b (diff)
popup dictionary window on touch events
Diffstat (limited to 'read.html')
-rw-r--r--read.html11
1 files changed, 9 insertions, 2 deletions
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 @@
}
});
}
- };
+ };*/
});