-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
44 lines (40 loc) · 1.03 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
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
html, body {
background: #000;
}
canvas {
display: block;
margin: 120px auto 0;
}
#p5_loading {
color: #fff;
font-family: monospace;
left: calc(50% - 50px);
top: 50%;
width: 100px;
text-align: center;
}
</style>
</head>
<body>
<script src="lib/d3.js"></script>
<script src="lib/p5.js"></script>
<script src="lib/p5.sound.js"></script>
<script src="js/setup.js"></script>
<script>
function loadVisualizerScript(visualizer) {
var s = document.createElement('script');
s.src = "js/" + visualizer + ".js";
s.type = "text/javascript";
s.async = false;
document.querySelector('body').appendChild(s);
}
if (window.location.hash) {
loadVisualizerScript(window.location.hash.slice(1));
}
</script>
</body>
</html>