mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
handle compressed epubs
This commit is contained in:
parent
0cfaa9cf2e
commit
cb813ab927
26 changed files with 5593 additions and 4871 deletions
|
@ -28,7 +28,7 @@ EPUBJS.EpubCFI.prototype.generateFragment = function(element, chapter) {
|
|||
parts.push((part.index + 1) * 2);
|
||||
|
||||
if(part.id &&
|
||||
part.id.slice(0, 7) != "@EPUBJS") { //-- ignore internal @EPUBJS ids
|
||||
part.id.slice(0, 6) != "EPUBJS") { //-- ignore internal @EPUBJS ids
|
||||
|
||||
parts.push("[" + part.id + "]");
|
||||
}
|
||||
|
@ -149,6 +149,7 @@ EPUBJS.EpubCFI.prototype.getElement = function(cfi, doc) {
|
|||
part = sections.shift();
|
||||
|
||||
if(part.id){
|
||||
console.log(part.id)
|
||||
element = cfi.doc.querySelector("#" + part.id);
|
||||
}else{
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue