Add txt reader

add txt file reader,and add select for read the book
This commit is contained in:
wuqi
2016-07-16 16:44:47 +08:00
parent 9a8d795eff
commit 350f4e21e6
5 changed files with 236 additions and 41 deletions

View File

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