1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-05 15:32:55 +02:00

added hypothesis text, checks for styles

This commit is contained in:
Fred Chasen 2013-07-17 22:19:10 -07:00
parent 61fa786325
commit 6a8f9d31b8
6 changed files with 22 additions and 11 deletions

View file

@ -0,0 +1,10 @@
EPUBJS.Hooks.register("beforeChapterDisplay").hypothesis = function(callback, chapter){
EPUBJS.core.addScript("https://hypothes.is/app/embed.js", null, chapter.doc.head);
if(callback) callback();
}