Just started using the FuturePress/epub.js. And use with vue.js
<head>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="/static/epub.min.js"></script>
<script src="/static/libs/zip.min.js"></script>
</head>
<body>
<div id="app">
<div onclick="Book.prevPage();">‹</div>
<div id="area"></div>
<div onclick="Book.nextPage();">›</div>
</div>
<script src="script.js"></script>
</body>
in script.js
var app = new Vue({
el: '#app',
created: function () {
this.$nextTick(function () {
var Book = ePub("http://desq.xyz/epub-test/book.epub");
Book.renderTo("area");
})
}
});
However, an error occurs. ReferenceError: ePub is not defined
. What is it??
from ePub is not defined in futurepress/epub.js
No comments:
Post a Comment