1
0
Fork 0
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:
Fred Chasen 2016-11-21 14:36:17 +01:00
parent 662a3e1079
commit db798e7934
9 changed files with 254 additions and 100 deletions

View file

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