-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
91 lines (91 loc) · 4.36 KB
/
index.html
File metadata and controls
91 lines (91 loc) · 4.36 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Motor Control Client</title>
<link rel="stylesheet" href="./css/main.css" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<script src="./js/jquery-3.7.1.min.js"></script>
<script src="./js/settings.js"></script>
<script src="./js/state_manager.js"></script>
<script src="./js/keypad_logic.js"></script>
<script src="./js/api_logic.js"></script>
<script src="./js/signin_state.js"></script>
<link rel="manifest" href="./manifest.webmanifest" />
</head>
<body>
<div id="settings-button-container">
<button type="button" id="settings-button"></button>
</div>
<div id="keypad-container">
<input id="keypad-display" type="text" class="display" readonly>
<div class="keypad">
<button type="button" data-value="1" class="keypad-btn">1</button>
<button type="button" data-value="2" class="keypad-btn">2</button>
<button type="button" data-value="3" class="keypad-btn">3</button>
<button type="button" data-value="4" class="keypad-btn">4</button>
<button type="button" data-value="5" class="keypad-btn">5</button>
<button type="button" data-value="6" class="keypad-btn">6</button>
<button type="button" data-value="7" class="keypad-btn">7</button>
<button type="button" data-value="8" class="keypad-btn">8</button>
<button type="button" data-value="9" class="keypad-btn">9</button>
<button type="button" data-value="clr" class="keypad-btn">CLR</button>
<button type="button" data-value="0" class="keypad-btn">0</button>
<button type="button" data-value="ent" class="keypad-btn">ENTER</button>
</div>
<div class="keypad-after">
<p id="keypad-result-container"></p>
</div>
</div>
<div id="settings-container">
<form id="settings-form"></form>
<table>
<tr>
<td colspan="2"><label for="settings-form-host">Host with port</label></td>
<td colspan="5"><input form="settings-form" id="settings-form-host" name="host" placeholder="Unchanged" value="" type="text" /></td>
</tr>
<tr>
<td colspan="2">
<input form="settings-form" id="settings-form-host-type-http" type="radio" name="is_https" value="http" checked="" />
<label for="settings-form-host-type-http">HTTP</label>
</td>
<td colspan="3"></td>
<td colspan="2">
<input form="settings-form" id="settings-form-host-type-https" type="radio" name="is_https" value="https" />
<label for="settings-form-host-type-https">HTTPS</label>
</td>
</tr>
<tr>
<td colspan="3"><label for="settings-form-app-id">App ID</label></td>
<td colspan="4"><input form="settings-form" id="settings-form-app-id" name="app_id" value="" placeholder="Unchanged" type="text" /></td>
</tr>
<tr>
<td colspan="3"><label for="settings-form-app-hash">App Hash</label></td>
<td colspan="4"><input form="settings-form" id="settings-form-app-hash" name="app_hash" value="" placeholder="Unchanged" type="text" /></td>
</tr>
<tr>
<td colspan="3"><button type="submit" form="settings-form">Submit</button></td>
<td colspan="1"></td>
<td colspan="3"><button type="button" id="test-settings">Test</button></td>
</tr>
<tr>
<td colspan="7"><p id="settings-form-result-container"></p></td>
</tr>
</table>
</div>
<div id="signedin_main">
<div id="signedin_table">
<table>
<tr>
<td>Name: <span id="signedin_username"></span></td>
<td>Time left: <span id="signedin_time_left"></span></td>
<td><button type="button" id="signedin_log_out">Log out</button></td>
</tr>
<tr>
<td colspan="3" id="signedin_motors_container"></td>
</tr>
</table>
</div>
</div>
</body>
</html>