-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
368 lines (368 loc) · 19 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8" />
<title>Portal 2 Keybinder</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" type="text/css">
<link rel="icon" type="image/png" href="https://avatars.githubusercontent.com/u/83299896" />
</head>
<body>
<main>
<div class="keypanel">
<div class="kp-main">
<div class="kp-fnrow">
<div class="kp-fngroup">
<span class="key">Esc</span> <!-- This is technically bindable but it's a bit weird so let's say it's not -->
</div>
<div class="kp-fngroup">
<span class="key" p2key="f1">F1</span>
<span class="key" p2key="f2">F2</span>
<span class="key" p2key="f3">F3</span>
<span class="key" p2key="f4">F4</span>
</div>
<div class="kp-fngroup">
<span class="key" p2key="f5">F5</span>
<span class="key" p2key="f6">F6</span>
<span class="key" p2key="f7">F7</span>
<span class="key" p2key="f8">F8</span>
</div>
<div class="kp-fngroup">
<span class="key" p2key="f9">F9</span>
<span class="key" p2key="f10">F10</span>
<span class="key" p2key="f11">F11</span>
<span class="key" p2key="f12">F12</span>
</div>
</div>
<div class="kp-mainbody">
<div class="kp-row">
<span class="key" p2key="`">`</span>
<span class="key" p2key="1">1</span>
<span class="key" p2key="2">2</span>
<span class="key" p2key="3">3</span>
<span class="key" p2key="4">4</span>
<span class="key" p2key="5">5</span>
<span class="key" p2key="6">6</span>
<span class="key" p2key="7">7</span>
<span class="key" p2key="8">8</span>
<span class="key" p2key="9">9</span>
<span class="key" p2key="0">0</span>
<span class="key" p2key="-">-</span>
<span class="key" p2key="=">=</span>
<span class="key widekey2" p2key="backspace">Bsp</span>
</div>
<div class="kp-row">
<span class="key widekey1" p2key="tab">Tab</span>
<span class="key" p2key="q">Q</span>
<span class="key" p2key="w">W</span>
<span class="key" p2key="e">E</span>
<span class="key" p2key="r">R</span>
<span class="key" p2key="t">T</span>
<span class="key" p2key="y">Y</span>
<span class="key" p2key="u">U</span>
<span class="key" p2key="i">I</span>
<span class="key" p2key="o">O</span>
<span class="key" p2key="p">P</span>
<span class="key" p2key="[">[</span>
<span class="key" p2key="]">]</span>
<span class="key widekey1" p2key="\">\</span>
</div>
<div class="kp-row">
<span class="key widekey2" p2key="capslock">Caps</span>
<span class="key" p2key="a">A</span>
<span class="key" p2key="s">S</span>
<span class="key" p2key="d">D</span>
<span class="key" p2key="f">F</span>
<span class="key" p2key="g">G</span>
<span class="key" p2key="h">H</span>
<span class="key" p2key="j">J</span>
<span class="key" p2key="k">K</span>
<span class="key" p2key="l">L</span>
<span class="key" p2key="semicolon">;</span>
<span class="key" p2key="'">'</span>
<span class="key widekey3" p2key="enter">Ret</span>
</div>
<div class="kp-row">
<span class="key widekey4" p2key="shift">Shift</span>
<span class="key" p2key="z">Z</span>
<span class="key" p2key="x">X</span>
<span class="key" p2key="c">C</span>
<span class="key" p2key="v">V</span>
<span class="key" p2key="b">B</span>
<span class="key" p2key="n">N</span>
<span class="key" p2key="m">M</span>
<span class="key" p2key=",">,</span>
<span class="key" p2key=".">.</span>
<span class="key" p2key="/">/</span>
<span class="key widekey4" p2key="rshift">Shift</span>
</div>
<div class="kp-row">
<span class="key widekey1" p2key="ctrl">Ctrl</span>
<span class="key widekey1" p2key="lwin">Super</span>
<span class="key widekey1" p2key="alt">Alt</span>
<span class="key widekey5" p2key="space">Space</span>
<span class="key widekey1" p2key="ralt">Alt</span>
<span class="key widekey1" p2key="rwin">Super</span>
<span class="key widekey1" p2key="rctrl">Ctrl</span>
</div>
</div>
</div>
<div class="kp-mid">
<div class="kp-fnrow">
<div class="kp-fngroup">
<span class="key">Psc</span> <!-- can't be bound -->
<span class="key" p2key="scrolllock">Slk</span>
<span class="key" p2key="pause">Brk</span>
</div>
</div>
<div class="kp-midbody">
<div class="kp-midpart">
<div class="kp-row">
<span class="key" p2key="ins">Ins</span>
<span class="key" p2key="home">Hme</span>
<span class="key" p2key="pgup">Pgu</span>
</div>
<div class="kp-row">
<span class="key" p2key="del">Del</span>
<span class="key" p2key="end">End</span>
<span class="key" p2key="pgdn">Pgd</span>
</div>
</div>
<div class="kp-midpart">
<div class="kp-row">
<span class="key" p2key="uparrow">^</span>
</div>
<div class="kp-row">
<span class="key" p2key="leftarrow"><</span>
<span class="key" p2key="downarrow">v</span>
<span class="key" p2key="rightarrow">></span>
</div>
</div>
</div>
</div>
<div class="kp-numpad">
<div class="kp-numpad-main">
<div class="kp-row">
<span class="key" p2key="numlock">Num</span>
<span class="key" p2key="kp_slash">/</span>
<span class="key" p2key="kp_multiply">*</span>
</div>
<div class="kp-row">
<span class="key" p2key="kp_home">7</span>
<span class="key" p2key="kp_uparrow">8</span>
<span class="key" p2key="kp_pgup">9</span>
</div>
<div class="kp-row">
<span class="key" p2key="kp_leftarrow">4</span>
<span class="key" p2key="kp_5">5</span>
<span class="key" p2key="kp_rightarrow">6</span>
</div>
<div class="kp-row">
<span class="key" p2key="kp_end">1</span>
<span class="key" p2key="kp_downarrow">2</span>
<span class="key" p2key="kp_pgdn">3</span>
</div>
<div class="kp-row">
<span class="key widekey3" p2key="kp_ins">0</span>
<span class="key" p2key="kp_del">.</span>
</div>
</div>
<div class="kp-col">
<span class="key" p2key="kp_minus">-</span>
<span class="key tallkey1" p2key="kp_plus">+</span>
<span class="key tallkey1" p2key="kp_enter">Ret</span>
</div>
</div>
<div class="kp-mouse">
<div class="kp-mouse-main">
<span class="key tallkey2" p2key="mouse1">LMB</span>
<span class="key tallkey2 thinkey1" p2key="mouse3"></span>
<span class="key tallkey2" p2key="mouse2">RMB</span>
</div>
<div class="kp-mouse-body">
<div class="kp-mouse-left">
<span class="key" p2key="mouse4">M4</span>
<span class="key" p2key="mouse5">M5</span>
</div>
</div>
</div>
</div>
<div class="keybinder">
<div class="bindmode">
<h3>Bind Mode</h3>
<span>
<input type="radio" id="bindmode_all" name="bind_mode">
<label for="bindmode_all">All</label>
</span>
<span>
<input type="radio" id="bindmode_cm" name="bind_mode">
<label for="bindmode_cm">CM</label>
</span>
<span>
<input type="radio" id="bindmode_non_cm" name="bind_mode">
<label for="bindmode_non_cm">Non-CM</label>
</span>
</div>
<div class="binds">
<span>Hover over the toggle/hold/misc binds for a more detailed explanation of how they work, or visit the <a href="https://github.com/p2sr/srconfigs?tab=readme-ov-file#binds" target="_blank">srconfigs README</a>.</span>
<div>
<div>
<h3>Player Control</h3>
<span>
<input type="radio" id="bind_control_forward" name="key_action" value="+forward">
<label for="bind_control_forward">Forward</label>
</span>
<span>
<input type="radio" id="bind_control_back" name="key_action" value="+back">
<label for="bind_control_back">Back</label>
</span>
<span>
<input type="radio" id="bind_control_left" name="key_action" value="+moveleft">
<label for="bind_control_left">Left</label>
</span>
<span>
<input type="radio" id="bind_control_right" name="key_action" value="+moveright">
<label for="bind_control_right">Right</label>
</span>
<span>
<input type="radio" id="bind_control_jump" name="key_action" value="+jump">
<label for="bind_control_jump">Jump</label>
</span>
<span>
<input type="radio" id="bind_control_crouch" name="key_action" value="+duck">
<label for="bind_control_crouch">Crouch</label>
</span>
<span>
<input type="radio" id="bind_control_blue" name="key_action" value="+attack">
<label for="bind_control_blue">Shoot blue</label>
</span>
<span>
<input type="radio" id="bind_control_orange" name="key_action" value="+attack2">
<label for="bind_control_orange">Shoot orange</label>
</span>
<span>
<input type="radio" id="bind_control_use" name="key_action" value="+use">
<label for="bind_control_use">Use</label>
</span>
<span>
<input type="radio" id="bind_control_zoom" name="key_action" value="+zoom">
<label for="bind_control_zoom">Zoom toggle</label>
</span>
</div>
<div>
<h3 title="Pressing toggle binds once enables the effect, then pressing again disables the effect">Toggle Binds</h3>
<span title="Toggles in-game brightness">
<input type="radio" id="bind_toggle_fullbright" name="key_action" value="fullbright_toggle">
<label for="bind_toggle_fullbright">Fullbright</label>
</span>
<span title="Toggles lower sensitivity for more precise aiming">
<input type="radio" id="bind_toggle_lowsens" name="key_action" value="lowsens_toggle">
<label for="bind_toggle_lowsens">Low-sens</label>
</span>
<span title="Toggle scroll up being bound to +use (customizable to be both scroll directions)">
<input type="radio" id="bind_toggle_useswap" name="key_action" value="useswap_toggle">
<label for="bind_toggle_useswap">Use-swap</label>
</span>
<span title="Toggles scroll being bound to shoot blue (customizable to be shoot orange)">
<input type="radio" id="bind_toggle_supershoot" name="key_action" value="supershoot_toggle">
<label for="bind_toggle_supershoot">Supershoot</label>
</span>
<span title="Toggles on-screen developer text">
<input type="radio" id="bind_toggle_contimes" name="key_action" value="contimes_toggle">
<label for="bind_toggle_contimes">Contimes</label>
</span>
<span title="Toggles the maximum FPS to 30 (for use in Any%)">
<input type="radio" id="bind_toggle_30fps" name="key_action" value="30fps_toggle">
<label for="bind_toggle_30fps">30FPS</label>
</span>
<span title="Toggles being able to hear dialogue">
<input type="radio" id="bind_toggle_dialogue" name="key_action" value="dialogue_toggle">
<label for="bind_toggle_dialogue">Dialogue</label>
</span>
<span title="Toggles portal funneling (being pulled towards portals when falling)">
<input type="radio" id="bind_toggle_funneling" name="key_action" value="funneling_toggle">
<label for="bind_toggle_funneling">Funneling</label>
</span>
</div>
<div>
<h3 title="Holding down the key enables the effect, letting go disables the effect">Hold Binds</h3>
<span title="Hold down for brighter in-game brightness">
<input type="radio" id="bind_hold_fullbright" name="key_action" value="+fullbright">
<label for="bind_hold_fullbright">Fullbright</label>
</span>
<span title="Hold down for lower sensitivity for more precise aiming">
<input type="radio" id="bind_hold_lowsens" name="key_action" value="+lowsens">
<label for="bind_hold_lowsens">Low-sens</label>
</span>
<span title="Hold down change scroll up to be +use (customizable to be both scroll directions)">
<input type="radio" id="bind_hold_useswap" name="key_action" value="+useswap">
<label for="bind_hold_useswap">Use-swap</label>
</span>
<span title="Hold down to change scroll to be shoot blue (customizable to be shoot orange)">
<input type="radio" id="bind_hold_supershoot" name="key_action" value="+supershoot">
<label for="bind_hold_supershoot">Supershoot</label>
</span>
<span title="Hold down to enable on-screen developer text">
<input type="radio" id="bind_hold_contimes" name="key_action" value="+contimes">
<label for="bind_hold_contimes">Contimes</label>
</span>
<span title="Hold down to change the maximum FPS to 30 (for use in Any%)">
<input type="radio" id="bind_hold_30fps" name="key_action" value="+30fps">
<label for="bind_hold_30fps">30FPS</label>
</span>
</div>
<div>
<h3>Misc</h3>
<span title="Automatically swaps to next viewsnap value in a map">
<input type="radio" id="bind_misc_viewsnapnext" name="key_action" value="viewsnap_next">
<label for="bind_misc_viewsnapnext">Viewsnap</label>
</span>
<span title="Reset to your normal sensitivity after lowsens/viewsnaps">
<input type="radio" id="bind_misc_resetsens" name="key_action" value="reset_sens">
<label for="bind_misc_resetsens">Reset sensitivity</label>
</span>
<span title="In-air taunt bind for co-op, as well as fast taunts if it is downloaded.">
<input type="radio" id="bind_misc_taunt" name="key_action" value="taunt fast;taunt">
<label for="bind_misc_taunt">Taunt (+ Fast taunt)</label>
</span>
<span title="Skips cutscene videos like Co-op intro">
<input type="radio" id="bind_misc_stopvideos" name="key_action" value="stopvideos">
<label for="bind_misc_stopvideos">Stop cutscene videos</label>
</span>
<span id="Reset speedrun, works in both fullgame and challenge mode">
<input type="radio" id="bind_misc_reset" name="key_action" value="do_reset">
<label for="bind_misc_reset">Reset run</label>
</span>
<span title="Restarts the current level">
<input type="radio" id="bind_misc_restartlvl" name="key_action" value="restart_level">
<label for="bind_misc_restartlvl">Restart level</label>
</span>
<span title="Creates a save using the name below ('quick' recommended)">
<input type="radio" id="bind_misc_save" name="key_action" value="save">
<label for="bind_misc_save">Save:</label>
</span>
<span title="Loads a save using the name below ('quick' recommended)">
<input type="radio" id="bind_misc_load" name="key_action" value="load">
<label for="bind_misc_load">Load:</label>
</span>
<span title="Both saves and Loads a save using the name below (for Any%)">
<input type="radio" id="bind_misc_saveload" name="key_action" value="saveload">
<label for="bind_misc_saveload">Save-load:</label>
</span>
<span>
<input type="text" id="bind_saveload_name">
</span>
<button id="reset_bind">Clear</button>
</div>
</div>
</div>
</div>
<div id="links">
<button id="gen_cfg">Generate</button>
<a href="https://github.com/p2sr/p2binder" target="_blank" class="fa-brands fa-github"></a>
<a href="https://discord.com/invite/hRwE4Zr" target="_blank" class="fa-brands fa-discord"></a>
</div>
</main>
</body>
<script src="keypanel.js"></script>
</html>