-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
95 lines (88 loc) · 3.71 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
<!DOCTYPE html>
<html>
<head>
<title>Tackle Sensor Configurator</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="icon" href="images/monitor.png" type="image/png">
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<div class="app-container">
<!-- Always Visible Section -->
<div class="top-section">
<h1>Tackle Sensor Configurator</h1>
<button class="connect-button" id="connect-button">Connect</button>
</div>
<div class="flex-container">
<div class="left-content">
<!-- Configuration Content -->
<div id="configure">
<!-- Color Control -->
<div class="color-control">
<div class="color-option">
<label for="homeColorPicker">Select Home Jersey Color:</label>
<input type="color" id="homeColorPicker" value="#00FF00">
<button id="setHomeColorButton">Send</button>
</div>
<!-- Fade LEDs Control -->
<div class="fade-control">
<label for="fadeLEDs">Fade LEDs when Ineligible:</label>
<button id="enableFadeButton" class="fade-button">Enable</button>
<button id="disableFadeButton" class="fade-button">Disable</button>
</div>
</div>
</div>
<!-- Monitor Content -->
<div id="monitor">
<h3>Device Status:</h3>
<table>
<tr>
<td><strong>Version:</strong></td>
<td id="version">Unknown</td>
</tr>
<tr>
<td><strong>Acceleration X:</strong></td>
<td id="accelX">Unknown</td>
</tr>
<tr>
<td><strong>Acceleration Y:</strong></td>
<td id="accelY">Unknown</td>
</tr>
<tr>
<td><strong>Acceleration Z:</strong></td>
<td id="accelZ">Unknown</td>
</tr>
<tr>
<td><strong>Output Tackled Status:</strong></td>
<td id="tackledStatus">Unknown</td>
</tr>
<tr>
<td><strong>Input Home/Away:</strong></td>
<td id="homeAwayStatus">Unknown</td>
</tr>
<tr>
<td><strong>Input Eligible/Ineligible:</strong></td>
<td id="eligibilityStatus">Unknown</td>
</tr>
</table>
</div>
</div>
<div class="right-content">
<!-- Chart container -->
<div class="chart-container" style="position: relative; height:300px; width:100%;">
<canvas id="accelChart"></canvas>
</div>
<button id="clearChart">Clear Plot</button>
</div>
</div>
<!-- Log Section -->
<div class="log-container">
<div class="log-header">
<h2>Log</h2>
</div>
<div class="log" id="log"></div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>