-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
63 lines (60 loc) · 1.96 KB
/
Copy pathindex.html
File metadata and controls
63 lines (60 loc) · 1.96 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
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>GoonBoard Configurator</title>
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="alternate icon" href="/favicon.ico">
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div id="controls">
<button id="fetch">Fetch Keyboard Config</button>
<button id="loadJson">Load JSON</button>
<button id="uploadJson" disabled>Upload to Keyboard</button>
<button id="clearPreview" disabled>Clear Preview</button>
<button id="exportJson">Export JSON</button>
<input type="file" id="fileInput" accept="application/json" hidden />
</div>
<div id="toggles" class="ctrl-row">
<label class="inline">
<input type="checkbox" id="rt-en-top" />
<span>Rapid Trigger</span>
</label>
<label class="inline">
<input type="checkbox" id="st-a-en-top" />
<span>SnapTap A</span>
</label>
<label class="inline">
<input type="checkbox" id="st-b-en-top" />
<span>SnapTap B</span>
</label>
</div>
<div class="keyboard" id="keyboard"></div>
<div id="advanced">
<section id="rt">
<h3>Rapid Trigger</h3>
<div class="ctrl-row">
<label class="inline">
<span>Threshold</span>
<input type="number" id="rt-th-input" step="0.1" min="0.1" max="3.4" inputmode="decimal"> <span>mm</span>
</label>
<label class="inline">
<span>Short-Circuit Threshold</span>
<input type="number" id="rt-sc-input" step="0.1" min="0.1" max="3.4" inputmode="decimal"> <span>mm</span>
</label>
<button id="rt-save">Save Rapid Trigger</button>
</div>
</section>
<section id="st">
<h3>SnapTap</h3>
<div class="ctrl-row">
<button id="st-save-a">Save SnapTap A</button>
<button id="st-save-b">Save SnapTap B</button>
</div>
</section>
</div>
<script type="module" src="script.js"></script>
</body>
</html>