-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
23 lines (20 loc) · 1.02 KB
/
index.html
File metadata and controls
23 lines (20 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="js/datastruct.js"></script>
<script src="js/pathfind.js"></script>
<script src="js/pathfinders/bfs.js"></script>
<script src="js/pathfinders/dijkstra.js"></script>
<script src="js/pathfinders/astar.js"></script>
<script src="js/pathfinders/jps.js"></script>
</head>
<body>
<div class="grid-container" ondragstart="return false;" ondrop="return false;"></div>
<button onclick="if (grid.mode == 'pathfind') return; grid.setMode('edit'); grid.clearColors()">Edit</button>
<button onclick="if (grid.mode == 'pathfind') return; bfs.run()">Breadth First Search</button>
<button onclick="if (grid.mode == 'pathfind') return; dijkstra.run()">Dijkstra's Algorithm</button>
<button onclick="if (grid.mode == 'pathfind') return; astar.run()">A* Search</button>
<button onclick="if (grid.mode == 'pathfind') return; jps.run()">Jump Point Search</button>
<script src="js/grid.js"></script>
</body>
</html>