-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
256 lines (248 loc) Β· 8.38 KB
/
index.html
File metadata and controls
256 lines (248 loc) Β· 8.38 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Binaural CI Alignment β bicial</title>
<meta
name="description"
content="Align the center frequencies of your cochlear implant with your other ear."
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="main.css?v=1.1" />
</head>
<body>
<header class="site-header">
<div class="container">
<h1 class="title">Binaural CI Alignment</h1>
<p class="subtitle">
Align the center frequencies of your cochlear implant with your other ear
</p>
</div>
</header>
<main class="site-main">
<div class="container">
<section class="card">
<button
id="btnHelp"
class="icon-button"
title="Help / Info"
aria-label="Help / Info"
>
βΉ
</button>
<button
id="btnHelpCloseIcon"
class="icon-button hidden"
title="Close help"
aria-label="Close help"
>
β¨―
</button>
<div id="appView">
<!-- Top controls: CI side + electrode count in one row -->
<div class="controls-row compact">
<label class="control control-inline">
<span class="label">CI side</span>
<div class="segmented" role="radiogroup" aria-label="CI side">
<input type="radio" id="ciL" name="ciSide" value="L" />
<label for="ciL">L</label>
<input type="radio" id="ciR" name="ciSide" value="R" />
<label for="ciR">R</label>
</div>
</label>
<label class="control control-inline">
<span class="label">Electrodes</span>
<div
class="segmented"
role="radiogroup"
aria-label="Number of electrodes"
>
<input
type="radio"
id="e12"
name="electrodeCount"
value="12"
/>
<label for="e12">12</label>
<input
type="radio"
id="e16"
name="electrodeCount"
value="16"
/>
<label for="e16">16</label>
<input
type="radio"
id="e22"
name="electrodeCount"
value="22"
/>
<label for="e22">22</label>
</div>
</label>
</div>
<!-- Dynamic table container -->
<div id="fatContainer" class="table-container">
<div class="placeholder">
The electrode table will appear here.
</div>
</div>
<!-- Below-table global controls: duration + reps -->
<div class="controls-row compact">
<label class="control control-inline">
<span class="label">Beep duration (ms)</span>
<input
id="beepDuration"
class="input input-narrow"
type="number"
min="10"
max="9999"
step="10"
value="500"
inputmode="numeric"
/>
</label>
<label class="control control-inline">
<span class="label">Reps</span>
<input
id="beepReps"
class="input input-narrow-3"
type="number"
min="1"
max="999"
step="1"
value="3"
inputmode="numeric"
/>
</label>
</div>
<!-- Global volume sliders (L/ R) -->
<div class="controls-row">
<label class="control">
<span class="label">Vol L</span>
<input
id="volumeL"
class="range"
type="range"
min="0"
max="100"
step="1"
value="75"
/>
</label>
<label class="control">
<span class="label">Vol R</span>
<input
id="volumeR"
class="range"
type="range"
min="0"
max="100"
step="1"
value="75"
/>
</label>
</div>
<!-- Export/Import/Copy/Paste/Reset -->
<div class="actions">
<div class="actions-group">
<button
class="btn"
id="btnExport"
type="button"
aria-label="Save settings"
>
π€
<span>Save settings</span>
</button>
<button
class="btn"
id="btnImport"
type="button"
aria-label="Load settings"
>
π₯
<span>Load settings</span>
</button>
<button
class="btn"
id="btnPasteFAT"
type="button"
aria-label="Paste CI-side frequencies"
title="Paste old FAT β paste CI-side frequencies (values separated by newline/space/semicolon)"
>
π <span>Paste FAT</span>
</button>
<button
class="btn"
id="btnCopyFAT"
type="button"
aria-label="Copy non-CI frequencies"
title="Copy new FAT β copy non-CI frequencies (one value per line)"
>
π <span>Copy FAT</span>
</button>
<input
type="file"
id="importFile"
accept="application/json"
hidden
/>
</div>
<div class="actions-group">
<button
class="btn"
id="btnResetAlign"
type="button"
aria-label="Reset alignments"
>
π
<span>Reset alignments</span>
</button>
<button
class="btn"
id="btnResetAll"
type="button"
aria-label="Reset everything"
>
π
<span>Reset all</span>
</button>
</div>
</div>
</div>
<!-- Help view (hidden by default) -->
<div id="helpView" class="help hidden" aria-hidden="true">
<div id="helpContent" class="help-content">
<!-- README will be loaded here -->
</div>
</div>
<!-- Visualization view (hidden by default) -->
<div id="vizView" class="help hidden" aria-hidden="true">
<div id="vizContent" class="help-content">
<!-- Visualization will be rendered here -->
</div>
</div>
</section>
</div>
<!-- Toast container -->
<div id="toastHost" class="toast-host" aria-live="polite" aria-atomic="true"></div>
</main>
<footer class="site-footer">
<div class="container">
<b>bicial</b> <span id="version">v1.1</span> —
a <a href="https://github.com/cito/bicial">GitHub project</a> © 2025
by <a href="https://github.com/cito">Christoph Zwerschke</a> — see
<a href="#" id="lnkInstructions">info & terms</a>
</div>
</footer>
<script src="cochlea.js?v=1.1"></script>
<script src="main.js?v=1.1"></script>
</body>
</html>