forked from ibnuda/dactyl-keyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manuform.html
396 lines (392 loc) · 17.4 KB
/
manuform.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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
{% extends "wrapper.html" %} {% block content %}
<script>
function setkeyboard(
ncols,
nrows,
thumbcount,
innercolumn,
lastrow,
widepinky
) {
document.getElementById("keys.columns").value = ncols;
document.getElementById("keys.rows").value = nrows;
document.getElementById("keys.thumb-count").value = thumbcount;
document.getElementById("keys.inner-column").value = innercolumn;
document.getElementById("keys.last-row").value = lastrow;
document.getElementById("form.wide-pinky").value = widepinky;
}
function setminidox() {
setkeyboard(5, 4, "three", "normal", "zero", "false");
}
function setcorne() {
setkeyboard(6, 4, "three", "normal", "zero", "false");
}
function setergodox() {
setkeyboard(6, 5, "six", "ergodox", "full", "true");
}
function setsmallest() {
setkeyboard(5, 3, "two", "innie", "zero", "false");
}
</script>
<div class="row">
<div class="column column-75">
<br />
<h2>Manuform</h2>
</div>
</div>
<div class="row">
<div class="colum column-75">
<p>
If you have downloaded JSON config from this site in the past, you might
want to try to open it here again:
</p>
<input type="file" name="jsonloader" id="jsonloader" onchange="shove_json()" />
<br />
<br />
<br />
</div>
</div>
<div class="row">
<div class="column column-75">
<form method="POST" action="/manuform">
<label for="keys">
<h3>Keys</h3>
</label>
<fieldset name="keys" id="keys">
<label for="keys.columns">Number of columns (4 - 7)</label>
<input type="number" name="keys.columns" id="keys.columns" value="5" min="4" max="9" />
<label for="keys.rows">Number of rows (3 - 6)</label>
<input type="number" name="keys.rows" id="keys.rows" value="4" min="3" max="7" />
<label for="keys.thumb-count">Thumb Key Count</label>
<select id="keys.thumb-count" name="keys.thumb-count">
<option value="six">6 (Default)</option>
<option value="five">5 (Mini)</option>
<option value="four">4</option>
<option value="three">3 (Minidox)</option>
<option value="two">2</option>
</select>
<label for="keys.last-row">Last Row Key Counts?</label>
<select id="keys.last-row" name="keys.last-row">
<option value="two">Two (Default Dactyl Manuform).</option>
<option value="zero">No last row.</option>
<option value="full">Use all keys.</option>
</select>
<label for="keys.switch-type">Key Hole</label>
<select id="keys.switch-type" name="keys.switch-type">
<option value="box">Box and MX</option>
<option value="mx">MX</option>
<option value="alps">Alps</option>
<option value="choc">Choc (Experimental)</option>
<option value="kailh">Kailh (Experimental)</option>
</select>
<label for="keys.inner-column">Inner Index Finger's Column?</label>
<select id="keys.inner-column" name="keys.inner-column">
<option value="normal">Normal</option>
<option value="ergodox">Use inner column (like ergodox)</option>
<option value="innie">Without</option>
</select>
<label for="keys.hide-last-pinky">Hide Bottom Pinky? (see Kinesis Advantage's Layout)</label>
<select id="keys.hide-last-pinky" name="keys.hide-last-pinky">
<option value="false">No</option>
<option value="true">Yes</option>
</select>
</fieldset>
<label for="curve">
<h3>Curvature & Tenting</h3>
</label>
<fieldset name="curve" id="curve">
<label for="curve.alpha">Column's Curvature</label>
<select id="curve.alpha" name="curve.alpha">
<option value="12">pi/12</option>
{% for cc in column-curvature %}
<option value="{{cc}}">pi/{{cc}}</option>
{% endfor %}
</select>
<label for="curve.pinky-alpha">Pinky's Column's Curvature</label>
<select id="curve.pinky-alpha" name="curve.pinky-alpha">
{% for pcc in pinky-column-curvature %}
<option value="{{pcc}}">pi/{{pcc}}</option>
{% endfor %}
</select>
<label for="curve.beta">Row's Curvature</label>
<select id="curve.beta" name="curve.beta" value="pi/36">
<option value="36">pi/36</option>
{% for rc in row-curvature %}
<option value="{{rc}}">pi/{{rc}}</option>
{% endfor %}
</select>
<label for="curve.centecol">Center of the curvature for the column</label>
<select id="curve.centercol" name="curve.centercol">
<option value="4">Pinky finger's column</option>
<option value="3">Ring finger's column</option>
<option value="2">Middle finger's column</option>
<option value="1">Index finger's column.</option>
</select>
<label for="curve.tenting">Tenting Angle</label>
<select id="curve.tenting" name="curve.tenting">
{% for ta in tenting-angle %}
<option value="{{ta}}">pi/{{ta}}</option>
{% endfor %}
</select>
<label for="curve.rotate-x">Rotation around row axis</label>
<select id="curve.rotate-x" name="curve.rotate-x">
<option value=180>pi/180</option>
{% for ta in rotate-x %}
<option value="-{{ta}}">-pi/{{ta}}</option>
{% endfor %}
</select>
</fieldset>
<label for="connector">
<h3>Connectors</h3>
</label>
<fieldset name="connector" id="connector">
<label for="connector.external">Use loligagger's external holder ?</label>
<select id="connector.external" name="connector.external" onchange="toggle_connectors_fields()">
<option value="false">No</option>
<option value="true">Yes</option>
</select>
<label for="connector.trrs">Connector</label>
<select id="connector.trrs" name="connector.trrs">
<option value="false">RJ9</option>
<option value="true">TRRS</option>
</select>
<label for="connector.micro-usb">USB Hole</label>
<select id="connector.micro-usb" name="connector.micro-usb">
<option value="false">Mini</option>
<option value="true">Micro</option>
</select>
</fieldset>
<label for="form">
<h3>Form of the Case</h3>
</label>
<fieldset name="form" id="form">
<label for="form.hotswap">Dongguan Kaihua Electronics Co., Ltd (originally named Longhua
Electronics)'s Hotswap Socket?</label>
<select id="form.hotswap" name="form.hotswap">
<option value="false">No</option>
<option value="true">Yes</option>
</select>
<label for="form.thumb-offsets">Thumb cluster offsets</label>
<label for="form.thumb-center-offsets">Center</label>
<div class="row" id="form.thumb-offsets">
<div class="column column-33">
<label for="form.thumb-cluster-offset-x">X (toward the pinky)</label>
<input type="number" name="form.thumb-cluster-offset-x" id="form.thumb-cluster-offset-x" value="6" step="0.1" />
</div>
<div class="column column-33">
<label for="form.thumb-cluster-offset-y">Y (toward the index)</label>
<input type="number" name="form.thumb-cluster-offset-y" id="form.thumb-cluster-offset-y" value="-3" step="0.1" />
</div>
<div class="column column-33">
<label for="form.thumb-cluster-offset-z">Z (altitude)</label>
<input type="number" name="form.thumb-cluster-offset-z" id="form.thumb-cluster-offset-z" value="7" step="0.1" />
</div>
</div>
<label for="form.custom-thumb-offsets">Custom thumb single key offset (Experimental)</label>
<select name="form.custom-thumb-offsets" id="form.custom-thumb-offsets">
<option value="false">No</option>
<option value="true">Yes</option>
</select>
<label for="form.thumb-top-right-offsets">Top right</label>
<div class="row" id="form.thumb-offsets">
<div class="column column-33">
<label for="form.thumb-top-right-offset-x">X (toward the pinky)</label>
<input type="number" name="form.thumb-top-right-offset-x" id="form.thumb-top-right-offset-x" value="-12" step="0.1" />
</div>
<div class="column column-33">
<label for="form.thumb-top-right-offset-y">Y (toward the index)</label>
<input type="number" name="form.thumb-top-right-offset-y" id="form.thumb-top-right-offset-y" value="-16" step="0.1" />
</div>
<div class="column column-33">
<label for="form.thumb-top-right-offset-z">Z (altitude)</label>
<input type="number" name="form.thumb-top-right-offset-z" id="form.thumb-top-right-offset-z" value="3" step="0.1" />
</div>
</div>
<label for="form.custom-thumb-tenting">Custom thumb cluster tenting (Experimental)</label>
<select name="form.custom-thumb-tenting" id="form.custom-thumb-tenting" onchange="toggle_custom_thumb_fields()">
<option value="false">No</option>
<option value="true">Yes</option>
</select>
<div class="row">
<div class="column column-33">
<label for="form.thumb-tenting-x">X (index-pinky axis)</label>
<select id="form.thumb-tenting-x" name="form.thumb-tenting-x">
<option value="69">Default (without curvature)</option>
{% for ttx in thumb-tenting-x %}
<option value="{{ttx}}">pi/{{ttx}}</option>
{% endfor %}
</select>
</div>
<div class="column column-33">
<label for="form.thumb-tenting-y">Y (index axis)</label>
<select id="form.thumb-tenting-y" name="form.thumb-tenting-y">
<option value="69">Default (without curvature)</option>
{% for tty in thumb-tenting-y %}
<option value="-{{tty}}">-pi/{{tty}}</option>
{% endfor %}
</select>
</div>
<div class="column column-33">
<label for="form.thumb-tenting-z">Z (altitude)</label>
<select id="form.thumb-tenting-z" name="form.thumb-tenting-z">
<option value="69">Default (without curvature)</option>
{% for ttz in thumb-tenting-z %}
<option value="{{ttz}}">pi/{{ttz}}</option>
{% endfor %}
</select>
</div>
</div>
<!--div class="row" id="custom-thumb-tenting" style="display: none">
{% for tloc in thumb-locations %}
<div class="row">
<div class="column column-33">
<label for="form.thumb-tenting-x">{{tloc}} X (index-pinky axis)</label>
<select id="form.thumb-tenting-x" name="form.thumb-tenting-{{tloc}}-x">
<option value="69">Default (without curvature)</option>
{% for ttx in thumb-tenting-x %}
<option value="-{{ttx}}">-pi/{{ttx}}</option>
{% endfor %}
</select>
</div>
<div class="column column-33">
<label for="form.thumb-tenting-y">{{tloc}} Y (index-pinky axis)</label>
<select id="form.thumb-tenting-y" name="form.thumb-tenting-{{tloc}}-y">
<option value="69">Default (without curvature)</option>
{% for tty in thumb-tenting-y %}
<option value="-{{tty}}">-pi/{{tty}}</option>
{% endfor %}
</select>
</div>
<div class="column column-33">
<label for="form.thumb-tenting-z">{{tloc}} Z (index-pinky axis)</label>
<select id="form.thumb-tenting-z" name="form.thumb-tenting-{{tloc}}-z">
<option value="69">Default (without curvature)</option>
{% for ttz in thumb-tenting-z %}
<option value="-{{ttz}}">-pi/{{ttz}}</option>
{% endfor %}
</select>
</div>
</div>
{% endfor %}
</div-->
<label for="form.stagger">Stagger?</label>
<select id="form.stagger" name="form.stagger">
<option value="true">Yes</option>
<option value="false">No</option>
</select>
<label for="form.index-measurement">Index Finger Measurement (Only used if Stagger? set yes)</label>
<div class="row" id="form.index-measurement">
<div class="column column-50">
<label for="form.stagger-index-y">Y</label>
<input type="number" name="form.stagger-index-y" id="form.stagger-index-y" value="0" step="0.1" />
</div>
<div class="column column-50">
<label for="form.index-z">Z</label>
<input type="number" name="form.stagger-index-z" id="form.stagger-index-z" value="0" step="0.1" />
</div>
</div>
<label for="form.middle-measurement">Middle Finger Measurement (Only used if Stagger? set yes)</label>
<div class="row" id="form.middle-measurement">
<div class="column column-50">
<label for="form.stagger-middle-y">Y</label>
<input type="number" name="form.stagger-middle-y" id="form.stagger-middle-y" value="2.8" step="0.1" />
</div>
<div class="column column-50">
<label for="form.stagger-middle-z">Z</label>
<input type="number" name="form.stagger-middle-z" id="form.stagger-middle-z" value="-6.5" step="0.1" />
</div>
</div>
<label for="form.ring-measurement">Ring Finger Measurement (Only used if Stagger? set yes)</label>
<div class="row" id="form.ring-measurement">
<div class="column column-50">
<label for="form.stagger-ring-y">Y</label>
<input type="number" name="form.stagger-ring-y" id="form.stagger-ring-y" value="0" step="0.1" />
</div>
<div class="column column-50">
<label for="form.stagger-ring-z">Z</label>
<input type="number" name="form.stagger-ring-z" id="form.stagger-ring-z" value="0" step="0.1" />
</div>
</div>
<label for="form.pinky-measurement">Pinky Finger Measurement (Only used if Stagger? set yes)</label>
<div class="row" id="form.pinky-measurement">
<div class="column column-50">
<label for="form.stagger-pinky-y">Y</label>
<input type="number" name="form.stagger-pinky-y" id="form.stagger-pinky-y" value="-13" step="0.1" />
</div>
<div class="column column-50">
<label for="form.stagger-pinky-z">Z</label>
<input type="number" name="form.stagger-pinky-z" id="form.stagger-pinky-z" value="6" step="0.1" />
</div>
</div>
<label for="form.wide-pinky">Wide Pinky?</label>
<select id="form.wide-pinky" name="form.wide-pinky">
<option value="false">No</option>
<option value="true">Yes</option>
</select>
<label for="form.height-offset">Height Offset</label>
<select id="form.height-offset" name="form.height-offset">
{% for ho in height-offset %}
<option value="{{ho}}">{{ho}}mm</option>
{% endfor %}
</select>
<label for="form.wire-post">Wire Posts?</label>
<select id="form.wire-post" name="form.wire-post">
<option value="false">No</option>
<option value="true">Yes</option>
</select>
<label for="form.screw-inserts">Screw inserts</label>
<select id="form.screw-inserts" name="form.screw-inserts">
<option value="false">No screw inserts</option>
<option value="true">Screw inserts</option>
</select>
</fieldset>
<label for="misc">
<h3>Miscelania</h3>
</label>
<fieldset name="misc" id="misc">
<label for="misc.keycaps">Show Keycaps?</label>
<select id="misc.keycaps" name="misc.keycaps">
<option value="false">No</option>
<option value="true">Yes</option>
</select>
<label for="misc.right-side">Right side or left side?</label>
<select id="misc.right-side" name="misc.right-side">
<option value="true">Right</option>
<option value="false">Left</option>
</select>
</fieldset>
<input class="button-primary" type="submit" name="generate-case" value="Generate Case" />
<input class="button-primary" type="submit" name="generate-plate" value="Generate Plate" />
<input class="button-primary" type="submit" name="generate-json" value="Generate JSON" />
</form>
<p>Loligagger's external holder files:</p>
<ul>
<li>
<a href="loligagger-external-holder-promicro-v1.stl">Promicro V1</a>
</li>
<li>
<a href="loligagger-external-holder-promicro-v2.stl">Promicro V2</a>
</li>
<li>
<a href="loligagger-external-holder-elite-c-v1.stl">Elite-C V1</a>
</li>
</ul>
<p>BrownElvis' external holder files:</p>
<ul>
<li>
<a href="loligagger-external-holder-promicro-v3-extended.stl">Promicro V3</a>
</li>
</ul>
</div>
<div class="column column-25">
<h3>Defaults:</h3>
<button onclick="setminidox()">Minidox</button>
<br />
<button onclick="setcorne()">Corne</button>
<br />
<button onclick="setergodox()">Ergodox</button>
<br />
<button onclick="setsmallest()">r/emk's logo</button>
</div>
</div>
{% endblock %}