-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·173 lines (88 loc) · 4.21 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
<html>
<head>
<title>SoundCloud Visualizer, Bitches ;D</title>
<script src="jquery-3.1.1.js"></script>
<script src="//connect.soundcloud.com/sdk.js"></script>
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.0/css/materialize.min.css">
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.0/js/materialize.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<nav>
<div class="nav-wrapper">
<img src="322-Audio_music_spectrum_visualizer-512.png" height="50px" width="50px" style="margin-left: 34%; margin-top: 3px;">
<a href="#" class="brand-logo center">Soundcloud Visualizer</a>
</div>
</nav>
<div class="current-Track">
<img id="currentTrackIMG">
<div class="controls" style="float: right">
<img src="previous.png"><img src="play.png"><img src="next.png">
<p style="margin-right: 20px;">Now playing:</p>
<marquee id="currentTrackMarquee"></marquee>
</div>
</div>
<div class="container">
<div id="main-content">
<div class="row">
<div class="col s12">
<ul class="tabs" >
<li class="tab col s4"><a href="#test1" style="color: white;">Likes</a></li>
<li class="tab col s4"><a href="#test2" style="color: white;">Playlist</a></li>
<li class="tab col s4"><a class="active" href="#test3" style="color: white;">Search</a></li>
</ul>
</div>
<div id="test1" class="col s12" style="color:white">Coming soon...</div>
<div id="test2" class="col s12" style="color:white">Coming soon...</div>
<div id="test3" class="col s12">
<input type="text" id="search" placeholder="Search track or artist..." style="margin-top:10px; width:85%; margin-left: 5px; color:white">
<a class="waves-effect waves-light btn" onclick="searchSC()">Search</a>
<div id="results">
</div>
<div id="audio-test-div">
<audio id="audio-test" controls onended="playTrack()"></audio>
</div>
</div>
</div>
</div>
</div>
<!-- Modal Structure -->
<div id="modal1" class="modal">
<div class="modal-content">
<h4><u>Settings</u></h4>
<div class="switch">
<p>Random colors for visualizer:</p>
<label>
Off
<input type="checkbox" id="switchRGB">
<span class="lever"></span>
On
</label>
<p>Bars Visualizer: </p>
<label>
Off
<input type="checkbox" id="switchVisualizer1" checked>
<span class="lever"></span>
On
</label>
<p>WaveForm Visualizer: </p>
<label>
Off
<input type="checkbox" id="switchVisualizer2">
<span class="lever"></span>
On
</label>
</div>
</div>
<div class="modal-footer">
<a href="#!" class="modal-action modal-close waves-effect waves-green btn-flat">Close</a>
</div>
</div>
<a class="waves-effect waves-light btn modal-trigger" href="#modal1">Settings</a>
<canvas id="visualizer-waves" style="border:1px solid black; width: 100%; height: 150px; margin-top: -200px;"></canvas>
<canvas id="visualizer-bars" style="border:1px solid black; width: 100%; height:140px;"></canvas>
<script src="script1.js"></script>
</body>
</html>