mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-14 15:14:07 +00:00
9a8d795eff
Update epub reader and use pdf.js tu view pdf files
15 lines
391 B
JavaScript
15 lines
391 B
JavaScript
EPUBJS.Hooks.register("beforeChapterDisplay").highlight = function(callback, renderer){
|
|
|
|
// EPUBJS.core.addScript("js/libs/jquery.highlight.js", null, renderer.doc.head);
|
|
|
|
var s = document.createElement("style");
|
|
s.innerHTML =".highlight { background: yellow; font-weight: normal; }";
|
|
|
|
renderer.render.document.head.appendChild(s);
|
|
|
|
if(callback) callback();
|
|
|
|
}
|
|
|
|
|