-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
318 lines (236 loc) · 12.8 KB
/
main.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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Spotify - Web Player for everyone</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.1/font/bootstrap-icons.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,0,100,200,300,400,500,600,700,800,900&display=swap">
<link rel="stylesheet" href="./css/left-footer-style.css">
<link rel="stylesheet" href="./css/right-style.css">
<link rel="stylesheet" href="./css/mainstyle.css">
<link rel="stylesheet" href="./css/responsive.css">
</head>
<body class="bg-black text-white">
<div class="container-fluid p-0 d-flex">
<!-- sidebar top-->
<div class="left m-2">
<div class="home">
<div id="logo" class="mb-3 d-flex justify-content-between">
<img src="./images/logo.svg" alt="logo" width="35%">
<button class="close-btn m-2"><span class=" fs-4 bi bi-x-lg"></span></button>
</div>
<div class="nav-bar ">
<ul>
<li class="fs-5 fw-bold"><span class="bi bi-house-fill pe-4"></span>Home</li>
<li class="fs-5 fw-bold"><span class="bi bi-search pe-4"></span>Search</li>
</ul>
</div>
</div>
<!--sibedar library html-->
<div class="library mt-2">
<!-- library header html-->
<div class="library-head d-flex justify-content-between m-1">
<div class="library-collections">
<button class="tool fw-bold" onclick="show_library()"><span
class="fs-3 bi-collection pe-3 "></span>Your Library<span class="tooltiptext">Collapse
your Library</span>
</div>
</button>
<div class="add">
<span class="tool1 fs-3 bi bi-plus"><span class="tooltiptext1">Create Playlist or Floder</span>
</div>
</div>
<!-- Library body html-->
<div class="library-body playlist m-2">
<ul id="songlist">
</ul>
</div>
<!-- library footer html-->
<div class="library-footer ">
<div class=" links-footer d-flex flex-wrap lex-row mt-4 p-4">
<div><a href="void">Legal</a></div>
<div><a href="void">Privacy center</a></div>
<div><a href="void">Priacy Policy</a></div>
<div><a href="void">Cookies</a></div>
<div><a href="void">About Ads</a></div>
<div><a href="void">Accessibilty</a></div>
<div><a href="void">Notice at Collection</a></div>
<div><a href="void">Your Privacy Choices</a><svg xmlns="http://www.w3.org/2000/svg"
xml:space="preserve" viewBox="0 0 30 14" aria-labelledby="ccpa-svg-title"
style="width: 25px; padding-left: 4px; padding-bottom: 4px;">
<title id="ccpa-svg-title">California Consumer Privacy Act (CCPA) Opt-Out Icon</title>
<path d="M7.4 12.8h6.8l3.1-11.6H7.4C4.2 1.2 1.6 3.8 1.6 7s2.6 5.8 5.8 5.8z"
style="fill-rule: evenodd; clip-rule: evenodd; fill: rgb(255, 255, 255);">
</path>
<path
d="M22.6 0H7.4c-3.9 0-7 3.1-7 7s3.1 7 7 7h15.2c3.9 0 7-3.1 7-7s-3.2-7-7-7zm-21 7c0-3.2 2.6-5.8 5.8-5.8h9.9l-3.1 11.6H7.4c-3.2 0-5.8-2.6-5.8-5.8z"
style="fill-rule: evenodd; clip-rule: evenodd; fill: rgb(0, 102, 255);"></path>
<path
d="M24.6 4c.2.2.2.6 0 .8L22.5 7l2.2 2.2c.2.2.2.6 0 .8-.2.2-.6.2-.8 0l-2.2-2.2-2.2 2.2c-.2.2-.6.2-.8 0-.2-.2-.2-.6 0-.8L20.8 7l-2.2-2.2c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0l2.2 2.2L23.8 4c.2-.2.6-.2.8 0z"
style="fill: rgb(255, 255, 255);"></path>
<path
d="M12.7 4.1c.2.2.3.6.1.8L8.6 9.8c-.1.1-.2.2-.3.2-.2.1-.5.1-.7-.1L5.4 7.7c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0L8 8.6l3.8-4.5c.2-.2.6-.2.9 0z"
style="fill: rgb(0, 102, 255);"></path>
</svg></div>
<div><a href="void">Cookies</a></div>
</div>
<div class="link-language-button ps-4 mt-2">
<button class="btn text-white"><span class="bi bi-globe pe-1"></span>English</button>
</div>
</div>
</div>
</div>
<!--right window html-->
<div class="m-2 right">
<div class="header right-header d-flex justify-content-between align-items-center m-2">
<div class="d-flex align-items-center">
<div>
<button id="hamburger-btn"><span class=" bi bi-list"></span></button>
</div>
<div class="chevron-buttons">
<button class="fs-5 bi bi-chevron-left ms-3 me-1 bg-black"></button>
<button class="fs-5 bi bi-chevron-right "></button>
</div>
</div>
<div class="sign-buttons ">
<button id="smenu" class="sign-up-btn fs-5" ><span class=" fs-3 bi bi-person-circle me-2"></span>
<span id="profile_name" ></span>
</button>
<div class="sub-menu-wrap" id="submenu">
<div class="sub-menu">
<div class="user-info">
<img src="./images/user.svg">
<span id="user_name" ></span>
</div>
<hr>
<a href="#" class="sub-menu-link" id="sub-menu-link-id1">
<div>
<img id="settingimg" src="./images/setting.svg">
<span class="sub-menu-text">Setting</span>
</div>
<span class="arrow">></span>
</a>
<btn class="sub-menu-link" id="sub-menu-link-id2">
<div>
<img id="signoutimg" src="./images/logout.svg">
<span class="sub-menu-text">Sign Out</span>
</div>
<span class="arrow">></span>
</btn>
</div>
</div>
</div>
</div>
<div class="spotify-playlist d-flex flex-column mb-2">
<div class="playlist-card-1 mb-4">
<div>
<h4>Spotify Playlists</h4>
</div>
<div class="cardcontainer">
</div>
</div>
</div>
<div class="playlist-footer m-2 pt-4">
<div class="ff d-flex justify-content-between">
<div class="d-flex footer-list">
<div class="list">
<ul>
<li>Company</li>
<li><a href="#void">About</a></li>
<li><a href="#void">Jobs</a></li>
<li><a href="#void">For The Record</a></li>
</ul>
</div>
<div class="list">
<ul>
<li>Communities</li>
<li><a href="#void">For Artists</a></li>
<li><a href="#void">Developers</a></li>
<li><a href="#void">Advertising</a></li>
<li><a href="#void">Investors</a></li>
<li><a href="#void">Vendors</a></li>
</ul>
</div>
<div class="list">
<ul>
<li>Useful links</li>
<li><a href="#void">Support</a></li>
<li><a href="#void">Free Mobile App</a></li>
</ul>
</div>
</div>
<div class="footer-buttons">
<button><span class="bi bi-instagram "></span></button>
<button><span class="bi bi-twitter"></span></button>
<button><span class="bi bi-facebook"></span></button>
</div>
</div>
<hr>
<div class="m-2 copyright-footer">
<p>© 2024 Spotify AB</p>
</div>
</div>
<div class="playerbar fs-5 d-flex flex-column mb-2">
<div class="ex d-flex justify-content-center align-items-center">
<button class="exp-btn"><span id="exp-icon" class="bi-chevron-up"></span></button>
</div>
<div class="poster">
<img id="playimage">
</div>
<div class=" playerbarin d-flex justify-content-between ">
<div class="songinfo text-black ">
</div>
<div class="songbuttons d-flex justify-content-center">
<button id="previous"><img id="previousimg" src="./images/previous.svg"></button>
<button id="play"><img id="playimg" src="./images/play.svg"></button>
<button id="next"><img id="nextimg" src="./images/next.svg"></button>
</div>
<div class=" vv ">
<div class="songtime text-black">
</div>
<div class="d-flex flex-row">
<button class="volume" ><span id="vol" class="bi bi-volume-up"></span></button>
<input class="vol-range" type="range" min="0" max="100" value="50" >
</div>
</div>
</div>
<div class="seekbar mb-2">
<div class="fillbar">
</div>
<div class="circle">
</div>
</div>
</div>
</div>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<script src="./js/main.js"></script>
<script>
let user_var_name = document.querySelector("#profile_name");
let user_var_name1 = document.querySelector("#user_name");
let sign_out_btn = document.querySelector("#sub-menu-link-id2");
/* let UserCreds = JSON.parse(sessionStorage.getItem("user-creds"));
let UserInfo = Json.parse(sessionStorage.getItem("user-info"));
let first_name = UserInfo.split(" ")[0]; */
let signout = () =>{
sessionStorage.removeItem("user-creds");
sessionStorage.removeItem("user-info");
window.location.replace("sign.html");
}
let CheckCred = () =>{
if( !sessionStorage.getItem("user-creds")){
window.location.replace("sign.html");
}
else{
user_var_name.innerHTML=first_name;
user_var_name1.innerHTML=first_name;
}
}
/*window.addEventListener("load", CheckCred); */
sign_out_btn.addEventListener("click", signout);
</script>
</html>