forked from futurepress/epub.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contained.html
45 lines (33 loc) · 1.08 KB
/
contained.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>Contained ePub Example</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="basic.css">
<!-- EPUBJS Renderer -->
<script src="../build/epub.js"></script>
<!-- Zip JS -->
<script src="../build/libs/zip.min.js"></script>
<script>
// EPUBJS.filePath = "../build/libs/zip/";
EPUBJS.cssPath = "../reader/css/";
</script>
<script>
"use strict";
var Book = ePub("../reader/moby-dick.epub");
</script>
</head>
<body>
<div id="main">
<div id="prev" onclick="Book.prevPage();" class="arrow">‹</div>
<div id="area"></div>
<div id="next" onclick="Book.nextPage();" class="arrow">›</div>
</div>
<script>
Book.renderTo("area");
</script>
</body>
</html>