-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
80 lines (55 loc) · 1.25 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Lubelskie: Liga robotyki</title>
<link rel="stylesheet" href="stylowa.css" type="text/css"/>
</head>
<body>
<script>
var cubesBlue = NetworkTables.getValue('/SmartDashboard/cubesBlueTeam');
var time = document.getElementById('timer').value;
var pointsB = parseInt(NetworkTables.getValue('/SmartDashboard/secondPointsBlueTeam'));
function bluePoints(){
if(cubesBlue > 0 && time !== "0:00"){
pointsB++;
NetworkTables.putValue('/SmartDashboard/secondPointsBlueTeam');
}
}
</script>
<div id="Con">
<div id="Allies">
<div id="Team1">
Team Red
</div>
<div id="Team2">
Team Red
</div>
</div>
<div id="Middle">
<div id="time"><span id="timer">
3:00
</span></div>
<div id="PointsRed">
0
</div>
<div id="PointsBlue">
0
</div>
</div>
<div id="Allies">
<div id="Team3">
Team Blue
</div>
<div id="Team4">
Team Blue
</div>
</div>
<div id="FloatEnd"></div>
</div>
<div id="footer"></div>
<script src="jquery-3.3.1.js"></script>
<script src="/networktables/networktables.js"></script>
<script src="ui.js"></script>
</body>
</html>