-
Notifications
You must be signed in to change notification settings - Fork 0
/
web1-normal.html
60 lines (60 loc) · 2.13 KB
/
web1-normal.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
<!DOCTYPE html>
<html>
<head>
<title>Web-Dev Task 1: Normal Mode</title>
<link rel="stylesheet" href="webdev1.css-normal.css">
</head>
<body>
<div class="score">
<p class="cur-score">Score: 0</p>
<p class="timer">Time remaining: 60</p>
<p class="high-score">High Score: 0</p>
</div>
<div class="out">
<div class="gridbox">
<div class="snakeHead"></div>
<div class="snakeBody"></div>
<div class="snakeTail"></div>
<div class="greenFood"></div>
<div class="blueFood"></div>
<div class="pinkFood"></div>
<div class="yellowFood"></div>
<div class="brownFood"></div>
</div>
</div>
<div>
<p class="colour">Order of colours:</p>
<div class="col-outer">
<div class="green-display"></div>
<div class="blue-display"></div>
<div class="pink-display"></div>
<div class="yellow-display"></div>
<div class="brown-display"></div>
</div>
</div>
<div class="time">
<button class="timerButton" onclick="
addTimer();
">Start</button>
</div>
<div class="up-button">
<button class="up" onclick="
moveSnakeU();
"><img src="up-button.png" class="img"></button>
</div>
<div class="left-right">
<button class="left" onclick="
moveSnakeL();
"><img src="left-button.png" class="img"></button>
<button class="right" onclick="
moveSnakeR();
"><img src="right-button.png" class="img"></button>
</div>
<div class="down-button">
<button class="down" onclick="
moveSnakeD();
"><img src="scroll-down.jpg" class="img"></button>
</div>
<script src="webdev1.js-normal.js"></script>
</body>
</html>