summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
Diffstat (limited to 'read.html')
-rw-r--r--read.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/read.html b/read.html
index 4f6be0d..0af201a 100644
--- a/read.html
+++ b/read.html
@@ -320,6 +320,16 @@
init_taps();
document.onkeydown = hotkey_handler;
+ EPUBJS.Hooks.register("beforeChapterDisplay").swipeDetection = function(callback, renderer) {
+
+ EPUBJS.core.addScripts(["/books/lib/bootstrap/v3/js/jquery.js",
+ "/books/lib/jquery.mobile-1.4.5.js",
+ "/books/js/swipes.js" ], null, renderer.doc.head);
+
+ if (callback) callback();
+ }
+
+
var book = ePub({
restore: false,
});