forked from frepet/Robot-Arm-Controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
32 lines (31 loc) · 1.19 KB
/
index.htm
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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<link href="style.css" rel="stylesheet"/>
<title>Robot Arm Controller</title>
</head>
<body>
<div class="card" id="menu">
<input onclick="connect();" type="button" value="Connect"/>
<input id="file-selector" type="file" accept="application/json" style="display: none"/>
<button onclick="document.getElementById('file-selector').click();">Load</button>
<input onclick="save();" type="button" value="Save"/>
<input onclick="addServo();" type="button" value="Add Servo"/>
<input onclick="addMacro();" type="button" value="Add Macro"/>
</div>
<div class="card-container">
<div class="card" id="gamepad">
<h1 id="gamepad-header">Press a button to init controller</h1>
<div id="gamepad-buttons"></div>
<div id="gamepad-axes"></div>
</div>
</div>
<div class="card-container" id="servos"></div>
<div class="card-container" id="macros"></div>
<div class="card" id="logger"></div>
</body>
<script src="src/view.js" type="text/javascript"></script>
<script src="src/model.js" type="text/javascript"></script>
<script src="src/robot-arm-controller.js" type="text/javascript"></script>
</html>