This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaylist.html
234 lines (190 loc) · 10.6 KB
/
playlist.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
<!-- BROWSER -->
<title>Playlists | Gaming Time</title>
<link rel="icon" type="image/png" href="./content/images/favicon.png">
<!-- PHOSPHORUS -->
<link rel="stylesheet" href="./phosphorus/framework.css">
<link rel="stylesheet" href="./phosphorus/app_framework.css">
<link rel="stylesheet" href="./phosphorus/dependencies.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Round" rel="stylesheet">
<script src="./phosphorus/framework.js"></script>
<!-- CSS -->
<link rel="stylesheet" href="./css/global.css">
<link rel="stylesheet" href="./css/playlist.css">
<!-- JS -->
<script src="./js/global.js"></script>
<script src="./js/playlist.js"></script>
</head>
<body onload="loadFramework(); loadPage();">
<!-- NAV RAIL -->
<aside class="nav-rail">
<img src="./content/images/favicon.png" class="not-mobile">
<a class="button icon" href="./nowplaying.html"><span class="material-icons-round">headphones</span></a>
<a class="button icon outlined" href="./playlist.html"><span class="material-icons-round">library_music</span></a>
<div class="sep horizontal"></div>
<button class="button icon" onclick="toggleFullScreen();" id="fullscreen-button"><span class="material-icons-round">fullscreen</span></button>
<div class="avatar-square" style="background-image: url(./content/images/record-placeholder.png)" id="avatar-square"></div>
<div class="sep invisible grow"></div>
<button class="button icon" id="drawer-open-button" onclick="openDrawer();">
<span class="material-icons-round">more_vert</span>
</button>
</aside>
<!-- DRAWER -->
<div class="drawer-overlay hide" onclick="closeDrawer();">
<div class="drawer-content">
<button class="button" onclick="queuePlaylist();">
<span class="material-icons-round">playlist_add</span>
Queue this playlist
</button>
<div class="sep horizontal"></div>
<!-- GLOBAL BUTTONS-->
<button class="button" id="fullscreen-button" onclick="toggleFullScreen();">
<span class="material-icons-round">fullscreen</span>
Enter fullscreen
</button>
<button class="button"onclick="signOut();">
<span class="material-icons-round">logout</span>
Sign out
</button>
<button class="button"onclick="reloadPage();">
<span class="material-icons-round">restart_alt</span>
<div class="content-vertical">
Reload page
<h4>Discards changes</h4>
</div>
</button>
</div>
<button class="button icon secondary contained drawer-close">
<span class="material-icons-round">cancel</span>
</button>
</div>
<!-- SIDEBAR -->
<aside class="sidebar">
<div class="content-vertical" id="playlist-list">
<!-- <button class="button playlist-list-button">
<div class="content-vertical">
<h3>Playlist name</h3>
<p>Playlist creator</p>
</div>
<span class="material-icons-round">keyboard_arrow_right</span>
</button> -->
</div>
<button class="button outlined" id="toggle-playlist-list-button" onclick="togglePlaylistList();">Show all playlists</button>
<button class="button secondary contained" onclick="showPlaylistOptions();">Create a new playlist</button>
</aside>
<!-- PLAYLIST OPTIONS MODAL -->
<div class="modal-overlay hide" id="modal-playlist-options" style="display: none;">
<div class="modal">
<div class="modal-header">
<h1>Playlist options</h1>
<button class="button icon contained" onclick="closeModal('modal-playlist-options');"><span class="material-icons-round">close</span></button>
</div>
<div class="modal-content" style="align-items: stretch;">
<div class="input text" id="options-name">
<input maxlength="50" type="text" placeholder="Playlist name..." autofocus>
</div>
<div class="input text" id="options-thumbnail-url">
<input type="text" placeholder="Playlist thumbnail URL..." autofocus>
</div>
<div class="input textarea" id="options-description">
<textarea maxlength="500" placeholder="A short description of your epic playlist..."></textarea>
</div>
<button id="options-update-button" class="button secondary contained" onclick="">Update playlist</button>
<button id="options-delete-button" class="button secondary" onclick="deletePlaylist();">Delete playlist</button>
</div>
</div>
</div>
<!-- ADD SONG MODAL -->
<div class="modal-overlay modal-overlay-add-song hide" id="modal-add-song" style="display: none;">
<div class="modal modal-add-song">
<div class="modal-header">
<h1>Add a Song</h1>
<button class="button icon contained" onclick="closeAddSongModal();"><span class="material-icons-round">close</span></button>
</div>
<div class="modal-content">
<div class="content-horizontal except">
<div class="input text" id="input-search">
<input type="text" placeholder="URL or search term..." autofocus>
</div>
<button class="button icon secondary contained" id="search-button" onclick="searchForSongs();"><span class="material-icons-round">search</span></button>
</div>
<!-- SEARCH RESULTS -->
<div class="search-results" id="search-results">
<!-- <div class="search-result">
<div class="search-result-image" style="background-image: url(./content/images/record-placeholder.png);"></div>
<div class="content-vertical">
<h4>Moth To A Flame (Extended Mix)</h4>
<p>The Weeknd | 4:59</p>
<button class="button secondary contained">Add to queue</button>
</div>
</div> -->
<div class="search-result empty"></div>
<div class="search-result empty"></div>
<div class="search-result empty"></div>
<div class="search-result empty"></div>
<div class="search-result empty"></div>
</div>
</div>
</div>
</div>
<!-- PLAYLIST VIEW -->
<div class="content view" id="view-playlist">
<!-- PLAYLIST INFO -->
<div class="playlist-info">
<img id="playlist-thumbnail" src="./content/images/playlist-empty-state.png">
<div class="content-vertical">
<h1 id="playlist-name">Playlist name</h1>
<h4 id="playlist-subtitle">@Creator • -- songs, --:--:--</h4>
<p id="playlist-description">
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Accusantium voluptas harum temporibus quas molestiae ex quis eveniet officia in unde fugiat iusto, magnam veniam facere quidem dolorem mollitia esse vitae!
</p>
<div class="content-horizontal except">
<button onclick="showPlaylistOptions(true);" id="playlist-settings-button" style="margin-left: 0px;" class="button icon"><span class="material-icons-round">settings</span></button>
<div id="playlist-button-divider" class="sep vertical"></div>
<button onclick="queuePlaylist();" class="button icon"><span class="material-icons-round">playlist_add</span></button>
<button onclick="openModal('modal-add-song');" id="playlist-add-button" class="button icon secondary contained"><span class="material-icons-round">queue</span></button>
</div>
</div>
</div>
<div class="content-vertical" id="playlist-queue">
<!-- SAMPLE ITEM -->
<div class="queue-item">
<div class="content-vertical">
<h4>Song 1 lol</h4>
<p>Artist • @user • 00:00:00</p>
</div>
<button class="button icon"><span class="material-icons-round">queue</span></button>
<button class="button icon"><span class="material-icons-round">delete</span></button>
</div>
<div class="queue-item empty"></div>
<div class="queue-item empty"></div>
<div class="queue-item empty"></div>
<div class="queue-item empty"></div>
<div class="queue-item empty"></div>
<div class="queue-item empty"></div>
<div class="queue-item empty"></div>
<div class="queue-item empty"></div>
</div>
<div class="content-horizontal except" id="playlist-duration">
<p>15 items, 0mins</p>
</div>
</div>
<!-- EMPTY VIEW -->
<div class="content view" id="view-empty" style="display: none;">
<div class="content-vertical">
<h2>Nothing to see here</h2>
<p>
Absolutely nothing.
</p>
</div>
</div>
<!-- LOADER -->
<div class="content-loader" id="master-loader">
<span class="material-icons-round">hourglass_full</span>
<p></p>
</div>
</body>
</html>