1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

Added ePub() function, book.destroy, moved reader dev to demo folder

This commit is contained in:
Fred Chasen 2013-07-20 12:49:44 -07:00
parent 53955612ca
commit 660d570c02
28 changed files with 236 additions and 90 deletions

View file

@ -4,9 +4,11 @@ EPUBJS.Hooks.register("beforeChapterDisplay").endnotes = function(callback, chap
items = Array.prototype.slice.call(notes), //[].slice.call()
attr = "epub:type",
type = "noteref",
folder = EPUBJS.core.folder(location.pathname),
cssPath = folder + EPUBJS.cssPath || folder,
popups = {};
EPUBJS.core.addCss("../demo/css/popup.css", false, chapter.doc.head);
EPUBJS.core.addCss(cssPath + "popup.css", false, chapter.doc.head);
items.forEach(function(item){