This repository has been archived by the owner on Jun 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
79 lines (72 loc) · 1.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
<style>
html, body {
height: 100%;
margin: 0;
}
body {
font-size: 1.2em;
font-family: Arial,Helvetica Neue,Helvetica,sans-serif;
display: flex;
}
#canvas {
flex: 1;
position: relative;
text-align: center;
}
#canvas canvas {
margin: 1em;
border: 1px solid #CCC;
}
table {
border-collapse: collapse;
}
td {
padding: 0.5em;
}
.player.winner {
background-color: #4fe019;
}
.team {
display: inline-block;
width: 1em;
height: 1em;
border-radius: 0.5em;
}
#congrats {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: table;
background-color: rgba(0,0,0,0.7);
color: white;
text-align: center;
font-size: 8em;
}
.middle {
display: table-cell;
vertical-align: middle;
}
</style>
</head>
<body>
<div id="canvas">
<canvas id="main"></canvas>
<br>
<button id="dec-speed">Speed -</button>
<button id="play-button">▶</button>
<button id="inc-speed">Speed +</button>
</div>
<div id="meta">
<div id="players-info"></div>
</div>
<script src="./build/application.js"></script>
</body>
</html>