-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
55 lines (42 loc) · 1.8 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
<!DOCTYPE html>
<html>
<head>
<style>
@import url('sp://import/css/eve.css');
@import url('sp://enplayer/css/main.css');
@import url('sp://enplayer/css/github.css');
</style>
<script src="sp://enplayer/js/jquery.min.js"></script>
<script src="sp://enplayer/js/rainbow-custom.min.js"></script>
<script src="sp://enplayer/js/enplayer.js"></script>
<script>
jQuery.ajaxSettings.traditional = true;
var sp;
var models;
$(document).ready(function() {
/* Instantiate the global sp object; include models & views */
sp = getSpotifyApi(1);
models = sp.require('sp://import/scripts/api/models');
});
</script>
</head>
<body>
<div id="wrapper">
<h1>Create Spotify Playlist from Echo Nest IDs</h1>
<p class="description">Given a playlist name and a list of Echo Nest song IDs, create a playlist by that name, and populate it with as many of the Songs that have Tracks as possible</p>
<h2>Playlist Definition<h2>
Playlist name: <br />
<input type="text" id="_name" placeholder="Enter a valid Spotify playlist name" size="50"/><br /><br />
Echo Nest Song IDs:
<button class="button" id="_reset" onclick="resetTextarea()">Reset text area</button></br>
<textarea id="_ids" placeholder="Enter EN Song IDs here; one per line" cols="100" rows="15"></textarea><br /><br />
<input type="submit" id="_go" value="Make Playlist!" onclick="make_it();" />
<h2>Resultant Playlist</h2>
<div id="results">
<ul id="results-list">
</ul>
</div>
<button class="add-playlist button icon" value="spotify:album:0fqSVcXza5It71LS2BJdLR" id="_forreals" onclick="create_it();"><span class="plus"></span>Add as Playlist</button><br />
</div><!-- /wrapper -->
</body>
</html>