forked from ibnuda/dactyl-keyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lightcycle.html
187 lines (187 loc) · 9.26 KB
/
lightcycle.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
{% extends "wrapper.html" %}
{% block content %}
<div class="row">
<div class="column column-75">
<br>
<h2>Lightcycle</h2>
</div>
</div>
<div class="row">
<div class="column column-75">
<form method="POST" action="/lightcycle">
<label for="keys">
<h3>Keys</h3>
</label>
<fieldset name="keys" id="keys">
<label for="ncols">Number of columns (4 - 7)</label>
<input type="number" name="ncols" id="ncols" value=6 min="4" max="7">
<label for="thumb-count">Thumb key count?</label>
<select id="thumb-count" name="thumb-count">
<option value="2">2</option>
<option value="3">3</option>
<option value="5" selected>5</option>
<option value="6">6</option>
<option value="8">8</option>
</select>
<label for="last-row">Use bottom row?</label>
<select id="last-row" name="last-row">
<option value="true">Yes</option>
<option value="false">No</option>
</select>
<label for="num-row">Use num row?</label>
<select id="num-row" name="num-row">
<option value="true">Yes</option>
<option value="false">No</option>
</select>
</fieldset>
<label for="curvature">
<h3>Curvature & Tenting</h3>
</label>
<fieldset name="curvature" id=curvature>
<label for="alpha">Column's Curvature</label>
<select id="alpha" name="alpha">
{% for cc in column-curvature %}
<option value={{cc}}>pi/{{cc}}</option>
{% endfor %}
</select>
<label for="beta">Row's Curvature</label>
<select id="beta" name="beta">
<option value=36>pi/36</option>
<option value=30>pi/30</option>
</select>
<label for="tenting-angle">Tenting Angle</label>
<select id="tenting-angle" name="tenting-angle" value="pi/12">
{% for ta in tenting-angle %}
<option value={{ta}}>pi/{{ta}}</option>
{% endfor %}
</select>
<label for="thumb-alpha">Thumb's Column Curvature</label>
<select id="thumb-alpha" name="thumb-alpha">
{% for cc in thumb-column-curvature %}
<option value={{cc}}>pi/{{cc}}</option>
{% endfor %}
</select>
<label for="thumb-beta">Thumb's Row Curvature</label>
<select id="thumb-beta" name="thumb-beta">
{% for rc in thumb-row-curvature %}
<option value={{rc}}>pi/{{rc}}</option>
{% endfor %}
</select>
<label for="thumb-tenting-angle">Thumb Tenting Angle</label>
<select id="thumb-tenting-angle" name="thumb-tenting-angle">
{% for tta in thumb-tenting-angle %}
<option value={{tta}}>pi/{{tta}}</option>
{% endfor %}
</select>
</fieldset>
<label for="connector">
<h3>Connectors</h3>
</label>
<fieldset name="connector" id="connector">
<label for="external-holder">Use loligagger's external holder or default cutout (RJ9 + big USB
hole)?</label>
<select id="external-holder" name="external-holder">
<option value="false">No</option>
<option value="true">Yes</option>
</select>
</fieldset>
<label for="case-form">
<h3>Form of the Case</h3>
</label>
<label for="hotswap">Dongguan Kaihua Electronics Co., Ltd
(originally named Longhua Electronics)'s Hotswap Socket?</label>
<select id="hotswap" name="hotswap">
<option value="false">No</option>
<option value="true">Yes</option>
</select>
<fieldset name="thumb-offset" id="thumb-offset">
<label for="thumb-offset-x">Thumb Position in X direction (left/right)</label>
<select id="thumb-offset-x" name="thumb-offset-x">
<option value="52">Default</option>
<option value="48">Closer to body</option>
<option value="44">Even closer to body</option>
<option value="40">Even closer closer to body</option>
<option value="36">Even closer closer closer to body</option>
<option value="56">Farther to body</option>
<option value="60">Even farther to body</option>
<option value="64">Even farther farther to body</option>
<option value="68">Even farther farther farther to body</option>
</select>
<label for="thumb-offset-y">Thumb Position in Y direction (front/back)</label>
<select id="thumb-offset-y" name="thumb-offset-y">
<option value="45">Default</option>
<option value="49">Farther to body</option>
<option value="53">Even farther to body</option>
<option value="57">Even farther farther to body</option>
<option value="57">Even farther farther farther to body</option>
</select>
<label for="thumb-offset-z">Thumb Position in Z direction (up/down)</label>
<select id="thumb-offset-z" name="thumb-offset-z">
<option value="27">Default</option>
<option value="23">Lower to body</option>
<option value="19">Even lower to body</option>
<option value="15">Even lower lower to body</option>
<option value="11">Even lower lower lower to body</option>
<option value="31">Higher to body</option>
<option value="35">Even higher to body</option>
<option value="39">Even higher higher to body</option>
<option value="43">Even higher higher higher to body</option>
</select>
</fieldset>
<label for="case-form">
<h3>Form of the Case</h3>
</label>
<fieldset name="manuform-offset" id="manuform-offset">
<label for="manuform-offset">Use Dactyl Manuform's Columnar Stagger</label>
<select id="manuform-offset" name="manuform-offset">
<option value="false">No</option>
<option value="true">Yes</option>
</select>
</fieldset>
<fieldset name="case-form" id="case-form">
<label for="z-offset">Height Offset</label>
<select id="z-offset" name="z-offset">
<option value="18" selected>18mm</option>
{% for ho in height-offset %}
<option value={{ho}}>{{ho}}mm</option>
{% endfor %}
</select>
<label for="use-border">Border</label>
<select name="use-border" id="use-border">
<option value="true">Yes</option>
<option value="false">No</option>
</select>
</fieldset>
<label for="miscelania">
<h3>Miscelania</h3>
</label>
<fieldset name="miscelania" id="miscelania">
<label for="show-keycaps">Show Keycaps?</label>
<select id="show-keycaps" name="show-keycaps">
<option value="false">No</option>
<option value="true">Yes</option>
</select>
<label for="right-side">Right side or left side?</label>
<select id="right-side" name="right-side">
<option value="true">Right</option>
<option value="false">Left</option>
</select>
<label for="screw-inserts">Screw inserts</label>
<select id="screw-inserts" name="screw-inserts">
<option value="false">No screw inserts</option>
<option value="true">Screw inserts</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>
</div>
</div>
{% endblock %}