mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
Update epubcfi use xpath when available and generation fixes
This commit is contained in:
parent
08886428e2
commit
adf0464cf6
10 changed files with 193 additions and 33 deletions
|
@ -105,16 +105,16 @@ EPUBJS.reader.NotesController = function() {
|
|||
|
||||
marker.style.verticalAlign = "super";
|
||||
marker.style.fontSize = ".75em";
|
||||
marker.style.position = "relative";
|
||||
// marker.style.position = "relative";
|
||||
marker.style.lineHeight = "1em";
|
||||
|
||||
mark.style.display = "inline-block";
|
||||
// mark.style.display = "inline-block";
|
||||
mark.style.padding = "2px";
|
||||
mark.style.backgroundColor = "#fffa96";
|
||||
mark.style.borderRadius = "5px";
|
||||
mark.style.cursor = "pointer";
|
||||
|
||||
marker.id = annotation.anchor;
|
||||
marker.id = "note-"+EPUBJS.core.uuid();
|
||||
mark.innerHTML = annotations.indexOf(annotation) + 1 + "[Reader]";
|
||||
|
||||
marker.appendChild(mark);
|
||||
|
|
|
@ -101,6 +101,14 @@ EPUBJS.reader.ReaderController = function(book) {
|
|||
}
|
||||
});
|
||||
|
||||
// book.on("book:atStart", function(){
|
||||
// $prev.addClass("disabled");
|
||||
// });
|
||||
//
|
||||
// book.on("book:atEnd", function(){
|
||||
// $next.addClass("disabled");
|
||||
// });
|
||||
|
||||
return {
|
||||
"slideOut" : slideOut,
|
||||
"slideIn" : slideIn,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue