mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
added source maps, hypothes.is examples, removed documentup page
This commit is contained in:
parent
d414cac540
commit
b441cf8ac0
34 changed files with 6187 additions and 19873 deletions
|
@ -1,10 +1,20 @@
|
|||
EPUBJS.Hooks.register("beforeChapterDisplay").hypothesis = function(callback, chapter){
|
||||
// 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){
|
||||
|
||||
if(!renderer) return;
|
||||
|
||||
EPUBJS.core.addScript("https://hypothes.is/app/embed.js", null, chapter.doc.head);
|
||||
|
||||
if(callback) callback();
|
||||
|
||||
}
|
||||
EPUBJS.core.addScript("https://hypothes.is/app/embed.js?role=guest&light=true", null, renderer.doc.head);
|
||||
|
||||
EPUBJS.core.addCss("/demo/css/annotations.css", null, renderer.doc.head);
|
||||
|
||||
if(callback) callback();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue