This repository has been archived by the owner on Aug 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scoreList.html
95 lines (85 loc) · 2.93 KB
/
scoreList.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 lang="en">
<head>
<meta charset="UTF-8">
<title>Score counter</title>
<link rel="stylesheet" href="main.css"/>
<link rel="stylesheet" href="shapes.css"/>
<link rel="stylesheet" href="header.css"/>
<link rel="stylesheet" href="scoreList.css"/>
</head>
<body class="" onload="showTitle()">
<div class="container hcenter-contents header">
<div class="trapezoid left"></div>
<div class="header-title">Scores</div>
<div class="trapezoid right"></div>
</div>
<div class="container hcenter-contents vcenter-contents scoreList-container">
<div class="scoreList-wrapper">
<div class="scoreList-title">
<div class="scoreList-title-text">OHG</div>
</div>
<div class="scoreList-title">
<div class="scoreList-title-text">ABIs</div>
</div>
<div class="scoreList">
<table style="width:100%; text-align: center" id="table">
<tr>
<td>Gerätebrennball</td>
<td id="ge_ohg">–</td>
<td id="ge_abi">–</td>
</tr>
<tr>
<td>Volleyball</td>
<td id="vo_ohg">–</td>
<td id="vo_abi">-</td>
</tr>
<tr>
<td>Fußball</td>
<td id="fu_ohg">–</td>
<td id="fu_abi">–</td>
</tr>
</table>
</div>
</div>
</div>
<script>
function showTitle() {
document.body.className = "header-shown";
updateRows("table", "");
setTimeout(function () {
showTable();
}, 1000);
}
function showTable() {
document.body.className = "shown header-shown";
setTimeout(function () {
updateRows("table", "shown");
}, 900);
}
function hide() {
if (document.body.className.indexOf("shown") === 0) {
document.body.className = "hidden header-hidden";
} else {
document.body.className = "header-hidden";
}
updateRows("table", "");
}
function updateRows(id, newProp) {
var table = document.getElementById(id);
var timeout = 0;
for (var i = 0, row; row = table.rows[i]; i++) {
timeout += 75;
setTimeout(function (c) {
c.className = newProp;
}, timeout, row);
}
}
// window.play = play;
// window.invoke = invoke;
// window.next = next;
// window.update = function (a) { if (a === "invoke") invoke(); };
</script>
<script src="websocket.js"></script>
</body>
</html>