-
Notifications
You must be signed in to change notification settings - Fork 0
/
maze.html
48 lines (39 loc) · 1.5 KB
/
maze.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
<!DOCTYPE html>
<html>
<!--
The Maze is one the assignments I was able to complete on-time and correctly. At first I had to read it over and over
to understand the question. I have taken time some time on figuring out how to select the boundaries, I first managed to
write a jQuery selector which ($('div#start div#end')). however i find this method ackward and later switched to
$('div.boundary') selector. The tutorials on the W3 have helped me understand the assignment. This assignment took me about
1.5hrs. I have also taken time to comment the code! As usual you can see the assignment on my github
-->
<head>
<title>Maze!</title>
<!-- provided files; do not modify -->
<link href="maze.css" type="text/css" rel="stylesheet" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<!-- your code -->
<script src="maze.js" type="text/javascript"></script>
</head>
<body>
<h1>The Amazing Mouse Maze!</h1>
<h2 id="status">Click the "S" to begin.</h2>
<!-- This part of the page represents the maze -->
<div id="maze">
<div id="start">S</div>
<div class="boundary" id="boundary1"></div>
<div class="boundary"></div>
<div class="boundary"></div>
<div class="boundary"></div>
<div class="boundary"></div>
<div id="end">E</div>
</div>
<p>
The object of this game is to guide the mouse cursor through the start area and get to the end area. Be sure to avoid the walls:
</p>
<div class="boundary example"></div>
<p>
Good luck!
</p>
</body>
</html>