-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
216 lines (182 loc) · 8.89 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no,maximum-scale=1">
<!-- JQuery -->
<script src="./js/jquery.js"></script>
<!-- Compiled and minified CSS - Materialize -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
<!-- A-Frame Scripts -->
<script src="https://aframe.io/releases/0.7.0/aframe.min.js"></script>
<script src="./js/gradientsky.min.js"></script>
<script src="./js/ocean.js"></script>
<script src="./js/aframe-audioanalyser-components.min.js"></script>
<!-- Curve -->
<script src="https://rawgit.com/protyze/aframe-curve-component/master/dist/aframe-curve-component.min.js"></script>
<script src="./js/aframe-alongpath-component.min.js"></script>
<!-- Google Font -->
<link href="https://fonts.googleapis.com/css?family=Dosis" rel="stylesheet">
<!-- Stylesheet -->
<link href="./css/index.css" rel="stylesheet" />
<!-- CSS Framework -->
<link href="./css/lit.css" />
<title>AudiSea</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<!-- START CODE -->
<div class="c">
<h1 class="center-align hover-change white-text">Welcome to AudiSea!</h1>
<div class="container">
<div class="card pink darken-1 white-text">
<div class="card-content">
<h3 class="center-align white-text hover-change">Select an Artist</h3>
<p class="center-align white-text hover-change">and watch AudiSea come alive</p>
</div>
<div class="card-action">
<div class="row">
<div class="col s4 center-align">
<a value="yazoo" class="song-select waves-effect waves-light btn blue hover-change">Yazoo</a>
</div>
<div class="col s4 center-align">
<a value="stravinsky" class="song-select waves-effect waves-light btn blue hover-change">Stravinsky</a>
</div>
<div class="col s4 center-align">
<a value="the-beatles" class="song-select waves-effect waves-light btn blue hover-change">The Beatles</a>
</div>
</div>
<div class="row">
<div class="col s3 center-align">
</div>
<div class="col s6 center-align">
<a value="paul-anka" class="song-select waves-effect waves-light btn blue hover-change">Paul Anka</a>
</div>
<div class="col s3 center-align">
</div>
</div>
<div class="row">
<div class="col s12 center-align">
<h5 class="center-align hover-change">Hint: Say 'play song name' to use voice control!</h5>
<p class="center-align hover-change">Powered By Spotify API</p>
</div>
</div>
<div class="row">
<div class="col s12 center-align">
<h4 class="center-align hover-change">Now playing: <span id="np">nothing!</span></h4>
</div>
</div>
</div>
</div>
</div>
<a-scene id="scene" antialias="true" embedded voice-select>
<div class="a-enter-vr"></div>
<a-assets>
<audio id="song" src="./songs/ocean.mp3" autoPlay loop />
<a-asset-item id="cloud1" src="./OBJ Models/Cloud_1.obj"></a-asset-item>
<a-asset-item id="cloud1-mtl" src="./OBJ Models/Cloud_1.mtl"></a-asset-item>
<a-asset-item id="cloud2" src="./OBJ Models/Cloud_2.obj"></a-asset-item>
<a-asset-item id="cloud2-mtl" src="./OBJ Models/Cloud_2.mtl"></a-asset-item>
<a-asset-item id="cloud3" src="./OBJ Models/Cloud_3.obj"></a-asset-item>
<a-asset-item id="cloud3-mtl" src="./OBJ Models/Cloud_3.mtl"></a-asset-item>
<a-asset-item id="cloud4" src="./OBJ Models/Cloud_4.obj"></a-asset-item>
<a-asset-item id="cloud4-mtl" src="./OBJ Models/Cloud_4.mtl"></a-asset-item>
<a-asset-item id="boat" src="./OBJ Models/boatboat.obj"></a-asset-item>
<a-asset-item id="boat-mtl" src="./OBJ Models/boatboat.mtl"></a-asset-item>
<a-asset-item id="blue_fish" src="./OBJ Models/blue_fish.obj"></a-asset-item>
<a-asset-item id="blue_fish-mtl" src="./OBJ Models/purple_fish.mtl"></a-asset-item>
<a-asset-item id="dolphin" src="./OBJ Models/dolphin_pink.obj"></a-asset-item>
<a-asset-item id="dolphin-mtl" src="./OBJ Models/dolphin_pink.mtl"></a-asset-item>
</a-assets>
<!-- <a-entity id="text" text="value: Say out loud 'play <song>'; color: #FFF; width: 5" position="0.3 3 -3" remove-on-event="el: #analyser; event: spotify-play">
</a-entity> -->
<a-entity id="boatA" obj-model="obj: #boat; mtl: #boat-mtl" position="-4 0 0" scale="1 1 1" rotation="0 90 0">
<!--<a-animation id="boatAAnimation" attribute="position" from="-4 0 0" to="-2 0.25 -3" repeat="indefinite" direction="alternate"
easing="ease">
</a-animation>-->
<!-- blueFishA Elements -->
</a-entity>
<a-entity id="blueFishA" obj-model="obj: #blue_fish; mtl: #blue_fish-mtl" position="-1 1 -1" scale="0.2 0.2 0.2">
<a-animation attribute="position" from="-2 0 -3" to="2 0 -3" repeat="indefinite" direction="alternate" easing="linear" dur="2000"></a-animation>
<a-animation attribute="rotation" dur="10000" fill="forwards" to="0 360 0" repeat="indefinite"></a-animation>
</a-entity>
<a-curve id="track1">
<a-curve-point position="-5 -2 -8"></a-curve-point>
<a-curve-point position="0 5 -8"></a-curve-point>
<a-curve-point position="5 -2 -8"></a-curve-point>
</a-curve>
<a-curve id="track2">
<a-curve-point position="-5 -2 -8"></a-curve-point>
<a-curve-point position="3 8 -8"></a-curve-point>
<a-curve-point position="5 -2 -8"></a-curve-point>
</a-curve>
<a-curve id="track3">
<a-curve-point position="-5 -2 -8"></a-curve-point>
<a-curve-point position="-2 3 -8"></a-curve-point>
<a-curve-point position="5 -2 -8"></a-curve-point>
</a-curve>
<!-- <a-entity id="dolphin" alongpath="curve: #track1; dur:4000; loop: true; rotate:true;" obj-model="obj: #dolphin; mtl: #dolphin-mtl" scale="1.5 1.5 1.5" rotation="0 0 180">
</a-entity> -->
<a-sky id="sky" sky="analyserEl: #ocean; el: #sky" color="#f441b2"></a-sky>
<a-ocean id="ocean" width="130" depth="130" density="70" amplitude="0.1" multiplier="0.5" color="#4286f4" audioanalyser="src: #song"
audioanalyser-volume-scale="multiplier: 100" spotify>
</a-ocean>
<a-entity position="0 0.5 0">
<a-camera wasd-controls-enabled="false" id="camera" universal-controls="movementEnabled: false">
</a-camera>
</a-entity>
</a-scene>
</div>
<!-- END CODE -->
</body>
<footer class="page-footer pink darken-1">
<div class="container">
<div class="row">
<div class="col l4 offset-l2 s12">
<h4 class="white-text hover-change">Links and Sources</h4>
<ul>
<li>
<a class="white-text text-lighten-3 hover-change" href="https://github.com/BananiumLabs/AudiSee">GitHub Source</a>
</li>
<li>
<a class="white-text text-lighten-3 hover-change" href="https://aframe.io">AFrame</a>
</li>
<li>
<a class="white-text text-lighten-3 hover-change" href="https://github.com/ngokevin/kframe">KFrame</a>
</li>
<li>
<a class="white-text text-lighten-3 hover-change" href="http://materializecss.com/footer.html">Materialize</a>
</li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container hover-change">
<div class="row">
<div class="col s4 center-align">
<a class="white-text text-lighten-4 hover-change" href="https://devpost.com/software/audisea">Devpost Submission</a>
</div>
<div class="col s4 center-align">
<a class="white-text text-lighten-4 hover-change" href="https://www.bananiumlabs.com/"> © 2018 Created with ♥ by Bananium Labs</a>
</div>
<div class="col s4 center-align">
<a class="white-text text-lighten-4 hover-change" href="https://github.com/dbqeo/AudiSea/LICENSE">MIT License</a>
</div>
</div>
</div>
</div>
<script src="./js/audio-volume-scale.js"></script>
<script src="./js/color-on-beat.js"></script>
<script src="./js/annyang.min.js"></script>
<script src="./js/song-select.js"></script>
<script src="./js/voice-select.js"></script>
<script src="./js/sky.js"></script>
<script src="./js/spotify-web-api.js"></script>
<script src="./js/spotify.js"></script>
</footer>
</html>