-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (40 loc) · 1.42 KB
/
index.html
File metadata and controls
43 lines (40 loc) · 1.42 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Snake</title>
<link rel="stylesheet" href="snake.css">
<link rel="apple-touch-icon" sizes="180x180" href="./favicon//apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="./favicon//favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="./favicon/favicon-16x16.png">
<link rel="manifest" href="./favicon//site.webmanifest">
<script src="snake.js"></script>
</head>
<body>
<div class="container">
<div class="left-column">
<h1>Snake</h1>
<div class="scores">
<h2 id="score">Score : 0</h2>
<h3 id="highscore">Highscore : 0</h3>
</div>
<h1 id="gameOver"></h1>
<hr>
<button id="reset-button">Reset Game</button>
<div class="options-dropdown">
<button id="options">Options</button>
<div class="options-content" id="options-content">
<label>
<input type="checkbox" id="walls" name="hasWalls"> Enable walls
</label>
<br>
</div>
</div>
</div>
<div class="right-column">
<canvas id="board"></canvas>
</div>
</div>
</body>
</html>