-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
101 lines (92 loc) · 3.78 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Requires meta tags -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Title -->
<title>FindThePath</title>
<!-- Scripts -->
<!-- Main script -->
<script type="module" src="src/main.js" defer="true"></script>
<!-- Bootstrap and Styling-->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<link href="index.css" rel="stylesheet">
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
</head>
<body>
<div>
<div>
<nav class="navbar navbar-expand-lg bg-light navbar-light flex-row-justify-center">
<h1 class="navbar-brand">FindThePath</h1>
</nav>
<nav class="navbar navbar-expand-lg navbar-dark flex-row-justify-center" id="main-navbar">
<ul class="nav navbar-nav">
<li class="nav-item">
<button id="resetButton" class="btn navbar-btn">
Reset Board
</button>
</li>
<li class="nav-item">
<button id="clearWallButton" class="btn navbar-btn">
Clear Walls
</button>
</li>
<li class="nav-item">
<button id="startButton" class="btn start-btn">
Find the Path!
</button>
</li>
<li class="nav-item">
<button id="clearPathButton" class="btn navbar-btn">
Clear Path
</button>
</li>
</ul>
<div>
<select id="algorithmOption">
<option value="" selected disabled hidden>Choose Algorithm</option>
<option value="bfs">Breadth First Search</option>
<option value="dfs">Depth First Search</option>
<option value="a-star">A* Algorithm</option>
<option value="dijkstra">Dijkstra's Algorithm</option>
</select>
</div>
</nav>
</div>
<div class="flex-row-justify-center" id="index-navbar">
<ul class="nav navbar-nav flex-row-justify-center">
<li class="nav-item">
<div class="node-index startNode"></div>
Starting Node
</li>
<li class="nav-item">
<div class="node-index endNode"></div>
Ending Node
</li>
<li class="nav-item">
<div class="node-index wall"></div>
Wall Node
</li>
<li class="nav-item">
<div class="node-index unvisited"></div>
Unvisited Node
</li>
<li class="nav-item">
<div class="node-index visited"></div>
Visited Node
</li>
<li class="nav-item">
<div class="node-index pathNode"></div>
Path Node
</li>
</ul>
</div>
<div class="board-container">
<table class="table table-bordered border border-5 border-dark" id="board"></table>
</div>
</div>
</body>
</html>