forked from possan/webapi-player-example
-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
166 lines (162 loc) · 6.43 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
<html ng-app="PlayerApp">
<head>
<title>Thirtify</title>
<base href="/">
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="grid12.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,700' rel='stylesheet' type='text/css'>
<script src="https://sdk.scdn.co/spotify-player.js"></script>
<script src="bower_components/jquery/jquery.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-route/angular-route.js"></script>
<script src="bower_components/vibrant/Vibrant.js"></script>
<script src="bower_components/moment/moment.js"></script>
<script src="bower_components/array-diff/array-diff.js"></script>
<script src="bower_components/underscore/underscore.js"></script>
<script src="app.js"></script>
<script src="services/auth.js"></script>
<script src="services/api.js"></script>
<script src="services/playback.js"></script>
<script src="services/playqueue.js"></script>
<script src="directives/app.js"></script>
<script src="directives/playlistcover.js"></script>
<script src="directives/responsivecover.js"></script>
<script src="directives/contextmenu.js"></script>
<script src="directives/focusme.js"></script>
<script src="directives/header.js"></script>
<script src="directives/tabcontent.js"></script>
<script src="directives/tab.js"></script>
<script src="directives/recommendations.js"></script>
<script src="filters/displaytime.js"></script>
<script src="filters/timeago.js"></script>
<script src="controllers/player.js"></script>
<script src="controllers/show.js"></script>
<script src="controllers/login.js"></script>
<script src="controllers/genre.js"></script>
<script src="controllers/chart.js"></script>
<script src="controllers/year.js"></script>
<script src="controllers/country.js"></script>
<script src="controllers/label.js"></script>
<script src="controllers/track.js"></script>
<script src="controllers/episode.js"></script>
<script src="controllers/hashtag.js"></script>
<script src="controllers/playlist.js"></script>
<script src="controllers/home.js"></script>
<script src="controllers/artist.js"></script>
<script src="controllers/app.js"></script>
<script src="controllers/album.js"></script>
<script src="controllers/audiobook.js"></script>
<script src="controllers/author.js"></script>
<script src="controllers/publisher.js"></script>
<script src="controllers/user.js"></script>
<script src="controllers/usertracks.js"></script>
<script src="controllers/playqueue.js"></script>
<script src="controllers/searchresults.js"></script>
<script src="controllers/browse.js"></script>
<script src="controllers/browsecategory.js"></script>
</head>
<body ng-controller="AppController">
<div class="fullview playerview" ng-show="showplayer">
<div ng-controller="PlayerController">
<div class="topgroup">
<div class="buttons">
<button style="padding: 8pt" onclick="history.back()"><</button>
<button style="padding: 8pt" href="#" onclick="history.forward()">></button>
</div>
<div class="searchbox" style="left: 60pt">
<form novalidate ng-submit="loadsearch()">
<input type="text" ng-model="query" placeholder="Search..." />
</form>
</div>
<div class="titlebox">
<a href="/home">THIRTIFY</a>
</div>
<div class="userbox">
Signed in as <b><a href="#/users/{{profileUsername}}">{{profileUsername}}</a></b>
<a ng-click="logout()">Log out</a>
</div>
</div>
<div class="midgroup">
<div class="menuview">
<div class="list scrollable">
<b><a href="/">MAIN</a></b>
<ul class="menuitems">
<li><a href="/" ng-class="getClass('/')">Browse</a></li>
</ul>
<b><a href="/me">YOUR MUSIC</a></b>
<ul class="menuitems">
<li><a href="/users/{{username}}/tracks" ng-class="getClass('/users/{{username}}/tracks')">Songs</a></li>
</ul>
<b><a href="/me">PLAYLISTS</a></b>
<ul class="menuitems">
<li ng-repeat="pl in playlists track by pl.id" ng-context-menu="menuOptions(pl)" ng-class="getClass('/users/{{pl.username}}/playlists/{{pl.id}}')">
<a href="/playlists/{{pl.id}}" ng-if="!pl.editing">
{{pl.name}}
</a>
<input focus-me="focusInput" ng-blur="playlistNameBlur(pl)" ng-if="pl.editing" class="edit" type="text" value="{{pl.name}}" name="title" ng-keyup="playlistNameKeyUp($event, pl)">
</li>
</ul>
</div>
<div class="preview">
<a href="/albums/{{trackdata.album.id}}">
<responsive-cover ng-model="trackdata.album.images"></responsive-cover>
</a>
<p>
<b>{{trackdata.name}}</b>
<a href="/artists/{{trackdata.artists[0].id}}">
{{trackdata.artists[0].name}}
</a>
</p>
</div>
</div>
<div class="mainview">
<div ng-view></div>
</div>
</div>
<div class="bottomgroup">
<div class="leftcontrols">
<div class="prevbutton">
<a ng-click="prev()"><img src="images/btn-prev.png" /></a>
</div>
<div class="playbutton">
<a ng-click="resume()" ng-hide="playing"><img src="images/btn-play.png" /></a>
<a ng-click="pause()" ng-show="playing"><img src="images/btn-pause.png" /></a>
</div>
<div class="nextbutton">
<a ng-click="next()"><img src="images/btn-next.png" /></a>
</div>
<div class="volume">
<input type="range" ng-change="changevolume()" min="0" max="100" ng-model="volume" />
</div>
</div>
<div class="seekcontrols">
<div class="progress">{{ progress | displaytime }}</div>
<div class="duration">{{ duration | displaytime }}</div>
<div class="slider">
<input type="range" ng-model="progress" ng-change="changeprogress()" min="0" max="{{duration}}" />
</div>
</div>
<div class="rightcontrols">
<!--
a ng-click="shuffle()">SHUF</a>
a ng-click="repeat()">REP.</a>
-->
</div>
</div>
</div>
</div>
<div class="fullview loginview" ng-show="showlogin">
<div ng-controller="LoginController">
<div class="centered">
<div class="inner">
<h1>Thirtify</h1>
<p>
This demo explores the possibilities with the Web API. To view this demo you need to sign in with your spotify account.
</p>
<a ng-click="login()" class="button big green">login</a>
</div>
</div>
</div>
</div>
</body>
</html>