-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
116 lines (110 loc) · 4.16 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="format-detection" content="telephone=no, email=no">
<meta name="google" content="notranslate">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Symbols+Outlined" rel="stylesheet">
<title>Readium Vanilla Reader</title>
</head>
<body>
<noscript>JavaScript required to load the reader</noscript>
<header id="top-bar" aria-label="Top Bar">
<h3 aria-label="Publication title">Loading...</h3>
<div>
<md-filled-icon-button title="Table of Contents" onclick="control('toc')"><md-icon >list</md-icon></md-filled-icon-button>
<md-filled-icon-button title="Settings" onclick="control('settings')"><md-icon >settings</md-icon></md-filled-icon-button>
</div>
</header>
<div id="wrapper">
<main id="container" aria-label="Publication"></main>
</div>
<script>
function control(command, data) {
window.dispatchEvent(
new CustomEvent('reader-control', { detail: {
command: command,
data: data
}})
);
}
</script>
<footer id="bottom-bar" aria-label="Bottom Bar">
<md-filled-icon-button title="Go left" onclick="control('goLeft')"><md-icon >arrow_back</md-icon></md-filled-icon-button>
<md-filled-icon-button title="Go right" onclick="control('goRight')"><md-icon >arrow_forward</md-icon></md-filled-icon-button>
</footer>
<md-dialog id="toc-dialog" aria-label="TOC Dialog">
<div slot="headline">
Table of Contents
</div>
<form slot="content" id="toc-form" method="dialog">
<md-list style="max-width: 400px;" id="toc-list">
<template>
<md-list-item interactive href="about:blank">
<div slot="headline"></div>
<div slot="supporting-text"></div>
</md-list-item>
<md-divider></md-divider>
</template>
</md-list>
<hr>
<div slot="actions">
<md-text-button form="toc-form">Close</md-text-button>
</div>
</form>
</md-dialog>
<md-dialog id="settings-dialog" aria-label="Settings Dialog">
<div slot="headline">
Settings (WIP)
</div>
<form slot="content" id="settings-form" method="dialog">
<h3>Theme</h3>
<md-tabs>
<md-primary-tab inline-icon>
<md-icon slot="icon">block</md-icon>
Default
</md-primary-tab>
<md-primary-tab inline-icon>
<md-icon slot="icon">light_mode</md-icon>
Light
</md-primary-tab>
<md-primary-tab inline-icon>
<md-icon slot="icon">dark_mode</md-icon>
Dark
</md-primary-tab>
<md-primary-tab inline-icon>
<md-icon slot="icon">visibility</md-icon>
Sepia
</md-primary-tab>
</md-tabs>
<h3>Font</h3>
<md-outlined-select>
<md-select-option aria-label="blank">Default</md-select-option>
<md-select-option selected value="apple">
<div slot="headline">Arial</div>
</md-select-option>
<md-select-option value="apricot">
<div slot="headline">Some Acessible Thing</div>
</md-select-option>
</md-outlined-select>
<div id="font-sizer">
<md-filled-icon-button onclick="event.preventDefault()"><md-icon>remove</md-icon></md-filled-icon-button>
<span>100%</span>
<md-filled-icon-button onclick="event.preventDefault()"><md-icon >add</md-icon></md-filled-icon-button>
</div>
<h3>Layout</h3>
<label>
Vertical Scroll
<md-switch icons></md-switch>
</label>
<hr>
<div slot="actions">
<md-text-button form="settings-form">Close</md-text-button>
</div>
</form>
</md-dialog>
<script type="module" src="/src/main.ts"></script>
</body>
</html>