-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
63 lines (60 loc) · 1.77 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel=stylesheet href="https://s3-us-west-2.amazonaws.com/colors-css/2.2.0/colors.min.css">
<style>
body {
background: url("https://i.imgur.com/W69qRAY.gif");
background-repeat: no-repeat;
background-size: cover;
display: flex;
color: #fff;
font-family: sans-serif;
font-size: 2em;
text-align: center;
height: 100vh:
}
.player {
flex: 1 1 auto;
stroke: aqua;
}
.player.local canvas {
border-color: #fff;
height: 90vh;
stroke: aqua;
opacity: 0.9;
}
canvas {
border: solid .2em #707070;
height: 40vh;
stroke: aqua;
opacity: 0.9;
}
.tetris {
stroke: aqua;
}
</style>
</body>
<title>Tetris</title>
</head>
<body>
<audio id="myAudio">
<source src="client/audio/song.mp3" type="audio/mpeg">.
</audio>
<template id="player-template">
<div class="player">
<div class="score"></div>
<canvas class="tetris" width="240" height="400"></canvas>
</div>
</template>
<script src="../client/connection-manager.js"></script>
<script src="../client/tetris-manager.js"></script>
<script src="../client/arena.js"></script>
<script src="../client/events.js"></script>
<script src="../client/player.js"></script>
<script src="../client/tetris.js"></script>
<script src="../client/main.js"></script>
</html>