1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

Update epubcfi use xpath when available and generation fixes

This commit is contained in:
Fred Chasen 2014-04-09 10:54:01 -07:00
parent 08886428e2
commit adf0464cf6
10 changed files with 193 additions and 33 deletions

View file

@ -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);