-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
241 lines (188 loc) · 10.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="google-site-verification" content="S2RV7EmZkENn6i5TQ8pJGkv8PIdCsYUUcgT1ibmeFHw" />
<title>BlueDashProⅡ</title>
<link rel="shortcut icon" type="image/png" href="branding/Favicon.png">
<!-- Vendor Libraries -->
<link rel="stylesheet" href="vendor/bootstrap/bootstrap.min.css">
<!-- Frontend -->
<link rel="stylesheet" href="frontend/bootmod.css">
<link rel="stylesheet" href="frontend/pagenav.css">
<link rel="stylesheet" href="frontend/autohide.css">
</head>
<body class="auto-cursor bg-super-dark text-light noselect">
<!-- Navbar -->
<nav class="auto-hide navbar navbar-expand navbar-dark bg-primary shadow-sm border-bottom border-dark">
<div class="collapse navbar-collapse">
<div class="brand">
<img class="p-0 my-n1 mr-1" src="branding/Logo.png" height="32">
</div>
<div class="navbar-nav">
<a class="nav-item nav-link nav-page active" href="#dashboard" data-page="dashboard">Dashboard</a>
<a class="nav-item nav-link nav-page" href="#settings" data-page="settings">Settings</a>
<a class="nav-item nav-link nav-page" href="#about" data-page="about">About</a>
</div>
</div>
</nav>
<!-- Dashboard -->
<div class="container-fluid page active px-5" data-page="dashboard">
<!-- Meta -->
<div class="row mt-n5 pt-2 lead text-muted auto-hide hide-invert">
<!-- Copyright -->
<div class="col-6 text-center text-muted">
©2020 Benjamin Sykes, Team 5980
</div>
<!-- Last Update -->
<div class="col-6 text-center text-muted">
Last updated <span id="lastupdated-dash">never</span> (<span id="updatecount">0</span> time<span id="updatecount-suffix">s</span>).
</div>
</div>
<!-- Match Information -->
<div class="row my-3 px-5">
<!-- Last Match -->
<div class="col-6 px-5 ml-n2 mr-2">
<!-- Title -->
<h1 class="text-center display-2 py-5">Last Match</h1>
<!-- Metadata -->
<label class="mt-0 mb-2 lead display-4">
<span id="last-type"></span>#<span id="last-number">?</span>
<span class="display-6">(<span id="last-time">Unknown Time</span>)</span>
</label>
<!-- Alliances -->
<table class="table table-striped table-dark table-borderless rounded shadow-sm">
<thead class="display-3 text-center thead-dark rounded-top">
<tr class="rounded-top">
<th class="font-weight-light bg-danger rounded-top-left" scope="col">Red</th>
<th class="font-weight-light bg-primary rounded-top-right" scope="col">Blue</th>
</tr>
</thead>
<tbody class="display-4 text-center rounded-bottom">
<tr>
<td class="py-3" id="last-red-1">​</td>
<td class="py-3" id="last-blue-1">​</td>
</tr>
<tr>
<td class="py-3" id="last-red-2">​</td>
<td class="py-3" id="last-blue-2">​</td>
</tr>
<tr class="rounded-bottom">
<td class="py-3 rounded-bottom-left" id="last-red-3">​</td>
<td class="py-3 rounded-bottom-right" id="last-blue-3">​</td>
</tr>
</tbody>
</table>
</div>
<!-- Next Match -->
<div class="col-6 px-5 ml-2 mr-n2">
<!-- Title -->
<h1 class="text-center display-2 py-5">Next Match</h1>
<!-- Metadata -->
<label class="mt-0 mb-2 lead display-4">
<span id="next-type"></span>#<span id="next-number">?</span>
<span class="display-6">(<span id="next-time">Unknown Time</span>)</span>
</label>
<!-- Alliances -->
<table class="table table-striped table-dark table-borderless rounded shadow-sm">
<thead class="display-3 text-center thead-dark rounded-top">
<tr class="rounded-top">
<th class="font-weight-light bg-danger rounded-top-left" scope="col">Red</th>
<th class="font-weight-light bg-primary rounded-top-right" scope="col">Blue</th>
</tr>
</thead>
<tbody class="display-4 text-center rounded-bottom">
<tr>
<td class="py-3" id="next-red-1">​</td>
<td class="py-3" id="next-blue-1">​</td>
</tr>
<tr>
<td class="py-3" id="next-red-2">​</td>
<td class="py-3" id="next-blue-2">​</td>
</tr>
<tr class="rounded-bottom">
<td class="py-3 rounded-bottom-left" id="next-red-3">​</td>
<td class="py-3 rounded-bottom-right" id="next-blue-3">​</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Scoring & Rank -->
<div class="row px-5">
<!-- Last Match Score -->
<div class="col-6 px-5 ml-n2 mr-1 mt-n3">
<table class="table table-dark table-borderless bg-super-dark rounded ml-n2">
<tbody class="display-3 text-center rounded">
<tr class="rounded">
<td class="rounded-left text-danger" id="last-red-score">​</td>
<td class="rounded-right text-primary" id="last-blue-score">​</td>
</tr>
</body>
</table>
</div>
<!-- Rank -->
<div class="col-6 px-5 mr-n2 ml-1 display-4 text-center">
<label class="mt-2">Rank: </label>
<span id="rank">Unknown</span>
</div>
</div>
</div>
<!-- Settings -->
<div class="container page px-5 text-center" data-page="settings">
<!-- Last Modified -->
<p class="lead pt-2">Last modified <span id="lastmodified-field">never</span>.</p>
<!-- API Key -->
<label class="mt-5">API Key</label><br>
<input type="text" autocomplete="off" class="form-control bg-dark border-dark text-light autoshow-password" id="apikey-field" style="max-width: 25rem; margin-left: auto; margin-right: auto;">
<!-- Team Number -->
<label class="mt-5">Team Number</label><br>
<input type="number" autocomplete="off" class="form-control bg-dark border-dark text-light autohide-counter" id="teamnumber-field" style="max-width: 25rem; margin-left: auto; margin-right: auto;">
<!-- Team Number -->
<label class="mt-5">Event Key</label><br>
<input type="text" autocomplete="off" class="form-control bg-dark border-dark text-light" id="eventkey-field" style="max-width: 25rem; margin-left: auto; margin-right: auto;">
<!-- Save Button -->
<button class="mt-5 py-2 btn btn-dark" style="min-width: 10rem;" onclick="saveSettings();">Save</button><br>
<label class="mt-0 font-weight-bold text-muted" id="status-field"></label>
</div>
<!-- About -->
<div class="container page px-5 text-center" data-page="about">
<!-- Title -->
<div class="my-5 pb-4">
<h1 class="display-3">BlueDashProⅡ</h1>
<p>© 2020 - <a class="text-light link-text" href="https://github.com/sykeben">Benjamin Sykes</a></p>
</div>
<!-- Divider -->
<hr class="border-dark mx-5 px-5">
<!-- Library List -->
<div class="my-5 py-4">
<h1 class="font-weight-lighter mb-2">Libraries Used</h1>
<div class="lead">
<a href="https://jquery.com" class="text-light mx-2">jQuery</a>
<a href="https://popper.js.org" class="text-light mx-2">PopperJS</a>
<a href="https://getbootstrap.com" class="text-light mx-2">Bootstrap</a>
</div>
</div>
<!-- Divider -->
<hr class="border-dark mx-5 px-5">
<!-- API Credit -->
<div class="my-5 py-4">
<h1 class="font-weight-lighter mb-2">The Blue Alliance API</h1>
<div class="lead">
Thank you to TBA for creating their <a href="https://www.thebluealliance.com/apidocs/v3" class="text-light">v3 API</a>.
</div>
</div>
</div>
<!-- Vendor Libraries -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/popper/popper.min.js"></script>
<script src="vendor/bootstrap/bootstrap.min.js"></script>
<!-- Backend -->
<script src="backend/bootmod.js"></script>
<script src="backend/bluelib.js"></script>
<script src="backend/dashboard.js"></script>
<script src="backend/pagenav.js"></script>
<script src="backend/autohide.js"></script>
<script src="backend/settings.js"></script>
</body>
</html>