-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
277 lines (244 loc) · 9.5 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Captain Dys</title>
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<link rel="manifest" href="images/site.webmanifest">
<style type="text/css">
@font-face {
font-family: 'OpenDyslexicRegular';
src: url('OpenDyslexic-Regular.otf') format('opentype');
src: url('OpenDyslexic-Regular.woff') format('woff'),
url('OpenDyslexic-Regular.ttf') format('truetype'),
url('OpenDyslexic-Regular.svg#opendyslexicregular') format('svg');
font-display: swap;
}
</style>
<style type="text/css">
.loading-hide {
display: none;
}
.loader,
.loader:before,
.loader:after {
background: #cccccc;
-webkit-animation: load1 1s infinite ease-in-out;
animation: load1 1s infinite ease-in-out;
width: 1em;
height: 4em;
}
.loader {
color: #cccccc;
text-indent: -9999em;
margin: 88px auto;
position: relative;
font-size: 11px;
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
-webkit-animation-delay: -0.16s;
animation-delay: -0.16s;
}
.loader:before,
.loader:after {
position: absolute;
top: 0;
content: '';
}
.loader:before {
left: -1.5em;
-webkit-animation-delay: -0.32s;
animation-delay: -0.32s;
}
.loader:after {
left: 1.5em;
}
@-webkit-keyframes load1 {
0%,
80%,
100% {
box-shadow: 0 0;
height: 4em;
}
40% {
box-shadow: 0 -2em;
height: 5em;
}
}
@keyframes load1 {
0%,
80%,
100% {
box-shadow: 0 0;
height: 4em;
}
40% {
box-shadow: 0 -2em;
height: 5em;
}
}
</style>
</head>
<body>
<!-- start: loader -->
<div class="loader">Chargement...</div>
<!-- end: loader -->
<!-- start: container for detecting clicks outside the sidebar -->
<div id="sidebar-outer" class="loading-hide sidebar-outer"></div>
<!-- end: container for detecting clicks outside the sidebar -->
<!-- start: sidebar -->
<div id="sidebar" class="loading-hide sidebar">
<div class="sidebar-content">
<nav>
<!-- start: click for upload -->
<span class="sidebar-btn btn-editor-upload">
<span class="photo-visible">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 24 24"><path d="M3 4V1H5V4H8V6H5V9H3V6H0V4M6 10V7H9V4H16L17.8 6H21C22.1 6 23 6.9 23 8V20C23 21.1 22.1 22 21 22H5C3.9 22 3 21.1 3 20V10M13 19C17.45 19 19.69 13.62 16.54 10.46C13.39 7.31 8 9.55 8 14C8 16.76 10.24 19 13 19M9.8 14C9.8 16.85 13.25 18.28 15.26 16.26C17.28 14.25 15.85 10.8 13 10.8C11.24 10.8 9.8 12.24 9.8 14Z" /></svg>
<span data-label="upload"><!-- upload --></span>
</span>
<input type="file" accept="image/*" capture="camera" class="photo-file" id="photo" />
</span>
<!-- end: click for upload -->
<!-- start: speech to text -->
<a class="sidebar-btn btn-editor-listen" id="btn-editor-listen">
<span id="logo-mic"></span>
<span data-label="speak"><!-- Speech to text --></span>
<template id="bi-mic-mute-fill">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-mic-mute-fill" viewBox="0 0 16 16">
<path d="M13 8c0 .564-.094 1.107-.266 1.613l-.814-.814A4.02 4.02 0 0 0 12 8V7a.5.5 0 0 1 1 0v1zm-5 4c.818 0 1.578-.245 2.212-.667l.718.719a4.973 4.973 0 0 1-2.43.923V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 1 0v1a4 4 0 0 0 4 4zm3-9v4.879L5.158 2.037A3.001 3.001 0 0 1 11 3z"/>
<path d="M9.486 10.607 5 6.12V8a3 3 0 0 0 4.486 2.607zm-7.84-9.253 12 12 .708-.708-12-12-.708.708z"/>
</svg>
</template>
<template id="bi-mic-fill">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-mic-fill" viewBox="0 0 16 16">
<path d="M5 3a3 3 0 0 1 6 0v5a3 3 0 0 1-6 0V3z"/>
<path d="M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5z"/>
</svg>
</template>
</a>
<!-- end: speech to text -->
<!-- start: click for listen -->
<a class="sidebar-btn btn-editor-speak">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" ><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-9l6 4.5-6 4.5z"/></svg>
<span data-label="listen"><!-- Listen --></span>
</a>
<!-- end: click for listen -->
<!-- start: print document -->
<a class="sidebar-btn btn-editor-print">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" ><path d="M0 0h24v24H0z" fill="none"/><path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"/></svg>
<span data-label="print"><!-- Print --></span>
</a>
<!-- end: print document -->
<!-- start: display colors -->
<a class="sidebar-btn btn-editor-colors">
<label for="toggle-colors" class="toggle">
<!-- toggle -->
<div class="relative">
<input checked="checked" type="checkbox" id="toggle-colors" class="chx-toggle-colors sr-only">
<div class="toggle-line"></div>
<div class="toggle-dot"></div>
</div>
<!-- label -->
<div class="toggle-label">
<span data-label="colors"><!-- Colors --></span>
</div>
</label>
</a>
<!-- end: display colors -->
<!-- start: spellcheck -->
<a class="sidebar-btn btn-editor-spellcheck">
<label for="toggle-spellcheck" class="toggle">
<!-- toggle -->
<div class="relative">
<input type="checkbox" id="toggle-spellcheck" class="chx-toggle-spellcheck sr-only">
<div class="toggle-line"></div>
<div class="toggle-dot"></div>
</div>
<!-- label -->
<div class="toggle-label">
<span data-label="spelling"><!-- Spellcheck --></span>
</div>
</label>
</a>
<!-- end: spellcheck -->
<!-- start: locale -->
<div class="sidebar-locale">
<select class="locale-select" data-role="locale-select">
</select>
</div>
<!-- end: locale -->
<!-- start: github -->
<div class="sidebar-contribute">
<a href="https://github.com/Halleck45/captain-dys"><span data-label="contribute"><!-- Contribute --></span></a>
</div>
<!-- end: github -->
</nav>
</div>
</div>
<!-- end: sidebar -->
<div class="page">
<!-- start: header bar -->
<header class="loading-hide header">
<!-- start: burger menu for mobile -->
<div class="burger-link">
<a>
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000">
<path d="M0 0h24v24H0z" fill="none"/>
<path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/>
</svg>
</a>
</div>
<!-- end: burger menu for mobile -->
<!-- start: logo -->
<div class="logo" data-role="logo">
<img src="images/logo.png" height="64" width="64" alt="logo">
<div class="logo-text">
Captain Dys
</div>
</div>
<!-- end: logo -->
</header>
<!-- end: header bar -->
<!-- start: quill toolbar. Here only for preloading -->
<div class="loading-hide toolbar" id="toolbar-container">
<div class="toolbar-inner">
<ul class="toolbar-buttons">
<li>
<button aria-label="Bold" class="btn btn-toolbar ql-bold">Bold</button>
</li>
<li>
<button aria-label="Underline" class="btn btn-toolbar ql-underline">Underline</button>
</li>
<li>
<button aria-label="image" class="btn btn-toolbar ql-image">Image</button>
</li>
</ul>
</div>
</div>
<!-- end: quill toolbar. Here only for preloading -->
<!-- start: hidden container for speech2text -->
<div id="interim_transcript" class="interim-transcript" style="display: none"></div>
<!-- end: hidden container for speech2text -->
<!-- start: Editor -->
<div id="editor" class="loading-hide editor"></div>
<!-- end: Editor -->
<!-- start progressbar -->
<div class="loading-hide" id="progressbar">
<div class="progress" id="progress"></div>
</div>
</div>
<!-- end progressbar -->
<!-- start: image for cropping -->
<div id="image-container">
<button id="crop-confirm" class="btn primary" data-label="crop">Crop</button>
<button id="crop-cancel" class="btn" data-label="cancel">Cancel</button>
<img id="image" alt="" />
</div>
<!-- end: image for cropping -->
</div>
</body>
</html>