-
Notifications
You must be signed in to change notification settings - Fork 0
/
static.html
287 lines (261 loc) · 12.5 KB
/
static.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
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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<link href="Echo%20Nest%20Static%20Playlists_files/css.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="Echo%20Nest%20Static%20Playlists_files/bootstrap.css" type="text/css">
<link rel="stylesheet" href="Echo%20Nest%20Static%20Playlists_files/jquery-ui-1.css" type="text/css">
<link rel="stylesheet" href="Echo%20Nest%20Static%20Playlists_files/app.css" type="text/css">
<title>Echo Nest Static Playlists</title>
</head>
<body>
<div class="navbar navbar-fixed-top" style="box-shadow:0px 3px 5px rgba(0,0,0,0.3);">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="http://the.echonest.com/"><img src="Echo%20Nest%20Static%20Playlists_files/logo.png"></a>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div id="top-fields" class="span12">
<div class="row">
<div class="span4 offset1">
<h1>Static Playlisting</h1>
</div>
<div class="span7 btn-toolbar" id="playlist-options">
<div class="btn-group" id="search-types">
<a class="btn" id="artist" href="#">Artist</a>
<a class="btn" id="song" href="#">Song</a>
</div>
<div class="btn-group">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Constraints <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#" id="variety">Variety</a></li>
<li><a href="#" id="distribution">Distribution</a></li>
<li><a href="#" id="tempo">Tempo</a></li>
<li><a href="#" id="duration">Duration</a></li>
<li><a href="#" id="danceability">Danceability</a></li>
<li><a href="#" id="energy">Energy</a></li>
<li><a href="#" id="artist_hotttnesss">Artist Hotttnesss</a></li>
<li><a href="#" id="song_hotttnesss">Song Hotttnesss</a></li>
<li><a href="#" id="results">Number of Songs</a></li>
</ul>
</div>
</div>
</div>
<div id="constraints"></div>
<div class="row go-button-row">
<div class="offset7 span3" id="go_status">
</div>
<div class="span1">
<button class="btn btn-success" style="display:none;" id="go">Go</button>
</div>
</div> <!-- /.row for go button -->
</div> <!-- /#top-fields -->
</div>
<div id="playlist-target" class="row"></div>
</div> <!-- /.container -->
<!-- playlist templates -->
<script type="underscore/template" id="playlist_wrapper">
<div id="playlist" class="span8 offset2 page-shadow"></div>
</script>
<script type="underscore/template" id="playlist_loading">
<div id="playlist" class="span8 offset2 spinner page-shadow"></div>
</script>
<script type="underscore/template" id="playlist_items">
<% for (var i = 0; i < songs.length; i++) { %>
<% var song = songs[i]; %>
<% var track = song.track; %>
<div class="song-row playlist-item-container" data-song="<%=song.id%>">
<div class="row playlist-item-content">
<div class="release-image-play-button span2">
<div class="play-button2" id="<%=song.id%>">
<div class="release-img-container">
<img class="release-img" src="<%=track.release_image%>"/>
</div>
<div class="play-button-inner" id="<%=song.id%>" data-mp3="<%=track.preview_url%>" data-status="" data-prev_song="<%=song.prev%>" data-next_song="<%=song.next%>">
<img src="static/img/loading.png" style="max-width:100%; height:auto;"/>
</div>
</div>
</div> <!-- /.release-image-play-button -->
<div class="title-artist-and-audio-qualities span6">
<div class="title-and-artist row">
<h3><i><%=song.title%></i></h3>
-
<h3><%=song.artist_name%></h3>
</div> <!-- /.title-and-artist -->
<div class="smaller audio-qualities-row row" style="padding-bottom: 5px">
<div class="span3">
<div class="row">
<div class="tooltipped" data-original-title="Beats per minute">
<strong>Tempo</strong>
</div>
<div class="progress">
<div class="bar" style="width:<%=(100*song.audio_summary.tempo/240)%>px; height:12px;"></div>
</div>
<div class="audio-data">
<%print(Math.floor(song.audio_summary.tempo))%>
</div>
</div>
</div> <!-- / tempo info -->
<div class="span3">
<div class="row">
<div class="tooltipped" data-original-title="A measure of the rhythmic intensity">
<strong>Danceability</strong>
</div>
<div class="progress">
<div class="bar" style="width:<%=(100*song.audio_summary.danceability)%>px; height:12px;"></div>
</div>
<div class="audio-data">
<%=(Math.round(song.audio_summary.danceability*100)/100)%>
</div>
</div>
</div> <!-- / danceability info -->
</div> <!-- /.audio-qualities-row -->
<div class="smaller audio-qualities-row row">
<div class="span3">
<div class="row">
<div class="tooltipped" data-original-title="A measure of the power and drive">
<strong>Energy</strong>
</div>
<div class="progress">
<div class="bar" style="width:<%=(song.audio_summary.energy*100)%>px; height:12px;"></div>
</div>
<div class="audio-data">
<%=(Math.round(song.audio_summary.energy*100)/100)%>
</div>
</div>
</div> <!-- / energy info -->
<div class="span3">
<div class="row">
<% if (song.artist_hotttnesss !== undefined && song.artist_hotttnesss !== 0) { %>
<div class="tooltipped" data-original-title="A measure of the total audio volume">
<strong>Hotttnesss</strong>
</div>
<div class="progress">
<div class="bar" style="width:<%=(song.artist_hotttnesss*100)%>px; height:12px;"></div>
</div>
<div class="audio-data">
<%=(Math.round(song.artist_hotttnesss*100)/100)%>
</div>
<% } %>
</div>
</div> <!-- / artist_hotttnesss info -->
</div> <!-- /.audio-qualities-row -->
</div> <!-- /.title-artist-and-audio-qualities -->
</div> <!-- /.playlist-item-content -->
<div class="row border-for-bottom-of-playlist-item">
<hr class="" style="margin-top:0px; padding-top:0px; margin-bottom:0px; padding-bottom:0px;">
</div>
</div> <!-- /.playlist-item-container -->
<% } %>
</script>
<!-- constraint templates -->
<script type="underscore/template" id="constraint_wrapper">
<div class="constraint row" data-type="<%=type%>">
<div class="span2 offset1">
<span class="hint" style="display:inline-block;" data-content="<%=hint.content%>" title="<%=hint.title%>">
<h4><%=title%><span style="font-size:x-small; color:#888;"> <sup>?</sup></span></h4>
</span>
</div>
<div class="span8 constraint-container">
<%=wrapped_html%>
</div>
<div class="span1">
<a class="close" href="#">×</a>
</div>
</div>
</script>
<script type="underscore/template" id="add_artist">
<div class="control-group">
<div class="row">
<div class="span6">
<input type="search" class="span6 artist-search artist-only-search" placeholder="Artist Name" data-prev_val="" data-id="">
</div>
</div>
<div class="row status-msg hide">
<span class="spinner" style="background-image:url('static/img/ajax-loader.gif'); background-repeat:no-repeat; background-position:center; width:15px; height:15px; display:none; float:left;"></span>
<span class="data-status search-status" data-status="failure"> </span>
</div>
</div>
</script>
<script type="underscore/template" id="add_song">
<div class="control-group add-song-control-group">
<div class="row">
<div class="span4">
<input type="search" class="song-search span4" placeholder="Title" data-prev_val="" data-id="">
</div>
<div class="span4">
<input type="search" class="artist-search span4" placeholder="Artist" data-prev_val="" data-id="">
</div>
</div>
<div class="row status-msg hide">
<span class="spinner" style="background-image:url('static/img/ajax-loader.gif'); background-repeat:no-repeat; background-position:center; width:15px; height:15px; display:none;"></span>
<span class="span7 data-status search-status" data-status="failure"> </span>
</div>
</div>
</script>
<script type="underscore/template" id="added_artist">
<div class="song row">
<div class="span8">
<h4><%=artist_name%></h4>
</div>
</div>
</script>
<script type="underscore/template" id="added_song">
<div class="song row">
<div class="span8">
<h4><i><%=song.title%></i></h4>
-
<h4><%=song.artist_name%></h4>
</div>
</div>
</script>
<script type="underscore/template" id="add_distribution">
<div class="btn-group">
<button class="btn toggle" value="focused">Focused</button>
<button class="btn toggle" value="wandering">Wandering</button>
</div>
</script>
<script type="underscore/template" id="add_single_slider">
<div class="row">
<div class="span6 slider-container">
<div class="single-slider" data-min="<%=min%>" data-max="<%=max%>" data-default_val="<%=defalt%>" data-step="<%=step%>" data-param_name="<%=type%>"></div>
</div>
<div class="span2 slider-value-container slider_value" id=<%print('"show_val_'+type+'"')%>>
</div>
</div>
</script>
<script type="underscore/template" id="add_double_slider">
<div class="row">
<%
var param1name = 'min_' + type;
var param2name = 'max_' + type;
if (type === 'artist_hotttnesss') {
param1name = 'artist_min_hotttnesss';
param2name = 'artist_max_hotttnesss';
}
if (type === 'song_hotttnesss') {
param1name = 'song_min_hotttnesss';
param2name = 'song_max_hotttnesss';
}
%>
<div class="span6 slider-container">
<div class="double-slider" data-min="<%=min%>" data-max="<%=max%>" data-step="<%=step%>" data-param1_name="<%=param1name%>" data-param2_name="<%=param2name%>"></div>
</div>
<div class="span2 slider-value-container">
<span class="slider_value" id=<%print('"show_min_'+type+'"')%>></span> to <span class="slider_value" id=<%print('"show_max_'+type+'"')%>></span>
</div>
</div>
</script>
<script type="text/javascript" src="Echo%20Nest%20Static%20Playlists_files/raphael.js"></script>
<script type="text/javascript" src="Echo%20Nest%20Static%20Playlists_files/en_logo.js"></script>
<script type="text/javascript" src="Echo%20Nest%20Static%20Playlists_files/jquery.js"></script>
<script type="text/javascript" src="Echo%20Nest%20Static%20Playlists_files/underscore.js"></script>
<script type="text/javascript" src="Echo%20Nest%20Static%20Playlists_files/backbone-min.js"></script>
<script type="text/javascript" src="Echo%20Nest%20Static%20Playlists_files/bootstrap.js"></script>
<script type="text/javascript" src="Echo%20Nest%20Static%20Playlists_files/jquery-ui-1.js"></script>
<script type="text/javascript" src="Echo%20Nest%20Static%20Playlists_files/app.js"></script>
<!-- sound manager 2 -->
<script type="text/javascript" src="Echo%20Nest%20Static%20Playlists_files/soundmanager2.js"></script>
</body></html>