-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (34 loc) · 935 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>Snake</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<main>
<header>
<h1>Snake</h1>
</header>
<div id="scores-div">
<select id="levels-picklist" name="levels" >
<option value="easy" selected>Easy</option>
<option value="hard">Hard</option>
</select>
<p id="score">score: 0</p>
<p id="highscore">highscore: 0</p>
</div>
<canvas class="board-defaults"></canvas>
<div>
<p id="highscore-message"></p>
<p id="game-over" class="hide-element">Game over!<br>Press space to restart.</p>
</div>
</main>
<footer>
<a href="https://github.com/siddheshranade/snake" target="_blank" id="footer-link">
<img src="media/github.png" alt="Github Logo" id="github-image">
<p>siddheshranade</p>
</a>
</footer>
<script src="snake.js"></script>
</body>
</html>