-
Notifications
You must be signed in to change notification settings - Fork 75
/
index.html
278 lines (268 loc) · 15 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
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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>ePubViewer</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet">
<link rel="stylesheet" href="libs/normalize.min.css">
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Arbutus+Slab" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato:400,400i,700,700i" rel="stylesheet">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="description" content="ePubViewer is an powerful, modern, and easy-to-use web app for reading ebooks.">
</head>
<body>
<div class="app">
<div class="dictionary-wrapper hidden">
<div class="dictionary"></div>
</div>
<div class="sidebar-wrapper out">
<div class="sidebar">
<div class="tab-list">
<a data-tab="toc" class="item">
<i class="icon material-icons-outlined">list</i>
</a>
<a data-tab="search" class="item">
<i class="icon material-icons-outlined">search</i>
</a>
<a data-tab="info" class="item">
<i class="icon material-icons-outlined">info</i>
</a>
<a data-tab="settings" class="item">
<i class="icon material-icons-outlined">settings</i>
</a>
</div>
<div class="tab-container">
<div class="tab" data-tab="toc">
<div class="toc-list"></div>
</div>
<div class="tab search" data-tab="search">
<div class="search-bar">
<input type="text" autocomplete="off" placeholder="Search book..." class="search-box">
<button class="search-button">
<i class="icon material-icons-outlined">search</i>
</button>
</div>
<div class="search-results"></div>
</div>
<div class="tab info" data-tab="info">
<div class="cover-wrapper">
<img src="" alt="" class="cover">
</div>
<div class="title"></div>
<div class="series-info">
<span class="series-name"></span>
<span class="divider"> - </span>
<span class="series-index"></span>
</div>
<div class="author"></div>
<div class="description"></div>
</div>
<div class="tab settings" data-tab="settings">
<div class="setting">
<div class="setting-label">Themes</div>
<div class="setting-content theme chips" data-chips="theme">
<div class="theme chip" style="background: #fff; color: #000;" data-default="true" data-value="#fff;#000">A</div>
<div class="theme chip" style="background: #000; color: #fff;" data-value="#000;#fff">A</div>
<div class="theme chip" style="background: #333; color: #eee;" data-value="#333;#eee">A</div>
<div class="theme chip" style="background: #f5deb3; color: #000;" data-value="#f5deb3;#000">A</div>
<div class="theme chip" style="background: #111; color: #f5deb3;" data-value="#111;#f5deb3">A</div>
<div class="theme chip" style="background: #111b21; color: #e8e8e8;" data-value="#111b21;#e8e8e8">A</div>
</div>
</div>
<div class="setting">
<div class="setting-label">Font</div>
<div class="setting-content font chips" data-chips="font">
<div class="font chip" style="font-family: 'Arial', Arimo, Liberation Sans, sans-serif;" data-value="'Arial', Arimo, Liberation Sans, sans-serif">Arial</div>
<div class="font chip" style="font-family: 'Lato', sans-serif;" data-value="'Lato', sans-serif">Lato</div>
<div class="font chip" style="font-family: 'Georgia', Liberation Serif, serif;" data-value="'Georgia', Liberation Serif, serif">Georgia</div>
<div class="font chip" style="font-family: 'Times New Roman', Tinos, Liberation Serif, Times, serif;" data-value="'Times New Roman', Tinos, Liberation Serif, Times, serif"
data-default="true">Times New Roman</div>
<div class="font chip" style="font-family: 'Arbutus Slab', serif;" data-value="'Arbutus Slab', serif">Arbutus Slab</div>
</div>
</div>
<div class="setting">
<div class="setting-label">Font Size</div>
<div class="setting-content font-size chips" data-chips="font-size">
<div class="size chip" style="font-size: 8pt" data-value="8pt">8</div>
<div class="size chip" style="font-size: 9pt" data-value="9pt">9</div>
<div class="size chip" style="font-size: 10pt" data-value="10pt">10</div>
<div class="size chip" style="font-size: 11pt" data-default="true" data-value="11pt">11</div>
<div class="size chip" style="font-size: 12pt" data-value="12pt">12</div>
<div class="size chip" style="font-size: 14pt" data-value="14pt">14</div>
<div class="size chip" style="font-size: 16pt" data-value="16pt">16</div>
<div class="size chip" style="font-size: 18pt" data-value="18pt">18</div>
</div>
</div>
<div class="setting">
<div class="setting-label">Line Spacing</div>
<div class="setting-content line-spacing chips" data-chips="line-spacing">
<div class="size chip" data-value="1">1</div>
<div class="size chip" data-value="1.2">1.2</div>
<div class="size chip" data-value="1.4">1.4</div>
<div class="size chip" data-default="true" data-value="1.6">1.6</div>
<div class="size chip" data-value="1.8">1.8</div>
<div class="size chip" data-value="2">2</div>
<div class="size chip" data-value="2.3">2.3</div>
<div class="size chip" data-value="2.6">2.6</div>
<div class="size chip" data-value="3">3</div>
</div>
</div>
<div class="setting">
<div class="setting-label">Margin</div>
<div class="setting-content margin chips" data-chips="margin">
<div class="size chip" data-value="0">0</div>
<div class="size chip" data-value="1px">1px</div>
<div class="size chip" data-value="2px">2px</div>
<div class="size chip" data-value="3px">3px</div>
<div class="size chip" data-value="4px">4px</div>
<div class="size chip" data-default="true" data-value="5px">5px</div>
<div class="size chip" data-value="7px">7px</div>
<div class="size chip" data-value="9px">9px</div>
<div class="size chip" data-value="12px">12px</div>
<div class="size chip" data-value="15px">15px</div>
</div>
</div>
<div class="setting">
<div class="setting-label">Progress Display</div>
<div class="setting-content progress chips" data-chips="progress">
<div class="chip" data-value="location" data-default="true">Location</div>
<div class="chip" data-value="percentage" data-default="true">Percentage</div>
<div class="chip" data-value="chapter" data-default="true">Chapter</div>
<div class="chip" data-value="bar" data-default="true">Bar</div>
<div class="chip" data-value="none" data-default="true">None</div>
</div>
</div>
<div class="setting">
<div class="setting-label">Fullscreen</div>
<div class="setting-content">
<a href="javascript:ePubViewer.doFullscreen();">Fullscreen</a>
</div>
</div>
<div class="setting">
<div class="setting-label">Reset</div>
<div class="setting-content">
<a href="javascript:void(0);" onclick="if(confirm('Are you sure?')){localStorage.clear();window.location.reload();}">Reset All</a>
</div>
</div>
<div class="setting">
<div class="setting-label">About</div>
<div class="setting-content">
ePubViewer v3.1.0
<br /> Copyright 2019
<a href="https://pgaskin.net">Patrick Gaskin</a>
<br />
<a href="https://github.com/pgaskin/ePubViewer">Code</a> |
<a href="https://github.com/pgaskin/ePubViewer/issues">Report an issue</a>
<br />
<br /> This app requires Microsoft Edge 15+, Mozilla Firefox 50+, Chrome 50+, or Safari 10+.
</div>
</div>
</div>
</div>
</div>
</div>
<div class="error hidden">
<div class="error-title"></div>
<div class="error-description"></div>
<div class="error-info"></div>
<div class="error-dump"></div>
</div>
<div class="bar">
<div class="left">
<button class="open">
<i class="icon material-icons-outlined">open_in_browser</i>
</button>
</div>
<div class="title">
<span class="book-title"></span>
<span class="divider"> - </span>
<span class="book-author"></span>
</div>
<div class="right">
<button class="sidebar-button hidden" onclick="ePubViewer.doSidebar()">
<i class="icon material-icons-outlined">menu</i>
</button>
</div>
</div>
<div class="book">
<div class="empty-wrapper">
<div class="empty">
<div class="app-name">ePubViewer</div>
<div class="message">
Unknown error. If this message does not disappear in a few seconds, try using a different browser (Chrome or Firefox), and
if the issue still persists,
<a href="https://github.com/pgaskin/ePubViewer">report it here</a>.
</div>
</div>
</div>
</div>
<div class="bar">
<div class="left">
<button class="prev hidden">
<i class="icon material-icons-outlined">chevron_left</i>
</button>
</div>
<div class="loc"></div>
<div class="right">
<button class="next hidden">
<i class="icon material-icons-outlined">chevron_right</i>
</button>
</div>
</div>
</div>
<script src="https://geek1011.net/epubviewer-inject.js"></script>
<script>
function isIE(userAgent) {
userAgent = userAgent || navigator.userAgent;
return userAgent.indexOf("MSIE ") > -1 || userAgent.indexOf("Trident/") > -1;
}
if (isIE()) alert("ePubViewer does not support Internet Explorer. Please use Chrome or Firefox.");
</script>
<script>
if ('serviceWorker' in navigator) window.addEventListener('load', () => {
navigator.serviceWorker.register('sw.js').then(reg => {
reg.onupdatefound = () => {
const installingWorker = reg.installing;
installingWorker.onstatechange = () => {
if (installingWorker.state === 'installed' && navigator.serviceWorker.controller) {
location.reload();
}
};
};
})
});
try {
window.caches.keys().then(keys => console.log("caches: " + keys.join(", "))).catch(err => console.log("error checking cache version"));
} catch (err) { }
</script>
<script src="polyfills/babel-polyfill.min.js"></script>
<script src="polyfills/fetch.js"></script>
<script src="polyfills/pep.min.js"></script>
<script src="libs/sanitize-html.min.js"></script>
<script src="libs/jszip.min.js"></script>
<script src="libs/epub.js"></script>
<script src="https://cdn.ravenjs.com/3.26.2/raven.min.js" crossorigin="anonymous"></script>
<script>
Raven.config('https://[email protected]/1239248', {
autoBreadcrumbs: {
console: true,
dom: true
}
}).install();
</script>
<script src="script.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-66226417-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-66226417-1');
</script>
</body>
</html>