You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
391 B
JavaScript
15 lines
391 B
JavaScript
8 years ago
|
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();
|
||
|
|
||
|
}
|
||
|
|
||
|
|