-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
45 lines (44 loc) · 1.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="styles/index.css" />
<title>Pathfinding</title>
</head>
<body oncontextmenu="return false;">
<div>
Algorithm chosen:
<select id="algChooser">
<option>A star search</option>
<option>Best first search</option>
<option>Dijkstra's algorithm</option>
</select>
</div>
<div id="legend">
Start
<div id="start"></div>
Goal
<div id="goal"></div>
Optimal
<div id="optimal"></div>
Explored
<div id="explored"></div>
Obstacle
<div id="obstacle"></div>
</div>
<canvas id="canvas"></canvas>
<div style="margin-top: 8px">
Hold down left click to draw squares and hold down right click to erase
squares
</div>
<div>
<button id="startVisBtn">Start visualization</button>
</div>
<div style="margin-top: 16px">
<button id="resetBoardBtn">Reset board</button>
</div>
<script src="src/index.ts"></script>
</body>
</html>