-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (56 loc) · 2.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property = "og:image" content ="https://icons8.com/icon/ZdVivU3rI52R/external-maze-geek-those-icons-lineal-those-icons">
<title>Maze Path Finding Algo</title>
<link rel="icon" href ="https://img.icons8.com/external-those-icons-lineal-those-icons/452/external-Maze-geek-those-icons-lineal-those-icons.png" type ="image/x-icon">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="inputSection">
<!-- <button class ="button" onclick = "start()">Start</button> -->
<!-- <section>
<label for="nums">Enter nums:</label>
<div style="position: relative;height: 56px">
<input type="range" min = "10" max = "1000" id= "range" value = "35" oninput="updateView();updateInput()" disabled = true/>
<div id="rangeSelector">
<div id = "selectorBtn"></div>
<div id = "rangeDisplayer"></div>
</div>
</div>
<script>
updateView()
function updateView(){
var slider = document.getElementById("range")
var selector = document.getElementById("rangeSelector")
var display = document.getElementById("rangeDisplayer")
selector.style.left = (slider.value - 10)/990 * 100 + '%';
display.innerHTML = slider.value
}
</script>
</section> -->
<section>
<label for="algoUsed" >Algorithm Used</label>
<select class ="select" name = "algoUsed" id = "algoUsed" oninput="updateInput()">
<option value = "bfs" >BFS search</option>
<option value = "dijkstra">dijkstra search</option>
<option value = "astar" selected>A* search</option>
<option value = "dfs" >DFS search</option>
</select>
</section>
<section>
<button id = "start" class = "button" onclick = "start()">start</button>
<button id = "generateMaze" class = "button" onclick = "generateMaze()">generate Maze</button>
<button id = "clearMaze" class = "button" onclick = "clearMaze()">clear Maze</button>
<button id = "clearMaze" class = "button" onclick = "newMaze()">new Maze</button>
</section>
</div>
<div id="mazeContainer"><table id="maze"> </table></div>
<script src="obj.js"></script>
<script src="algorithms.js"></script>
<script src="main.js"></script>
</body>
</html>