mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
Demo UI updates
This commit is contained in:
parent
2126099ccd
commit
ac15425092
4 changed files with 145 additions and 48 deletions
|
@ -5,7 +5,7 @@ EPUBJS.Hooks.register("beforeChapterDisplay").highlight = function(callback, ren
|
|||
var s = document.createElement("style");
|
||||
s.innerHTML =".highlight { background: yellow; font-weight: normal; }";
|
||||
|
||||
renderer.doc.body.appendChild(s);
|
||||
renderer.doc.head.appendChild(s);
|
||||
|
||||
if(callback) callback();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue