forked from tapionx/synergic-noise
-
Notifications
You must be signed in to change notification settings - Fork 1
/
xylophone.html
63 lines (62 loc) · 1.65 KB
/
xylophone.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no">
<title>Synergic Noise</title>
<style>
table {
height: 100%;
width: 100%;
position: absolute;
top: -5px;
bottom: 0;
left: 0;
right: 0;
}
td {
position: relative;
border: 1px solid grey;
border-radius: 3px;
}
span {
background-color: gray;
border-radius: 3px;
height: 60%;
width: 60%;
z-index: 1;
position: absolute;
top: 0;
left: -30%;
}
.pressed {
background-color: grey !important;
}
.beat {
background-color: rgb(255, 188, 69);
}
</style>
</head>
<body>
<table>
<tr>
<td id="a1x" class="beat"></td>
<td id="c1x" class="beat"></td>
<td id="d1x" class="beat"></td>
<td id="e1x" class="beat"></td>
<td id="g1x" class="beat"></td>
<td id="a2x" class="beat"></td>
<td id="c2x" class="beat"></td>
<td id="d2x" class="beat"></td>
<td id="e2x" class="beat"></td>
<td id="g2x" class="beat"></td>
<td id="a3x" class="beat"></td>
<td id="c3x" class="beat"></td>
<td id="d3x" class="beat"></td>
<td id="e3x" class="beat"></td>
</tr>
</table>
<script src="/socket.io/socket.io.js"></script>
<script src="jquery-1.11.0.min.js"></script>
<script src="instrument.js"></script>
</body>
</html>