-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·69 lines (64 loc) · 2.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
<!DOCTYPE html>
<html>
<head>
<title>Spotify API Player</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" />
<link rel="stylesheet" href="style.css" />
<script src="https://code.jquery.com/jquery-2.2.2.min.js" integrity="sha256-36cp2Co+/62rEAAYHLmRCPIych47CvdM+uTBJwSzWjI=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js"></script>
<script language="JavaScript" type="text/javascript" src="app.js"></script>
</head>
<body>
<div class="container margin-top-20">
<div class="pull-right">
<a href="https://accounts.spotify.com/authorize?client_id=03714c12109d487bac1d97b0c07ab200&response_type=token&redirect_uri=http://localhost:3000&scope=user-library-read user-library-modify" class="btn btn-info">Login to Spotify</a>
<a href="saved.html" target="_blank" class="btn btn-warning">View Saved Tracks</a>
</div>
<input type="hidden" id="page_id" value="index" />
<div class="clearfix"></div>
<!--Search Form-->
<div class="row margin-top-20">
<form id="search_track">
<div class="col-sm-10">
<input type="text" name="search" id="search" class="form-control" placeholder="Search for Songs!" />
</div>
<div class="col-sm-2">
<button type="submit" class="btn btn-primary btn-block">Search Songs</button>
</div>
</form>
</div>
<!--/Search Form-->
<div id="song-container">
<script id="track-template" type="text/x-handlebars-template">
<!--Songs-->
<div class="row margin-top-20 one-song">
<div class="col-sm-3">
<img src="{{image}}" class="img-responsive" />
</div>
<div class="col-sm-9">
<h2>{{name}}</h2>
<p>
By {{artist}}
</p>
<p>
Album: {{album_name}}
</p>
<div class="margin-top-20">
<audio controls>
<source src="{{preview_url}}" type="audio/mpeg">
</audio>
</div>
<div class="margin-top-20">
<button type="submit" id="save_track" value="{{id}}" class="btn btn-success btn-sm {{id}}">
<span class="glyphicon glyphicon-ok margin-right-5"></span>
Save Track
</button>
</div>
</div>
</div>
<!--/Songs-->
</div>
</script>
</div>
</body>
</html>