-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (49 loc) · 1.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>City Path Finder</title>
<link rel="stylesheet" href="style.css" />
<script src="script.js" defer></script>
</head>
<body class="light-mode">
<div class="switch">
<input type="checkbox" id="theme-switch" />
<label for="theme-switch">Enable Dark Mode</label>
</div>
<div class="container">
<h1>City Path Finder</h1>
<label for="start-city">Select Starting City:</label>
<select id="start-city">
<option value="Arad">Arad</option>
<option value="Bucharest">Bucharest</option>
<option value="Craiova">Craiova</option>
<option value="Dobreta">Dobreta</option>
<option value="Eforie">Eforie</option>
<option value="Fagaras">Fagaras</option>
<option value="Giurgiu">Giurgiu</option>
<option value="Hirsova">Hirsova</option>
<option value="Iasi">Iasi</option>
<option value="Lugoj">Lugoj</option>
<option value="Mehadia">Mehadia</option>
<option value="Neamt">Neamt</option>
<option value="Oradea">Oradea</option>
<option value="Pitesti">Pitesti</option>
<option value="Rimnicu Vilcea">Rimnicu Vilcea</option>
<option value="Sibiu">Sibiu</option>
<option value="Timisoara">Timisoara</option>
<option value="Urziceni">Urziceni</option>
<option value="Vaslui">Vaslui</option>
<option value="Zerind">Zerind</option>
</select>
<label for="algorithm">Select Algorithm:</label>
<select id="algorithm">
<option value="a_star">A*</option>
<option value="gbfs">Greedy Best-First Search</option>
</select>
<button onclick="findPath()">Find Path</button>
<div class="result" id="result"></div>
</div>
</body>
</html>