-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.php
68 lines (66 loc) · 2.67 KB
/
index.php
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
<?php
$testLocal = FALSE;
?>
<!doctype html>
<html lang="en">
<head>
<title>Rack City</title>
<meta charset="utf-8">
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400' rel='stylesheet' type='text/css'>
<link href="css/styles.css" rel="stylesheet" type="text/css">
</head>
<h1>RACK CITY</h1>
<div id="soundcloud">
<form id="sc_form" style="display:none;">
<h3 class="title">ENTER SOUNDCLOUD LINK</h3><br/>
<input type="text" id="sc_url" name="url" placeholder="soundcloud url" value="https://soundcloud.com/lidogotsongs/zhu-faded-lido-remix"/><br/>
<input type="submit" value="SUBMIT"/>
</form>
</div>
<div id="loading"></div>
<div id="latlng">
<span>LATITUDE: </span><span id="lat" class="light"></span>
<br/>
<span>LONGITUDE: </span><span id="lng" class="light"></span>
</div>
<div id="chooseLocation" class="styled-select" style="display:none;">
<select id="locationSelect" dir="rtl">
<option>CURRENT</option>
<option>CHICAGO</option>
<option>DOWNTOWN NYC</option>
<option>TOKYO</option>
<option>LONDON</option>
</select>
</div>
<div id="songinfo" style="display:none;">
<span id="title">FANCY</span>
<!-- <br/>
<span id="timestamp" class="light">0 : 00 : 00</span> -->
</div>
<a href="https://github.com/trippedout/rackcity"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/38ef81f8aca64bb9a64448d0d70f1308ef5341ab/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6461726b626c75655f3132313632312e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"></a>
<?php
if(!$testLocal)
echo '<script src="//cdnjs.cloudflare.com/ajax/libs/three.js/r68/three.min.js"></script>
<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="//connect.soundcloud.com/sdk.js"></script>
';
else
echo '<script src="js/three.min.js"></script>
<script src="js/jquery-2.1.1.min.js"></script>
<script src="js/soundcloud.js"></script>
';
?>
<script type="text/javascript" src="js/beatdetect/fft.js"></script>
<script type="text/javascript" src="js/beatdetect/beatdetect.js"></script>
<script src="js/dat.gui.min.js"></script>
<script data-main="app" src="js/require.js"></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-15178892-2', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>