-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.html
78 lines (78 loc) · 2.71 KB
/
config.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script src="static/jquery.min.js"></script>
<link rel="stylesheet" href="static/config.css">
<link rel="shortcut icon" type="image/x-icon" href="static/title_logo.png"/>
<title>HES 2.0 Config</title>
</head>
<body class="bckg-stripes">
<div class="header">
<h2>HACKER ENTERTAINMENT SYSTEM CONFIG 2.0</h2>
<h3>Choose a gamepad to configure</h3>
<select id="selector"></select>
</div>
<div>
<img id="image" src="static/hes.png"></img>
</div>
<div class="input-div">
<form action="/login" method="post">
{{range $index, $results := .}}
<script type="text/javascript">
$('#selector').append($('<option>', {
value: {{ $index }},
text: '{{ $index }}'
}));
</script>
<table id="{{ $index }}" class="mytable" align="center">
<tr>
</tr>
<tr>
<td><p>Left Key</td>
<td>
<input id="{{ $index }}Left" class="Left" type="text" name="Left" value="{{.Left}}"></input>
</td>
<td><p>Up Key</td>
<td>
<input id="{{ $index }}Up" class="Up" type="text" name="Up" value="{{.Up}}"></input>
<td><p>Select Key</td>
<td>
<input id="{{ $index }}Select" class="Select" type="text" name="Select" value="{{.Select}}"></input>
</td>
</td>
<td><p>A Key</td>
<td>
<input id="{{ $index }}A" class="A" type="text" name="A" value="{{.A}}"></input>
</td>
</tr>
<tr>
<td><p>Right Key</td>
<td>
<input id="{{ $index }}Right" class="Right" type="text" name="Right" value="{{.Right}}"></input>
</td>
<td><p>Down Key</td>
<td>
<input id="{{ $index }}Down" class="Down" type="text" name="Down" value="{{.Down}}"></input>
</td>
<td><p>Start Key</td>
<td>
<input id="{{ $index }}Start" class="Start" type="text" name="Start" value="{{.Start}}"></input>
</td>
<td><p>B Key</td>
<td>
<input id="{{ $index }}B" class="B" type="text" name="B" value="{{.B}}"></input>
</td>
</tr>
</table>
{{end}}
<br>
<hr>
<br>
<input class="myButton" type="submit" value="SUBMIT">
<br>
</form>
</div>
</body>
<script src="static/config.js"></script>
</html>