-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
116 lines (114 loc) · 3.44 KB
/
Copy pathindex.html
File metadata and controls
116 lines (114 loc) · 3.44 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Audio Landscape</title>
<style>
body {
margin: 0;
padding: 0;
background: #fff;
background-size: 100%;
overflow: hidden;
font-family: sans-serif;
letter-spacing: -1px;
}
.LandscapeUI {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
height: 100%;
}
.LandscapeUI div {
position: relative;
top: 50%;
transform: translateY(-50%);
text-align: center;
padding: 10px 80px;
color: #333;
border: 2px dashed #333;
border-radius: 20px;
width: 100px;
margin: 0 auto;
cursor: pointer;
background: rgba(255,255,255,0.3);
}
.twitter-share-button {
z-index: 2;
position: absolute;
bottom: 5px;
left: 5px;
}
.intro {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
height: 100%;
}
.launch {
padding: 80px 160px;
color: #333;
border: 1px solid #333;
border-radius: 20px;
opacity: 0.8;
width: 100px;
margin: 10px auto;
cursor: pointer;
background: rgba(255,255,255,0.3);
list-style-type: none;
text-align: center;
}
.support {
position: absolute;
bottom: 0;
left: 0;
right: 0;
text-align: center;
}
.viz-menu {
}
.green-hills {
background: url(img/green-hills.png) center center;
}
.volcano {
background: url(img/volcano.png) center center;
color: #fff;
}
.vapor {
background: url(img/vapor-bg.png) bottom center;
text-shadow: 0 0 5px #fff;
}
</style>
</head>
<body>
<section class="intro">
<ul class="viz-menu">
<li class="launch green-hills">Green hills</li>
<li class="launch volcano">Volcano</li>
<li class="launch vapor">Vapor</li>
</ul>
<p class="support">
This vis requires native browser support for HTML5 Audio and WebGL<br>
Recent Chrome and Firefox will be fine
</p>
</section>
<script src="bower_components/datgui/build/dat.gui.min.js"></script>
<script src="bower_components/threejs/build/three.min.js"></script>
<script src="js/stats.min.js"></script>
<script data-main="main" src="bower_components/requirejs/require.js"></script>
<a href="https://twitter.com/share" class="twitter-share-button" data-text="Check out this terrain mp3 visualiser, built with #threejs and #javascript" data-via="cham">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-59223920-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>