-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
183 lines (170 loc) · 7.32 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html lang='en'>
<head>
<title>aMaze</title>
<link rel='icon' href='./global/images/icon.svg' type='image/ico'/>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<link rel='stylesheet' href='./dist/bundle.css'>
</head>
<body>
<div class='container'>
<div class='nav-head'>
<div>aMaze!</div>
<div>Number of Steps</div>
<div id='count'>0</div>
</div>
<div class='nav-options'>
<a type='button' class='nav-item' href='#new'>New</a>
<a type='button' class='nav-item' id='reset'>Reset</a>
<a type='button' class='nav-item' href='#solve'>Solve</a>
<a type='button' class='nav-item' href='#info' id='tut'>Info</a>
</div>
<div class='maze'>
<table id='maze'></table>
</div>
</div>
<div id='info' class='overlay'>
<div class='popup'>
<h2>Welcome to aMaze!</h2>
<a class='close' href='#'>×</a>
<div class='content'>
<div class='pop-options inst'>
<p><h2>A web app where you can create, play and solve mazes.</h2></p>
<h1>Instructions:</h1>
<ul>
<li>Use arrow keys to move in the maze.</li>
<li>The step counter will keep track of the number of steps taken.</li>
</ul>
</div>
</div>
<div class='pop-footer'>
<a style='color:white;'>< Prev</a>
<a>1/4</a>
<a type='button' href='#inst'>Next ></a>
</div>
</div>
</div>
<div id='inst' class='overlay'>
<div class='popup'>
<h2>Interface</h2>
<a class='close' href='#'>×</a>
<div class='content'>
<div class='pop-options inst'>
<table id='sample_button'>
<tr>
<td><div class='pop-item'>New</div></td>
<td>Algorithm to create a maze.</td>
</tr>
<tr>
<td><div class='pop-item'>Reset</div></td>
<td>Reset the maze.</td>
</tr>
<tr>
<td><div class='pop-item'>Solve</div></td>
<td>Algorithm to solve a maze.</td>
</tr>
</table>
</div>
</div>
<div class='pop-footer'>
<a type='button' href='#info'>< Prev</a>
<a>2/4</a>
<a type='button' href='#leg'>Next ></a>
</div>
</div>
</div>
<div id='leg' class='overlay'>
<div class='popup'>
<h2>Legend</h2>
<a class='close' href='#'>×</a>
<div class='content'>
<div class='pop-options inst'>
<table>
<tr>
<td id='unvisited'></td>
<td>Unvisited block</td>
</tr>
<tr>
<td id='current'><span class='player'></span></td>
<td>Current block</td>
</tr>
<tr>
<td id='visited'></td>
<td>Visited block</td>
</tr>
<tr>
<td id='explored'></td>
<td>Explored block</td>
</tr>
<tr>
<td id='target'></td>
<td>Target block</td>
</tr>
</table>
</div>
</div>
<div class='pop-footer'>
<a type='button' href='#inst'>< Prev</a>
<a>3/4</a>
<a type='button' href='#end'>Next ></a>
</div>
</div>
</div>
<div id='end' class='overlay'>
<div class='popup'>
<h2>Have Fun!</h2>
<a class='close' href='#'>×</a>
<div class='content'>
<div class='pop-options inst'>
<span>For source code of this project visit my <a href='https://github.com/dinesh-GDK/aMaze' target='_blank'>github</a>.</span>
</div>
</div>
<div class='pop-footer'>
<a type='button' href='#leg'>< Prev</a>
<a>4/4</a>
<a type='button' href='#'>Exit ></a>
</div>
</div>
</div>
<div id='new' class='overlay'>
<div class='popup'>
<h2>Choose an algorithm to create the maze</h2>
<a class='close' href='#'>×</a>
<div class='content'>
<div class='pop-options'>
<a type='button' class='pop-item' href='#' id='recurse'>Recursive Division</a>
<a type='button' class='pop-item' href='#' id='kruskal'>Kruskal's Algorithm</a>
<a type='button' class='pop-item' href='#' id='prim'>Prim's Algorithm</a>
</div>
</div>
</div>
</div>
<div id='solve' class='overlay'>
<div class='popup'>
<h2>Choose an algorithm to solve the maze</h2>
<a class='close' href='#'>×</a>
<div class='content'>
<div class='pop-options'>
<a type='button' class='pop-item' href='#' id='dfs'>Depth-First Search</a>
<a type='button' class='pop-item' href='#' id='bfs'>Breadth-First Search</a>
<a type='button' class='pop-item' href='#' id='dijkstra'>Dijkstra's Algorithm</a>
<a type='button' class='pop-item' href='#' id='astar'>A* Search</a>
</div>
</div>
</div>
</div>
<a type='hidden' id='tReach' href='#reachMsg'></a>
<div id='reachMsg' class='overlay'>
<div class='popup'>
<h2>Congratulations!</h2>
<a class='close' href='#'>×</a>
<div class='content'>
<div class='pop-options'>
<a type='button' class='pop-item' href='#'>Maze was successfully solved</a>
</div>
</div>
</div>
</div>
<script src='./dist/bundle.js' defer></script>
</body>
</html>