mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
re-organized files, new build script
This commit is contained in:
parent
5f7a5d2011
commit
7c42a434f2
245 changed files with 3702 additions and 114 deletions
11
hooks/extensions/embedh.js
Normal file
11
hooks/extensions/embedh.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
EPUBJS.Hooks.register("beforeChapterDisplay").example = function(callback, chapter){
|
||||
|
||||
|
||||
var s = document.createElement("script");
|
||||
s.type = 'text/javascript';
|
||||
s.src ="https://test.hypothes.is/app/embed.js"
|
||||
|
||||
chapter.doc.body.appendChild(s);
|
||||
|
||||
//-- Continue to other hooks
|
||||
if(callback) callback();}
|
Loading…
Add table
Add a link
Reference in a new issue