1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

Pass Book object to Search Example

This commit is contained in:
Fred Chasen 2013-12-20 15:08:55 -08:00
parent 7eb6622c8e
commit 2126099ccd
2 changed files with 13 additions and 8 deletions

View file

@ -18,6 +18,7 @@
<script>
"use strict";
var Book;
document.onreadystatechange = function () {
if (document.readyState == "complete") {
@ -27,14 +28,16 @@
EPUBJS.cssPath = "css/";
// fileStorage.filePath = EPUBJS.filePath;
EPUBJSR.app.init("moby-dick/");
Book = EPUBJSR.app.init("moby-dick/");
$(function() {
EPUBJSR.search.View(Book);
});
}
};
$(function() {
EPUBJSR.search.View();
});
</script>
<script src="../build/epub.min.js"></script>