forked from patorjk/JavaScript-Snake
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·55 lines (48 loc) · 1.94 KB
/
index.html
File metadata and controls
executable file
·55 lines (48 loc) · 1.94 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
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Retro Snake</title>
<link rel=stylesheet id="style" type="text/css" href="./css/style.css" />
<link rel="shortcut icon" href="css/images/favicon.png" />
<script type="text/javascript" src="https://hammerjs.github.io/dist/hammer.min.js"></script>
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-102655276-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-102655276-2');
</script>
</head>
<body>
<div class="snake-toolbar">
<span>Mode:</span>
<select id="selectMode">
<option value="100">Easy</option>
<option value="75" selected>Medium</option>
<option value="50">Hard</option>
</select>
</div>
<img id="snakehead" src="head.svg" width="18" height="18" style="position: absolute; top: 210px; left: 196px;"/>
<!--
<h2>Select which mode you would like to play in.</h2>
<button id="Easy">Easy</button><br />
<button id="Medium">Medium</button><br />
<button id="Difficult">Difficult</button>
<button id="high-score">Get your current high score for this game.</button>
-->
<div id="mode-wrapper" style="display: inline; width: auto;">
</div>
<div id="game-area" tabindex="0">
</div>
<div class="snake-footer">
<a href='https://twitter.com/gherget' class="flex items-center filter grayscale">By <img src="avatar.png" width="30"/></a>
<a href='https://github.com/herget/JavaScript-Snake'>source code</a>
</div>
</div>
<script type="text/javascript" src="./js/snake.js"></script>
<script type="text/javascript" src="./js/init.js"></script>
</body>
</html>