-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
135 lines (125 loc) · 5.91 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Lock Builder</title>
<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=Roboto:wght@600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="Lock Builder" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://lockbuilder.io" />
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-E8SLC15CHB"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-E8SLC15CHB');
</script>
<body>
<canvas id="cl"></canvas>
<div id="point-options">
<label for="x">x:</label>
<input type="text" name="x" id="point-x" class="point-specific-input">
<label for="y">y:</label>
<input type="text" name="y" id="point-y" class="point-specific-input">
<label for="point-lock-type">lock to:</label>
<select name="point-lock-type" id="point-lock-type" class="point-specific-input">
<option value="top" , lvalue="1.0">Top</option>
<option value="middle" , lvalue="0.5">Middle</option>
<option value="bottom" , lvalue="0.0">Bottom</option>
<option value="none">None</option>
<option value="custom">Custom</option>
</select>
<div id="custom-l-input" style="display: none;">
<label for="custom-l">lock to height: </label>
<input type="text" name="custom-l" id="point-custom-l">
</div>
<button type="button" id="delete-point" class="point-specific-input">Delete</button>
<div id="mirroring-control">
<label for="mirrored-editor">Symmetrical pin editing</label>
<input type="checkbox" name="mirrored-editor" id="mirrored-editor" checked>
</div>
<button id="close-pin-editor" class="btn">Close</button>
</div>
<div id="planner-options">
<div id="metacontrols">
<button type="button" id="simulate-all-chambers">Simulate picking!</button>
<button type="button" id="undo" disabled>Undo</button>
<button type="button" id="redo" disabled>Redo</button>
<button type="button" id="reset">Reset</button>
</div>
<div id="options">
<label for="pin-type">Pin type</label>
<select name="pin-type" id="pin-type"></select>
<label for="milling-type">Chamber milling type</label>
<select name="milling-type" id="milling-type"></select>
<button id="add-pin" class="btn">Add pin</button>
<button type="button" id="add-chamber">Add chamber</button>
<div id="chamber-selected-options">
<button type="button" id="simulate-chamber" class="chamber-specific-btn" disabled>Simulate
chamber!</button>
<button type="button" id="delete-chamber" class="chamber-specific-btn" disabled>Delete chamber</button>
</div>
<div id="pin-selected-options">
<button type="button" id="edit-pin" class="pin-specific-btn" disabled>Edit pin</button>
<button type="button" id="delete-pin" class="pin-specific-btn" disabled>Delete pin</button>
<div id="pin-height-control">
<button type="button" id="decrease-pin-height" class="pin-specific-btn" disabled>-</button>
Pin height: <span id="pin-height">n/a</span>
<button type="button" id="increase-pin-height" class="pin-specific-btn" disabled>+</button>
</div>
</div>
</div>
<br>
<div id="import-export">
<button type="button" id="export-pin" class="pin-specific-btn" disabled>Export pin</button>
<button type="button" id="import-pin">Import pin</button>
<br>
<textarea name="pin-def" id="pin-def" cols="30" rows="10"></textarea>
</div>
</div>
<div id="simulator-controls" hidden>
<button type="button" id="close-simulator">Exit simulation</button>
<label for="mirrored-editor">Lock pin dragging to vertical only</label>
<input type="checkbox" name="lock-drag-controls-vertically" id="lock-drag-controls-vertically" checked>
<label for="difficulty">Difficulty level</label>
<select name="difficulty" id="difficulty"></select>
<p>Tension controls:
<ul>
<li>
a: Counter-rotate slowly
</li>
<li>
s: Counter-rotate slightly quicker
</li>
<li>
d: Increase tension strength
</li>
<li>
f: Increase tension strength
</li>
</ul>
You can hold multiple buttons at once to compound their effects.
Most of the time, just holding one of a or s will decrease tension a little but not actively counter-rotate.
</br>
Holding all four at once quickly puts tension at neutral.
</br>
Float picking: Hold "s" to counter-rotate slightly, then tap "a" carefully to control the tension position.
</p>
</div>
<script type="module" src="main.js" type="text/javascript"></script>
<script src="lib/matter.min.js" type="text/javascript"></script>
<script src="lib/decomp.min.js" type="text/javascript"></script>
</body>
<footer>
<a href="https://github.com/chestnutzero/pin-planner">
View source on GitHub
<img src="images/github-mark.svg" alt="https://github.githubassets.com/assets/GitHub-Mark-ea2971cee799.png"
width="16" height="16">
</a>
</footer>
</html>