mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-05 15:32:55 +02:00
Allow location to use XMLDom, add locations tests
This commit is contained in:
parent
662a3e1079
commit
db798e7934
9 changed files with 254 additions and 100 deletions
|
@ -77,7 +77,7 @@
|
|||
book.ready.then(function(){
|
||||
// Load in stored locations from json or local storage
|
||||
var key = book.key()+'-locations';
|
||||
var stored = false;//localStorage.getItem(key);
|
||||
var stored = localStorage.getItem(key);
|
||||
if (stored) {
|
||||
return book.locations.load(stored);
|
||||
} else {
|
||||
|
@ -88,7 +88,6 @@
|
|||
}
|
||||
})
|
||||
.then(function(locations){
|
||||
|
||||
controls.style.display = "block";
|
||||
slider.setAttribute("type", "range");
|
||||
slider.setAttribute("min", 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue