-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (72 loc) · 2.36 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel='shortcut icon' href='https://andy.largent.org/tg.png' />
<title>Custom Music Player</title>
<!-- Font Awesome Icons -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<!-- Google Fonts -->
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Roboto+Mono&display=swap"
rel="stylesheet"
/>
<!-- Stylesheet -->
<link rel="stylesheet" href="index.css" />
</head>
<body>
<div class="music-player">
<button id="playlist">
<i class="fa-solid fa-angle-down"></i>
</button>
<img id="song-image" src="https://colddb.netlify.app/images/by_your_side.jpg" />
<div class="song-details">
<p id="song-name">By Your Side</p>
<p id="song-artist">Jonas Blue</p>
</div>
<div class="player-options">
<button id="shuffle">
<i class="fa-solid fa-shuffle"></i>
</button>
<button id="prev">
<i class="fa-solid fa-backward-step"></i>
</button>
<button id="play">
<i class="fa-solid fa-play"></i>
</button>
<button id="pause" class="hide">
<i class="fa-solid fa-pause"></i>
</button>
<button id="next">
<i class="fa-solid fa-forward-step"></i>
</button>
<button id="repeat">
<i class="fa-solid fa-repeat"></i>
</button>
</div>
<audio id="audio" preload="metadata"></audio>
<div id="progress-bar">
<div id="current-progress"></div>
</div>
<div class="time-container">
<span id="current-time">0:00</span>
<span id="max-duration">0:00</span>
</div>
<div id="playlist-container" class="hide">
<button id="close-button">
<i class="fa-solid fa-xmark"></i>
</button>
<ul id="playlist-songs"></ul>
</div>
</div>
<!-- Script -->
<script src='https://andy.largent.org/js/music-list.js'></script>
<script src="index.js"></script>
</body>
</html>