-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
94 lines (81 loc) · 1.65 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>MIDI / VIZ</title>
<style>
* {
margin: 0;
padding: 0;
}
body,
select,
a:link,
a:visited {
font-family: monospace;
color: #999;
font-size: 18px;
text-decoration: none;
}
html,
body {
background: #111;
width: 100%;
height: 100%;
}
body {
display: flex;
justify-content: center;
align-items: center;
}
canvas {
display: block;
width: 600px;
height: 600px;
}
select {
border: none;
background: none;
}
.source {
position: absolute;
bottom: 2em;
right: 2em;
}
.x-center {
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.left {
position: absolute;
left: 2em;
}
.right {
position: absolute;
right: 2em;
}
.top {
position: absolute;
top: 2em;
}
.bottom {
position: absolute;
bottom: 2em;
}
</style>
</head>
<body>
<canvas width="600" height="600" id="main-canvas"></canvas>
<select id="source-select" class="bottom left"></select>
<aside id="main-msg" class="bottom x-center">MIDI NOT SUPPORTED</aside>
<aside id="side-msg" class="bottom right"></aside>
<a
class="top right"
href="https://github.com/max-vogler/midi/tree/master/viz"
target="_blank"
>?</a
>
<script type="module" src="main.js"></script>
</body>
</html>