-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (52 loc) · 1.56 KB
/
index.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
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>EPUB.js + Hypothesis Example</title>
<script src="node_modules/jszip/dist/jszip.min.js"></script>
<script src="node_modules/epubjs/dist/epub.min.js"></script>
<script type="text/javascript">
window.hypothesisConfig = function () {
return {
openSidebar: false,
enableMultiFrameSupport: true,
onLayoutChange: function(state) {
var nav = document.getElementById("navigation");
if (state.expanded === true) {
nav.classList.remove("open");
}
}
};
};
</script>
<script src="https://cdn.hypothes.is/hypothesis"></script>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/reader.css">
<script src="js/reader.js"></script>
</head>
<body>
<div id="main">
<a id="opener">
<i class="material-icons">menu</i>
</a>
<div id="viewer" class="spreads loading"></div>
<span id="hiddenTitle"></span>
<a id="prev" href="#prev" class="arrow">
<i class="material-icons">chevron_left</i>
</a>
<a id="next" href="#next" class="arrow">
<i class="material-icons">chevron_right</i>
</a>
</div>
<div id="navigation">
<a id="closer">
<i class="material-icons">close</i>
</a>
<h1 id="title">...</h1>
<image id="cover" width="150px"/>
<h2 id="author">...</h2>
<ul id="toc"></ul>
</div>
</body>
</html>