Add txt reader
add txt file reader,and add select for read the book
This commit is contained in:
@@ -24,6 +24,15 @@
|
||||
// fileStorage.filePath = EPUBJS.filePath;
|
||||
|
||||
window.reader = ePubReader("{{ url_for('static', filename=bookid) }}/");
|
||||
//keybind
|
||||
$(document).keydown(function(event){
|
||||
if(event.keyCode == 37){
|
||||
window.reader.book.prevPage();
|
||||
}
|
||||
if(event.keyCode == 39){
|
||||
window.reader.book.nextPage();
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user