-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
76 lines (56 loc) · 1.74 KB
/
main.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
<!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">
<title>A* Pathfinder</title>
<style>
canvas{
background-color: plum;
margin-left: 1%;
}
body{
margin: auto;
overflow:hidden;
}
#log{
margin:0%;
margin-left: 2%;
}
label {
display: inline-block;
padding-right: -10px;
margin-left: 1%;
white-space: nowrap;
vertical-align: middle;
}
input {
vertical-align: middle;
}
</style>
<script defer src="src/main.js"></script>
</head>
<body unselectable="on">
<div id="topbar" style="margin-left: auto; text-align: center">
<h3 id="log">A* Path Finding Algorithm</h3>
<button id="play">Play</button>
</div>
<div id="topbar" style="margin-left: auto; text-align: center">
<label for="anim">Animation:</label>
<input type="checkbox" id="anim">
<label hidden="true" for="animSpeed">Speed:</label>
<input type="range" id="animSpeed" min="0" max="500" value="100" step="25">
</div>
<div>
<canvas id="canvas" height="500px" width="500px"></canvas>
</div>
<div style="margin-left: auto; text-align: center" id="editor">
<button id="erase">Remove</button>
<button id="wall">Wall</button>
<button id="start">Start</button>
<button id="finish">Finish</button>
</div>
<div><p style="margin:1%;">By Andrew McCall</p></div>
</body>
</html>