/
index.html
56 lines (52 loc) · 1.19 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
<!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" />
<script
src="https://code.jquery.com/jquery-3.7.1.min.js"
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
crossorigin="anonymous"
></script>
<script src="main.js"></script>
<title>Document</title>
<style>
input[type="number"] {
margin: 10px;
padding: 10px;
text-align: center;
border: none;
border-bottom: 2px solid darkslategray;
color: darkslategray;
}
button {
margin: 10px;
padding: 10px 5px;
background-color: darkslategray;
border: none;
outline: none;
color: white;
border-radius: 10px;
transition: 0.2s;
}
button:hover {
background-color: chartreuse;
}
button:active {
background-color: aquamarine;
}
</style>
</head>
<body>
<canvas
id="myCanvas"
width="800"
height="400"
style="border: 1px solid black"
></canvas>
<br />
<input type="number" id="walls" min="5" max="20" value="10" />
<button onclick="generateWalls()">Generate Walls</button>
</body>
</html>