mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
fixed endnotes bounding rects
This commit is contained in:
parent
2d81246827
commit
b2c7b76b27
10 changed files with 85 additions and 41 deletions
23
fpjs/hooks/extras/example.js
Normal file
23
fpjs/hooks/extras/example.js
Normal file
|
@ -0,0 +1,23 @@
|
|||
FP.Hooks.register("beforeChapterDisplay").example = function(callback, chapter){
|
||||
|
||||
FP.core.addCss("css/annotator.css", false, chapter.doc.head);
|
||||
|
||||
FP.core.addScript(FP.filePath + "libs/annotator-full.js", function() {
|
||||
|
||||
//-- Config script
|
||||
var s = document.createElement("script");
|
||||
s.type = 'text/javascript';
|
||||
|
||||
a = "var content = $('body').annotator().annotator('setupPlugins', {}, {Filter:false});";
|
||||
|
||||
s.innerHTML = a;
|
||||
chapter.doc.body.appendChild(s);
|
||||
|
||||
//-- Continue to other hooks
|
||||
if(callback) callback();
|
||||
|
||||
}, chapter.doc.head);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue