-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathplayer.html
More file actions
254 lines (226 loc) · 10.5 KB
/
player.html
File metadata and controls
254 lines (226 loc) · 10.5 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
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!--
Copyright (c) 2008 Henrik Berggren & Eric Wahlforss
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>The Cloud Player</title>
<meta name="generator" content="TextMate http://macromates.com/"/>
<meta name="author" content="Eric Wahlforss"/>
<link href="/stylesheets/player.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/scripts/firebugx.js"></script>
<script src="/scripts/jquery-1.3.1.min.js" type="text/javascript"></script>
<script src="/scripts/soundmanager2.js" type="text/javascript"></script>
<script type="text/javascript" src="/scripts/md5.js"></script>
<script type="text/javascript" src="/scripts/ui.core.js?v={{rando}}"></script>
<script type="text/javascript" src="/scripts/ui.datepicker.js?v={{rando}}"></script>
<script type="text/javascript" src="/scripts/ui.draggable.js?v={{rando}}"></script>
<script type="text/javascript" src="/scripts/ui.droppable.js?v={{rando}}"></script>
<script type="text/javascript" src="/scripts/ui.slider.js?v={{rando}}"></script>
<script type="text/javascript" src="/scripts/ui.sortable.js?v={{rando}}"></script>
<script type="text/javascript" src="/scripts/jquery.history_remote.js"></script>
<script type="text/javascript" src="/scripts/jquery.cookie.js"></script>
<script src="/scripts/utils.js{% if in_development_enviroment %}?v= {{rando}} {% endif %}" type="text/javascript"></script>
<script src="/scripts/player.js{% if in_development_enviroment %}?v= {{rando}} {% endif %}" type="text/javascript"></script>
<script src="/scripts/playlist.js{% if in_development_enviroment %}?v= {{rando}} {% endif %}" type="text/javascript"></script>
{%if not in_development_enviroment %}
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-168866-8");
pageTracker._trackPageview();
</script>
{% endif %}
<link href="/images/favicon.ico" rel="shortcut icon" />
</head>
<body unselectable="on" class="{% if user %}logged-in{% endif %}">
<div id="flash"><div></div></div>
<div id="header">
<div id="login">
<a href="" id="about">About</a> |
{% if user %}
Signed in as <a href="#nick" class="nickname">{{user.nickname}}</a> | <a href="{{logout_url}}">Sign out</a>
{% else %}
<a href="{{login_url}}">Sign in with your Google Account</a>
{% endif %}
</div>
<img id="logo" src="images/logo.png" />
<input accesskey="f" maxlength="50" type="search" name="q" id="q" value="Search Artists & Tracks" />
</div>
<div id="main-container">
<div id="artist-info">
<div>
<a href="#close" class="close">x</a>
<h3>This is the artist</h3>
<p>This is the desc</p>
<p class="check-on-sc"><a href="#sc">Go to the artist on SoundCloud »</a></p>
</div>
<img src="http://a1.soundcloud.com/avatars/0001/1308/i039964_big.jpg">
</div>
<div id="create-smart-playlist">
<h4>Create a smart playlist</h4>
<form id="pl-create-form">
<div class="col-1">
<label for="pl-genre">Genre</label>
<input type="text" id="pl-genre">
<label for="pl-favorite">User favorite</label>
<input type="text" id="pl-favorite" value="Username">
<input type="hidden" id="pl-bpm-range-start">
<input type="hidden" id="pl-bpm-range-stop">
<label id="bpm-range-label">BPM Range</label>
<div class="bpm-range">
<label id="bpm-range-start">50</label>
<div class="ui-slider-1" id="pl-bpm-range-slider">
<div class="ui-slider-handle" id="bpm-handle-start"></div>
<div class="ui-slider-handle" id="bpm-handle-stop"></div>
</div>
<label id="bpm-range-stop">200</label>
</div>
</div>
<div class="col-2">
<label for="pl-search-term">Search term</label>
<input type="text" id="pl-search-term">
<label for="pl-artist">Artist</label>
<input type="text" id="pl-artist">
<label for="pl-order">Order by</label>
<select id="pl-order">
<option value="hotness" selected="selected">Hotness</option>
<option value="created_at">Latest</option>
</select>
</div>
<div class="buttons">
<input type="submit" value="Create" id="pl-create">
<a href="#cancel" id="pl-cancel">Cancel</a>
</div>
</form>
</div>
<div id="lists">
<table id="track-drag-holder">
</table>
</div>
</div>
<div id="sidebar">
<ul id="playlists">
</ul>
<div id="create-playlists">
<a id="add-playlist" href="{{login_url}}">Playlist</a>
<a id="add-smart-playlist" href="{{login_url}}" class="smart-playlist">Smart Playlist</a>
</div>
<div id="artwork">
<img src="http://a1.soundcloud.com/avatars/0001/1308/i039964_big.jpg">
</div>
</div>
<div id="footer">
<input type="image" id="prev" value=" " src="/images/empty.png" />
<input type="image" id="play" value=" " src="/images/empty.png" />
<input type="image" id="next" value=" " src="/images/empty.png" />
<input type="image" id="rand" title="Shuffle Playlist" value=" " src="/images/empty.png" />
<input type="image" id="loop" title="Repeat Playlist" value=" " src="/images/empty.png" />
<div id="speaker-mute"></div>
<div id="volume" class="ui-slider-1">
<div class="ui-slider-handle"></div>
</div>
<div id="speaker"></div>
<div id="player-display">
<img src="/images/logo-mini.png" class="logo">
<div id="artist">
</div>
<div id="position"></div>
<div id="progress">
<img class="waveform" src="/images/empty.png">
<div class="inner">
<div class="playhead"></div>
</div>
<div class="loading"></div>
</div>
<div id="duration"></div>
</div>
</div>
<div id="about-box">
<a href="#close" class="close">X</a>
<h1>The Cloud Player</h1>
<img src="/images/about-thumb.png" width="294" height="238" id="about-thumb" alt="Thumbnail">
<p>The Cloud Player is a <strong>web-based music player</strong> that let’s you...</p>
<ul id="feature-list">
<li id="feature-find"><span></span><strong>Find and play</strong> all tracks from SoundCloud</li>
<li id="feature-save"><span></span><strong>Save playlists</strong> to your Google Account</li>
<li id="feature-smart"><span></span>Make <strong>smart playlists</strong> based on genre, BPM, etc</li>
<li id="feature-share"><span></span><strong>Share</strong> your ready-made playlists with your friends</li>
<li id="feature-collaborate"><span></span><strong>Collaborate</strong> in making the best playlists ever</li>
</ul>
<div id="built-by">
<p>
<img src="/images/erichenrik.png" width="90" height="51" alt="Henrik & Eric">
Built by <a href="http://hinkeb.com">Henrik Berggren</a> & <a href="http://eric.wahlforss.com">Eric Wahlforss</a> using
<a href="http://appengine.google.com">Google App Engine</a>, <a href="http://python.org">Python</a>, <a href="http://jquery.com">jQuery</a>,
<a href="http://www.schillmania.com/projects/soundmanager2/">SoundManager 2</a>, <a href="http://www.everaldo.com/crystal/">Crystal</a> and the <a href="http://soundcloud.com/api">SoundCloud API</a>. Also thanks to <a href="http://bassistance.de/">Jörn</a> for the back-button support. Do you want to contribute? Go ahead and <a href="http://github.com/hinke/the-cloud-player/tree/master">fork from GitHub</a>!
</p>
</div>
</div>
<!-- TEMPLATES -->
<div id="templates">
<div id="playlist">
<table class="list-header">
<thead>
<tr>
<th> </th>
<th>Title</th>
<th>Artist</th>
<th>Time</th>
<th>Description</th>
<th>BPM</th>
<th>Genre</th>
</tr>
</thead>
</table>
<div>
<table>
<tbody>
</tbody>
</table>
</div>
</div>
<div id="playlist-row">
<table>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</div>
</div>
<div id="share-playlist">
<div class="share-playlist">
<a href="#close" class="close">X</a>
<h1>Share This Playlist</h1>
<p>Send this link to anyone who you want to share this playlist with:</p>
<input type="text" value="foobar">
</div>
</div>
<!-- END TEMPLATES -->
</body>
</html>