-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
76 lines (72 loc) · 2.41 KB
/
index.html
File metadata and controls
76 lines (72 loc) · 2.41 KB
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>
<head>
<meta charset="UTF-8" />
<title>Square Drum</title>
<!-- Load scripts and third party libraries -->
<script src="code/lib/jquery-3.2.1.min.js"></script>
<script src="code/lib/two.min.js"></script>
<script src="code/lib/howler.min.js"></script>
<style>
body {
background-color: lightblue;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
textarea {
font-size: 12px;
resize: horizontal;
vertical-align: middle;
}
#text-inputs {
line-height: 2;
position: absolute;
left: 130px;
top: 15px;
}
button {
font-size: 12px;
border: 1px solid black;
background-color: white;
padding: 2px 93px;
}
#x-velocity-text{
width: 142px;
}
#y-velocity-text{
width: 142px;
}
#x-position-text{
width: 142px;
}
#y-position-text{
width: 142px;
}
#border-width-text{
width: 127px;
}
#border-height-text{
width: 123px;
}
</style>
</head>
<body>
<div id="text-inputs">
<label>X Velocity <textarea id="x-velocity-text" rows="1" cols="18"></textarea></label>
<br>
<label>Y Velocity <textarea id="y-velocity-text" rows="1" cols="18"></textarea></label>
<br>
<label>X Position <textarea id="x-position-text" rows="1" cols="18"></textarea></label>
<br>
<label>Y Position <textarea id="y-position-text" rows="1" cols="18"></textarea></label>
<br>
<label>Border Width <textarea id="border-width-text" rows="1" cols="16"></textarea></label>
<br>
<label>Border Height <textarea id="border-height-text" rows="1" cols="15"></textarea></label>
<br>
<button type="button" id="set-properties-button">Set</button>
</div>
<div id="draw-shapes"></div>
<script src='code/bouncing-ball-drum-machine.js'></script>
</body>
</html>