-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnake.html
102 lines (82 loc) · 3.68 KB
/
snake.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-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Snake</title>
<!-- Reset -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
<!-- Materialize -->
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css'>
<!-- Material Icons -->
<link rel='stylesheet prefetch' href='https://fonts.googleapis.com/icon?family=Material+Icons'>
<!-- Custom Styles -->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/snake.css">
</head>
<body>
<header>
<nav class="pink darken-4" role="navigation">
<div class="nav-wrapper container"><a id="logo-container" href="/experiments/" class="brand-logo center">From The Lab</a>
<ul id="nav-mobile" class="side-nav">
<li class="nav-intro pink valign-wrapper"><a href="/experiments" class="nav-title center">A Collection of Experiments</a></li>
<li><a href="/experiments/listit"><i class="material-icons logo">format_list_numbered</i>List It</a></li>
<li><a href="/experiments/stashit"><i class="material-icons logo">bookmark_border</i>Stash It</a></li>
<li><a href="/experiments/convertit"><i class="material-icons logo">cached</i>Convert It</a></li>
<li><a href="/experiments/rps"><i class="material-icons logo">content_cut</i>Rock, Paper, Scissors</a></li>
<li><a href="/experiments/now"><i class="material-icons logo">all_inclusive</i>Now</a></li>
<li><a href="/experiments/snake"><i class="material-icons logo">gesture</i>Snake</a></li>
</ul>
<a href="#" data-activates="nav-mobile" class="button-collapse"><i class="material-icons">menu</i></a>
</div>
</nav>
</header>
<main>
<section>
<div class="section no-pad-bot" id="index-banner">
<div class="container">
<h1 class="header center blue-grey-text">Snake</h1>
<div class="row center">
<h5 class="header col s12 light">Use your arrow keys to move the snake. Collect the fruit and don't touch the edges!</h5>
</div>
</div>
</div>
</section>
<section>
<div class="container">
<div class="row">
<div id="snakeGame"></div>
</div>
</div>
</section>
</main>
<footer class="page-footer blue-grey">
<div class="container">
<div class="row">
<h5 class="white-text">About this Experiment</h5>
<p class="grey-text text-lighten-4">This neon hyperspeed interpretation of Classic Snake is built with <a class="blue-grey-text text-lighten-4" href="https://www.youtube.com/watch?v=uU5YPIvJ24Y">JavaScript</a>. Also, it's super quirky so your arrow keys move the canvas on the screen too! (Oops!)</p>
</div>
</div>
<div class="footer-copyright">
<div class="container">
Made with ❤ by <a class="blue-grey-text text-lighten-3" href="http://melaniemagdalena.com">Melanie E Magdalena</a>
</div>
</div>
</footer>
<!-- Load jQuery -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>
<!-- Load Materialize -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js'></script>
<!-- Init Convert.js -->
<script src="js/snake.js"></script>
<!-- Init Nav -->
<script>
(function($){
$(function(){
$('.button-collapse').sideNav();
}); // end of document ready
})(jQuery); // end of jQuery name space
</script>
</body>
</html>