-
Notifications
You must be signed in to change notification settings - Fork 1
/
popup.html
253 lines (243 loc) · 7.59 KB
/
popup.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Diss-lexia</title>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Ultra&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="popup.css" />
</head>
<body>
<header>
<h1 style="font-family: 'Ultra', serif; font-size: 30px">Diss-lexia</h1>
</header>
<main>
<div class="faq-container">
<div class="faq">
<div class="faq-title" style="font-size: 18px">
Dyslexic Font
<label class="switch" style="float: right">
<input id="FontToggle" class="section-toggle" type="checkbox" />
<span class="slider round"></span>
</label>
</div>
<div class="faq-text">
<div
id="fonttype-input-container"
class="input-container ch-r2c1"
style="margin: 0 10px"
>
<select name="fonttype" id="fonttype" style="width: 100%">
<option id="regular" value="opendyslexic-regular" selected>
Regular
</option>
<option id="bold" value="opendyslexic-bold">Bold</option>
<option id="italic" value="opendyslexic-italic">Italic</option>
<option id="bold-italic" value="opendyslexic-bolditalic">
Bold-Italic
</option>
</select>
</div>
<div id="fontsize-input-container" class="input-container">
<input
id="fontsize-slider"
class="slider-input"
type="range"
min="8"
max="24"
value="14"
step="1"
/>
<label for="fontsize-num"
>Font Size:
<input
id="fontsize-num"
class="num-input"
type="number"
min="8"
max="24"
value="14"
step="1"
/>
pt</label
>
</div>
</div>
</div>
<div class="faq">
<div class="faq-title" style="font-size: 18px">
Reading Ruler
<label class="switch" style="float: right">
<input id="RulerToggle" class="section-toggle" type="checkbox" />
<span class="slider round"></span>
</label>
</div>
<div class="faq-text">
<!-- Height: -->
<div id="ruler-height-container" class="r3-c1 input-container">
<input
id="ruler-height-slider"
class="slider-input"
type="range"
min="10"
max="100"
value="24"
step="1"
/>
<br />
<label for="ruler-height-num"
>Height:
<input
id="ruler-height-num"
class="num-input"
type="number"
min="10"
max="100"
value="24"
step="1"
/>
px</label
>
</div>
</div>
</div>
<div class="faq">
<div class="faq-title" style="font-size: 18px">
Spacing Adjust
<label class="switch" style="float: right">
<input
id="SpacingToggle"
class="section-toggle"
type="checkbox"
/>
<span class="slider round"></span>
</label>
</div>
<div class="faq-text">
<!-- Height: -->
<div id="wordsp-input-container" class="input-container ch-r2c1">
<input
id="wordsp-slider"
class="slider-input"
type="range"
min="0"
max="1.5"
value="0.5"
step="0.1"
/>
<br />
<label for="wordsp-num"
>Word Spacing:
<input
id="wordsp-num"
class="num-input"
type="number"
min="0"
max="1.5"
value="0.5"
step="0.1"
/>
em</label
>
</div>
<div id="lettersp-input-container" class="input-container">
<input
id="lettersp-slider"
class="slider-input"
type="range"
min="0"
max="0.33"
value="0.1"
step="0.01"
/>
<br />
<label for="lettersp-num"
>Letter Spacing:
<input
id="lettersp-num"
class="num-input"
type="number"
min="0"
max="0.33"
value="0.1"
step="0.01"
/>
em</label
>
</div>
</div>
</div>
<div class="faq">
<div class="faq-title" style="font-size: 18px">
Line Height Adjust
<label class="switch" style="float: right">
<input id="LineHtToggle" class="section-toggle" type="checkbox" />
<span class="slider round"></span>
</label>
</div>
<div class="faq-text">
<!-- Height: -->
<div id="lha-height-container" class="r3-c1 input-container">
<input
id="lha-slider"
class="slider-input"
type="range"
min="1"
max="4"
value="1.5"
step="0.1"
/>
<br />
<label for="lha-num">Original ×</label>
<input
id="lha-num"
class="num-input"
type="number"
min="0.5"
max="4"
value="1.5"
step="0.1"
/>
</div>
</div>
</div>
</div>
<div class="faq">
<div class="faq-title" style="font-size: 18px">
ReadAloud
<label class="switch" style="float: right">
<input id="ReadAloud" class="section-toggle" type="checkbox" />
<span class="slider round"></span>
</label>
</div>
<div class="faq-text">
<button id="talk">Talk</button>
<button id="listen">Listen</button>
<!-- <label for="voice">Select a voice:</label>
<select id="voice"></select>
<button name="'btn" onclick=""></button>
<label for="pitch">Pitch:</label>
<input type="range" id="pitch" min="0" max="2" step="0.1" value="1" />
<br />
<label for="rate">Rate:</label>
<input type="range" id="rate" min="1" max="2" step="0.1" value="1" />
<br />
<label for="volume">Volume:</label>
<input
type="range"
id="volume"
min="0"
max="1"
step="0.1"
value="1"
/> -->
</div>
</div>
</main>
<script type="text/javascript" src="popup.js"></script>
</body>
</html>