-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
102 lines (98 loc) · 2.38 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Snake Game</title>
<link rel="stylesheet" href="style.css" />
<script src="./snake.js" defer></script>
</head>
<body>
<h2 id="score" style="width: 20%; color: rgb(250, 250, 250)">Score: 0</h2>
<span id="idSnake"></span>
<div id="idPlayArea"></div>
<table>
<tr>
<td colspan="4">
<input type="button" value="Start" id="idStart" onclick="start()" />
</td>
</tr>
<tr>
<td colspan="4">
<input
type="button"
value="Reset"
id="idReset"
onclick="gameover()"
/>
</td>
</tr>
<tr>
<td colspan="1">
<input
type="button"
value="Borderless"
class="borderClass"
onclick="border_func(0)"
/>
</td>
<td colspan="1">
<input
type="button"
value="Horizonal"
class="borderClass"
onclick="border_func(1)"
/>
</td>
<td colspan="1">
<input
type="button"
value="Vertical"
class="borderClass"
onclick="border_func(2)"
/>
</td>
<td colspan="1">
<input
type="button"
value="Full"
class="borderClass"
onclick="border_func(3)"
/>
</td>
</tr>
<tr>
<td colspan="1">
<input
type="button"
value="Easy"
class="difficultyButtons"
onclick="difficulty(0)"
disabled
/>
</td>
<td colspan="1">
<input
type="button"
value="Medium"
class="difficultyButtons"
onclick="difficulty(1)"
/>
</td>
<td colspan="1">
<input type="button" value="Hard""" class="difficultyButtons"
onclick="difficulty(2)" />
</td>
<td>
<input
type="button"
value="Ouroboros"
id="idOuroboros"
onclick="ouroborosSwitch() "
/>
</td>
</tr>
</table>
</body>
</html>