-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
42 lines (39 loc) · 1.62 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
<html>
<head>
<script src="js/draw.js"></script>
<script src="js/prim.js"></script>
<script src="js/heap.js"></script>
<script src="js/graph.js"></script>
<script src="js/main.js" type="text/javascript"></script>
<style>
.centered {
text-align: center;
}
div {
margin: 1em auto;
}
</style>
</head>
<body>
<div>
<div class="centered">
<label for="width" >Width: </label>
<input id="width" type="number" min="5" value="20" oninvalid="(() => this.value = this.min)();"/>
<label for="height">Height: </label>
<input id="height" type="number" min="5" value="20" oninvalid="(() => this.value = this.min)();"/>
<label for="scale">Scale: </label>
<input id="scale" type="number" min="1" value="5" oninvalid="(() => this.value = this.min)();"/>
<div class="centered">
<label for="live" >Live: </label>
<input id="live" type="checkbox" checked/>
<button id="generate"> generate </button>
</div>
</div>
<div class="centered"><canvas id="maze" height="1000" width="1000"></canvas></div>
<p class="centered"><a href="https://github.com/Capital-EX/Maze-Generator">Github Repository</a></p>
</div>
<script>
initialize();
</script>
</body>
</html>