-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (47 loc) · 1.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Javascript Maze Generator</title>
<style>
.maze {
display: flex;
align-items: center;
justify-content: space-around;
width: 800px;
margin-bottom: 20px;
height: 55px;
}
button {
background-color: #4d4c4c;
border: none;
padding: 10px;
color: #fff;
font-size: 14px;
cursor: pointer;
width: 30%;
margin-left: 5px;
height: inherit;
}
button:first-child {
margin-left: 0px;
}
</style>
</head>
<body>
<div class="maze">
<button id="maze">Regenerate Maze Pattern</button>
<button id="bfs-path-solver">
Solve Path<br />(Breadth-first-search)
</button>
<button id="dfs-path-solver">Solve Path<br />(Depth-first-search)</button>
<button id="path-clearer">Clear Path</button>
</div>
<canvas id="pp-maze"></canvas>
<script src="src/cell.js"></script>
<script src="src/maze.js"></script>
<script src="src/app.js"></script>
</body>
</html>