|
1 | 1 | <!DOCTYPE html>
|
2 | 2 | <html lang="en">
|
3 |
| - |
4 |
| -<head> |
| 3 | + <head> |
5 | 4 | <meta charset="UTF-8" />
|
6 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
7 | 6 | <title>Path Finding Visualiser</title>
|
8 | 7 | <link rel="stylesheet" href="./style.css" />
|
9 | 8 |
|
10 |
| - <link rel="apple-touch-icon" sizes="180x180" href="./icons/apple-touch-icon.png" /> |
11 |
| - <link rel="icon" type="image/png" sizes="32x32" href="./icons/favicon-32x32.png" /> |
12 |
| - <link rel="icon" type="image/png" sizes="16x16" href="./icons/favicon-16x16.png" /> |
13 |
| - |
14 |
| - <script src="./main.js"></script> |
15 |
| - |
16 |
| -</head> |
17 |
| - |
18 |
| -<body onload="setup();"> |
| 9 | + <link |
| 10 | + rel="apple-touch-icon" |
| 11 | + sizes="180x180" |
| 12 | + href="./icons/apple-touch-icon.png" |
| 13 | + /> |
| 14 | + <link |
| 15 | + rel="icon" |
| 16 | + type="image/png" |
| 17 | + sizes="32x32" |
| 18 | + href="./icons/favicon-32x32.png" |
| 19 | + /> |
| 20 | + <link |
| 21 | + rel="icon" |
| 22 | + type="image/png" |
| 23 | + sizes="16x16" |
| 24 | + href="./icons/favicon-16x16.png" |
| 25 | + /> |
| 26 | + </head> |
| 27 | + |
| 28 | + <body> |
19 | 29 | <div id="appContainer">
|
20 |
| - <div id="header"> |
21 |
| - <div id="instructionsContainer"> |
22 |
| - <h2 id="instructions">Select start position</h2> |
23 |
| - </div> |
24 |
| - <div id="resetContainer"> |
25 |
| - <button onclick="reset();">Reset</button> |
26 |
| - </div> |
27 |
| - <div class="buttonsContainer"> |
28 |
| - <h3>Algorithms</h3> |
29 |
| - <button onclick="runAlgorithm('dijkstra');"> |
30 |
| - Dijkstra |
31 |
| - </button> |
32 |
| - <button onclick="runAlgorithm('aStar');">A*</button> |
33 |
| - <button onclick="runAlgorithm('biasedAStar');"> |
34 |
| - Biased A* |
35 |
| - </button> |
36 |
| - </div> |
37 |
| - |
38 |
| - <div class="buttonsContainer"> |
39 |
| - <h3>Mazes</h3> |
40 |
| - <button onclick="randomMaze();">Random maze</button> |
41 |
| - <button onclick="verticalMaze();">Vertical maze</button> |
42 |
| - <button onclick="horizontalMaze();">Horizontal maze</button> |
43 |
| - <button onclick="radialMaze();">Radial maze</button> |
44 |
| - </div> |
| 30 | + <div id="header"> |
| 31 | + <div id="instructionsContainer"> |
| 32 | + <h2 id="instructions">Select start position</h2> |
| 33 | + </div> |
| 34 | + <div id="resetContainer"> |
| 35 | + <button id="resetButton">Reset</button> |
| 36 | + </div> |
| 37 | + <div class="buttonsContainer"> |
| 38 | + <h3>Algorithms</h3> |
| 39 | + <button id="dijkstraButton">Dijkstra</button> |
| 40 | + <button id="aStarButton">A*</button> |
| 41 | + <button id="biasedAStarButton">Biased A*</button> |
45 | 42 | </div>
|
46 | 43 |
|
47 |
| - <div id="canvasContainer"> |
48 |
| - <canvas id="background"></canvas> |
49 |
| - <canvas id="animation"></canvas> |
| 44 | + <div class="buttonsContainer"> |
| 45 | + <h3>Mazes</h3> |
| 46 | + <button id="randomMazeButton">Random maze</button> |
| 47 | + <button id="verticalMazeButton">Vertical maze</button> |
| 48 | + <button id="horizontalMazeButton">Horizontal maze</button> |
| 49 | + <button id="radialMazeButton">Radial maze</button> |
50 | 50 | </div>
|
| 51 | + </div> |
| 52 | + |
| 53 | + <div id="canvasContainer"> |
| 54 | + <canvas id="background"></canvas> |
| 55 | + <canvas id="animation"></canvas> |
| 56 | + </div> |
51 | 57 | </div>
|
52 |
| -</body> |
53 | 58 |
|
| 59 | + <script type="module" src="./main.js"></script> |
| 60 | + </body> |
54 | 61 | </html>
|
0 commit comments