-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
40 lines (37 loc) · 1.07 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
<!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">
<title>Document</title>
<script src="snake.js"></script>
<style>
body {
background-color: darkslategray;
height: 100vh;
margin: 0;
}
canvas {
display: block;
margin: 0 auto;
}
.canvas_primary {
background-color: antiquewhite;
}
.container {
position: relative;
top: 45%;
transform: translateY(-50%);
}
</style>
</head>
<body>
<audio id="snake_apple-eaten" src="sounds/sfx_sounds_powerup6.wav"></audio>
<audio id="snake_crash" src="sounds/sfx_exp_cluster5.wav"></audio>
<div class="container">
<canvas id="secondaryCanvas" height="80px" width="400px"></canvas>
<canvas id="primaryCanvas" class="canvas_primary" height="400px" width="400px"></canvas>
</div>
</body>
</html>