3
私はAssetsフォルダにあるEPUBファイルを読みたいと思います。私はHTMLファイルを持っています。ここではepub.min.jsを参照し、ファイルを読むためのepubファイルの場所を提供しました。しかし、epubファイルは読み込まれませんでした。誰も私にどのようにhtmlとAndroidでjavascriptを使用してepubファイルを読むことを提案することができますか?Android AssetフォルダからHTMLとJavascriptを使用してEpubファイルを読む?
ファイルの場所
Asset/Sample/index.html
Asset/sample/epub.min.js
Asset/Sample/jquery-1.10.2.min.js
Asset/Sample/Epub file folder. All html, images are available in this folder
<!DOCTYPE html>
<html class="no-js">
<head>
<script src="jquery-1.10.2.min.js"></script>
<!-- Render -->
<script src="epub.min.js"></script>
<script type="text/javascript">
var book = ePub("Azure_Cosmos_DB_and_DocumentDB_Succinctly/");
$(document).ready(function() {
book.renderTo("area");
});
</script>
</head>
<body>
<div id="main">
<div id="prev" onclick="book.prevPage()" style="font-size: 64px;cursor:pointer;" class="arrow">‹</div>
<div id="area" style="height:500px;"></div>
<div id="next" onclick="book.nextPage()" style="font-size: 64px;cursor:pointer;" class="arrow">›</div>
</div>
</body>
</html>