forked from futurepress/epub.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hypothesis.html
executable file
·215 lines (175 loc) · 5.63 KB
/
hypothesis.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, user-scalable=no, minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="../reader/css/normalize.css">
<link rel="stylesheet" href="../reader/css/main.css">
<script src="../reader/js/libs/jquery.min.js"></script>
<script>
"use strict";
document.onreadystatechange = function () {
if (document.readyState == "complete") {
EPUBJS.cssPath = "../../../reader/css/";
ePubReader("../reader/moby-dick/");
}
};
</script>
<!-- Render -->
<script src="../reader/js/epub.min.js"></script>
<!-- Hooks -->
<script src="../reader/js/hooks.min.js"></script>
<!-- Reader -->
<script src="../reader/js/reader.min.js"></script>
<!-- Full Screen -->
<script src="../reader/js/libs/screenfull.min.js"></script>
<!-- Hypothesis -->
<script src="../hooks/extensions/hypothesis.js"></script>
<script src="../reader_src/plugins/hypothesis.js"></script>
<script src="//hypothes.is/embed.js"></script>
<style>
#hypothesis {
overflow: hidden;
position: absolute;
right: 0;
top: 0;
height: 100%;
width: 34%;
z-index: -2;
}
#hypothesis .annotator-frame {
background: none;
position: absolute;
left: 0;
margin: auto !important;
width: 100%;
z-index: auto;
}
.annotator-frame {
display: none;
}
#hypothesis .annotator-frame iframe html {
overflow: hidden;
}
#main.single {
width: 66%;
}
#main.single.closed {
-webkit-transform: translate(51.6%, 0);
-moz-transform: translate(51.6%, 0);
}
#searchBox {
width: 140px;
}
#sidebar {
width: 34%
}
.noselect {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#annotation-controls {
position: absolute;
top: -7px;
right: 0;
}
#annotation-controls ul {
list-style-type: none;
}
#annotation-controls ul li button {
font-size: 1.5em;
margin-bottom: 10px;
background: #fff;
border: none;
opacity: .5;
}
#annotation-controls ul li button:hover {
opacity: .8;
}
#annotation-controls ul li button:focus {
border: none !important;
}
.topbar {
border: none !important;
}
.topbar .inner {
margin: 0px 1.72em 0 0.72em;
}
#hypothesis .annotator-frame body {
background: #fff !important;
}
#hypothesis iframe {
position: absolute;
width: 100%;
height: 100%;
}
#main {
left: 0;
top: 0;
border: none !important;
border-radius: 0px !important;
box-shadow: none !important;
}
#main.single {
right: 34%;
width: 66%;
}
</style>
</head>
<body>
<div id="sidebar">
<div id="panels">
<input id="searchBox" placeholder="search" type="search">
<a id="show-Search" class="show_view icon-search" data-view="Search">Search</a>
<a id="show-Toc" class="show_view icon-list-1 active" data-view="Toc">TOC</a>
<a id="show-Notes" class="show_view icon-edit" data-view="Notes">Notes</a>
</div>
<!-- Table of Contents -->
<div id="tocView"></div>
<!-- / Table of Contents -->
<div id="searchView">
<ul id="searchResults"></ul>
</div>
</div>
<div id="main">
<div id="titlebar">
<div id="opener">
<a id="slider" class="icon-menu">Menu</a>
</div>
<div id="metainfo">
<span id="book-title"></span>
<span id="title-seperator"> – </span>
<span id="chapter-title"></span>
</div>
<!-- Annotation Controls -->
<div id="annotation-controls"></div>
<!-- / Annotation Controls -->
</div>
<div id="divider"></div>
<div id="prev" class="arrow">‹</div>
<div id="viewer"></div>
<div id="next" class="arrow">›</div>
<div id="loader"><img src="../reader/img/loader.gif"></div>
</div>
<div id="hypothesis">
<iframe src="//hypothes.is/app.html" seamless></iframe>
</div>
<div class="modal md-effect-1" id="settings-modal">
<div class="md-content">
<h3>Settings</h3>
<div>
</div>
<div class="closer icon-cancel-circled"></div>
</div>
</div>
<div class="overlay"></div>
</body>
</html>