-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
54 lines (51 loc) · 1.33 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<script src='https://threejs.org/build/three.min.js'></script>
<script type="text/javascript" src="https://connect.soundcloud.com/sdk.js"></script>
<style type="text/css">
body {
margin: 0;
}
.fullscreen {
transform: scaleX(-1);
position: absolute;
top: 30px;
left:0;
right:0;
bottom:0;
}
.cover-art {
transform: scaleX(-1);
filter: FlipH;
padding: 50px;
padding-left: 300px;
position: absolute;
right: 0;
bottom: 0;
height: 150px;
width: 150px;
z-index: 2;
}
.hidden {
display: none;
}
.black {
background-color: black;
}
</style>
</head>
<body class="black">
<audio class="hidden" id="player" controls="" autoplay="" preload autobuffer></audio>
<img src="" id="cover-art" class="cover-art"></img>
<div id="cube" class="fullscreen"></div>
<div id="particle" class="fullscreen"></div>
<div id="spectrum" class="fullscreen"></div>
<script>
// You can also require other files to run in this process
require('./renderer.js')
</script>
</body>
</html>