-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 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
<html>
<head>
<style type="text/css">
body {
display: flex;
margin: 0;
}
.game {
min-width: 640px;
position: relative;
flex-grow: 1;
}
canvas {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.sidebar {
width: 250px;
padding: 20px;
background: #f2f3f3;
display: flex;
flex-direction: column;
flex-grow: -1;
}
h1 {
font-size: 72px;
text-align: center;
margin-bottom: 0;
}
p {
text-align: center;
}
#scoreboard {
margin-top: 100px;
display: flex;
flex-direction: column-reverse;
flex-grow: 1;
align-items: flex-start;
justify-content: flex-end;
}
#scoreboard .me {
font-weight: bold;
}
#scoreboard .dead {
text-decoration: line-through;
}
button {
height: 50px;
background: linear-gradient();
}
</style>
</head>
<body>
<div class="game">
<canvas id="grid" width="640" height="640"></canvas>
</div>
<div class="sidebar">
<h1>Trake</h1>
<p><strong>A 3110 project by</strong><br>
Alexander Zielenski<br>
Thomas Wong<br>
Ilan Filondz<br>
Eric Morris</p>
<ul id="scoreboard"></ul>
<button id="start" type="button" value="Start Game" onclick="startGame();">Start Game</button>
</div>
<script src="https://cdn.socket.io/socket.io-1.2.0.js"></script>
<script type="text/javascript" src="trake.js"></script>
</body>
</html>