- substantial bit rot accrued in 4 years of non-maintenance which made Reader unusable - Reader now works reliably on public pages - or at least it _Works For Me™_ - Refactored a substantial part of the code to comply to the "current" (ha ha) Nextcloud API - Dropped Owncloud compatibility for lack of a testing installation - Dropped IE (<11) support - Dropped compatibility with older (<20) Nextcloud versions - Dropped app-specific ajax code, now handled by SettingsController - Updated dependencies where applicable
14 lines
391 B
JavaScript
14 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();
|
|
|
|
}
|
|
|
|
|