-
Notifications
You must be signed in to change notification settings - Fork 100
/
index.html
134 lines (130 loc) · 4.97 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
<html ng-app="PlayerApp">
<head>
<title>Thirtify</title>
<link rel="stylesheet" href="style.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,700' rel='stylesheet' type='text/css'>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-route/angular-route.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/playlistcover.js"></script>
<script src="directives/responsivecover.js"></script>
<script src="directives/contextmenu.js"></script>
<script src="directives/focusme.js"></script>
<script src="filters/displaytime.js"></script>
<script src="filters/timeago.js"></script>
<script src="controllers/player.js"></script>
<script src="controllers/login.js"></script>
<script src="controllers/playlist.js"></script>
<script src="controllers/home.js"></script>
<script src="controllers/artist.js"></script>
<script src="controllers/album.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="searchbox">
<input type="text" ng-model="query" ng-change="loadsearch()" ng-keyup="loadsearch()" placeholder="Search..." />
</div>
<div class="titlebox">
<a href="#/home">SAMPLE PLAYER APPLICATION</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="#/users/{{pl.username}}/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>