-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
272 lines (172 loc) · 7.38 KB
/
index.html
File metadata and controls
272 lines (172 loc) · 7.38 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
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Algorithm</title>
<link rel="icon" href="./Public/Design 1.png" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="style.css" />
<script src="libraries/p5.min.js"></script>
<script src="libraries/p5.sound.min.js"></script>
<script src="libraries/quicksettings.js"></script>
<script src="libraries/p5.gui.js"></script>
</head>
<body>
<div id="Header">
<div class="menu">
<h1><a href="/">Algorithm Visualizer</a></h1>
<div id="algo" class="hg">
<p >Select Algorithm</p>
<div>
<svg
xmlns="http://www.w3.org/2000/svg"
height="48"
viewBox="0 -960 960 960"
width="48"
>
<path d="M480-360 280-559h400L480-360Z" />
</svg>
</div>
</div>
<div id="sort" class="hg ">
<p >Sorting Algorithms</p>
<div>
<svg
xmlns="http://www.w3.org/2000/svg"
height="48"
viewBox="0 -960 960 960"
width="48"
>
<path d="M480-360 280-559h400L480-360Z" />
</svg>
</div>
</div>
<div id="maze" class="hg ">
<p >Create Maze Pattern</p>
<div>
<svg
xmlns="http://www.w3.org/2000/svg"
height="48"
viewBox="0 -960 960 960"
width="48"
>
<path d="M480-360 280-559h400L480-360Z" />
</svg>
</div>
</div>
<div id="vsb" class="vsc ">
<p >Visualize!</p>
<div>
<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 -960 960 960" width="48"><path d="M481-29 346-160H160v-186L26-480l134-134v-186h186l135-134 133 134h186v186l134 134-134 134v186H614L481-29Zm0-84 107.917-107H740v-151l109-109-109-109v-151H589L481-849 371-740H220v151L111-480l109 109v151h150l111 107Zm-1-368Zm0 256 75.857-75.436H660V-404l76-76-75.899-75.899v-104.202H555.899L480-736l-75.9 75.899H299.9v104.202L224-480l76 75.857V-300h102l78 75Z"/></svg>
</div>
</div>
<div id="clr" class="hg ">
<p >Clear Path</p>
<div>
<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 -960 960 960" width="48"><path d="M360-200q-22 0-40-11.5T289-241L120-480l169-239q13-18 31-29.5t40-11.5h420q24.75 0 42.375 17.625T840-700v440q0 24.75-17.625 42.375T780-200H360Zm420-60v-440 440Zm-431 0h431v-440H349L195-480l154 220Zm99-66 112-112 112 112 43-43-113-111 111-111-43-43-110 112-112-112-43 43 113 111-113 111 43 43Z"/></svg>
</div>
</div>
</div>
<div id="Hero">
<div class="specs">
<div class="spec">
<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 -960 960 960" width="48"><path d="m360-285 195-195-195-195-195 195 195 195Zm0 85L80-480l280-280 250 250h270v60H610L360-200Zm0-280Z"/></svg>
<p>Start Icon</p>
</div>
<div class="spec">
<svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 -960 960 960" width="48"><path d="M200-120v-680h343l19 86h238v370H544l-18.933-85H260v309h-60Zm300-452Zm95 168h145v-250H511l-19-86H260v251h316l19 85Z"/></svg>
<p>Goal Icon</p>
</div>
<div class="spec">
<!-- <svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 -960 960 960" width="48"><path d="M200-120v-680h343l19 86h238v370H544l-18.933-85H260v309h-60Zm300-452Zm95 168h145v-250H511l-19-86H260v251h316l19 85Z"/></svg> -->
<div id="wall">
</div>
<p>Wall Node</p>
</div>
<div class="spec">
<!-- <svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 -960 960 960" width="48"><path d="M200-120v-680h343l19 86h238v370H544l-18.933-85H260v309h-60Zm300-452Zm95 168h145v-250H511l-19-86H260v251h316l19 85Z"/></svg> -->
<div id="Unvisited">
</div>
<p>Unvisited Node</p>
</div>
<div class="spec">
<!-- <svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 -960 960 960" width="48"><path d="M200-120v-680h343l19 86h238v370H544l-18.933-85H260v309h-60Zm300-452Zm95 168h145v-250H511l-19-86H260v251h316l19 85Z"/></svg> -->
<div id="visited1">
</div>
<div id="visited2">
</div>
<div id="visited3">
</div>
<p>Visited Node</p>
</div>
<div class="spec">
<!-- <svg xmlns="http://www.w3.org/2000/svg" height="48" viewBox="0 -960 960 960" width="48"><path d="M200-120v-680h343l19 86h238v370H544l-18.933-85H260v309h-60Zm300-452Zm95 168h145v-250H511l-19-86H260v251h316l19 85Z"/></svg> -->
<div id="Shortest">
</div>
<p>Shortest Path</p>
</div>
</div>
</div>
<div id="HeroText">
<p id="HeroTexts" class="beautify">Please Select An Algorithm To Start</p>
</div>
<div id="options" class="hidden" >
<ul id="list" class="hidden">
<li class="slcalgo">Depth-first search</li>
<li class="slcalgo">Breath-first search</li>
<li class="slcalgo">DIJKSTRA's Algorithm</li>
<li class="slcalgo">A* star Algorithm</li>
<li class="slcalgo">BackTracking Algorithm</li>
</ul>
</div>
<!-- activeOption2 -->
<div id="options2" class="hidden" >
<ul id="list2" class="hidden">
<li>Insertion Sort</li>
<li>Merge Sort</li>
<li>Quick Sort</li>
<li>Bubble Sort </li>
<li>Bucket Sort </li>
</ul>
</div>
<!-- activeOption3 -->
<div id="options3" class="hidden" >
<ul id="list3" class="hidden">
<li class="mz">Generate Random maze</li>
<li class="mz">Recurcive Horizontal</li>
<li class="mz">Recurcive Vertical</li>
<li class="mz">Simple Maze For Fun </li>
<li class="mz">Stair Case Pattern </li>
</ul>
</div>
<!-- Modal Sections -->
<!-- class="hide" -->
<div id="modal" class="modal">
<div id="modal-content">
<div id="modal-header">
<h1 id="modalHead">Welcome To Algorithm Visualizer</h1>
<span id="close">×</span>
<span id="pageId"></span>
</div>
<div id="modal-body">
<p id="modal-prm-text">
This is a web application that visualizes different algorithms. It is a project that I have been working on for a while now. I hope you enjoy it.
</p>
<div id="model-scnd-text"> Click Skip Button To skip Tutorial .To continue Tutorial Click Next Button</div>
<img src="./Public/algorithm.jpg" alt="algoImg" id="modal-Img">
</div>
<div id="modal-footer">
<button id="skip" class="btn">Skip</button>
<div>
<button id="previous" class="btn">Previous</button>
<button id="next" class="btn">Next</button>
</div>
</div>
</div>
</div>
<!-- <button id="BFS">BFS Algorithm</button>
<button id="speed">Fast</button> -->
<script src="main.js"></script>
<script src="sketch.js"></script>
</body>
</html>