1
0
Fork 0
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:
Fred Chasen 2013-04-01 10:46:08 -07:00
parent 2d81246827
commit b2c7b76b27
10 changed files with 85 additions and 41 deletions

View 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);
}