From 038c81e496893adb3c55ca528da82166ededb47d Mon Sep 17 00:00:00 2001 From: RawKStar77 Date: Wed, 12 Nov 2014 15:15:55 -0800 Subject: [PATCH] Got Hypothes.is integration working again. Still need to work on stylings. Currently the sidebar is not visible due to a low z-index, but I would like to do a better looking integration when I find time. ~ --- examples/hypothesis.html | 70 ++++++++++++++-------------------- hooks/extensions/hypothesis.js | 10 ----- 2 files changed, 29 insertions(+), 51 deletions(-) diff --git a/examples/hypothesis.html b/examples/hypothesis.html index eb575cc..1e5d466 100755 --- a/examples/hypothesis.html +++ b/examples/hypothesis.html @@ -11,14 +11,19 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -200,14 +188,14 @@ Bookmark Settings Fullscreen -
+ Annotations
- +
- +
diff --git a/hooks/extensions/hypothesis.js b/hooks/extensions/hypothesis.js index 1c09c77..60674e9 100644 --- a/hooks/extensions/hypothesis.js +++ b/hooks/extensions/hypothesis.js @@ -1,13 +1,3 @@ -// EPUBJS.Hooks.register("beforeChapterDisplay").hypothesis = function(callback, chapter){ -// -// -// EPUBJS.core.addScript("https://hypothes.is/app/embed.js", null, chapter.doc.head); -// -// if(callback) callback(); -// -// } -// -// EPUBJS.Hooks.register("beforeChapterDisplay").hypothesis = function(callback, renderer){ var folder = EPUBJS.core.folder(location.pathname); var cssPath = (folder + EPUBJS.cssPath) || folder;