-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
61 lines (60 loc) · 2.26 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
<!doctype html>
<html lang="en" style="--base-font:20px">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="Web FB2 Reader (including zip-ped fb2 files)">
<title>FB2 Reader</title>
<link rel="stylesheet" href="main.css">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<script>
if ('serviceWorker' in navigator) {
if (location.hostname === 'localhost' && location.hash !== '#sw') {
console.log('no service worker for localhost unless #sw is used');
} else {
navigator.serviceWorker.register('sw.js');
}
}
</script>
</head>
<body>
<script src="js/components/index.js" type="module"></script>
<footer id="progress">
Page <span id="curPage">0</span> of <span id="totalPages">0</span> (<span id="curPercent">0</span>%)
<div class="lower-info">
<clock-indicator></clock-indicator>
<battery-indicator></battery-indicator>
</div>
</footer>
<div id="welcome">
<div><input type="file" accept=".fb2, .zip" id="f"></div>
<div><button class="open-shelf">open bookshelf</button></div>
</div>
<dialog id="bookshelf-manager">
<table>
<template class="shelf-row">
<tr><td></td><td><button>×</button></td></tr>
</template>
<template class="shelf-empty">
<tr><td colspan="2">No books on the bookshelf</td></tr>
</template>
</table>
<button class="close">Close bookshelf</button>
</dialog>
<div id="book"></div>
<div class="book-info-trigger" id="top-book-info-trigger"></div>
<div class="book-info disabled" id="book-info-block">
<nav class="book-controls">
<button id="back-link" class="ui-btn-big" title="return back">←</button>
<button id="close-book" class="ui-btn-big" title="close the file">×</button>
<theme-selector></theme-selector>
<font-selector></font-selector>
<fullscreen-button></fullscreen-button>
</nav>
<div id="top-book-info"></div>
</div>
<script type="module" src="js/main.js"></script>
</body>
</html>