-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (40 loc) · 1.86 KB
/
index.html
File metadata and controls
40 lines (40 loc) · 1.86 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Music Player</title>
<link rel="icon" type="image/png" href="https://img.icons8.com/nolan/1600/audio-wave.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.2/css/all.min.css"/>
<link rel="stylesheet" href="style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsmediatags/3.9.5/jsmediatags.min.js"></script>
</head>
<body>
<div class="player-container" id="player-container">
<div class="img-container">
<label for="file-input">
<img draggable="false" src="https://e-cdns-images.dzcdn.net/images/cover/256d2f17d6dfde632b845e757ac41746/500x500-000000-80-0-0.jpg" alt="Album art" crossorigin="anonymous">
</label>
<input id="file-input" type="file" multiple accept="audio/*" hidden/>
</div>
<h2 id="title">Lonely</h2>
<h3 id="artist">2 Souls</h3>
<audio src="music/1. Lonely.mp3" controls hidden></audio>
<div class="progress-container" id="progress-container">
<div class="progress" id="progress"></div>
<div class="duration-wrapper">
<span id="current-time">0:00</span>
<span id="duration">0:00</span>
</div>
</div>
<div class="player-controls">
<i class="fas fa-backward" id="prev" title="Previous"></i>
<i class="fas fa-play main-button" id="play" title="Play"></i>
<i class="fas fa-forward" id="next" title="Next"></i>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/color-thief/2.3.0/color-thief.umd.js"></script>
<!-- Script -->
<script src="script.js"></script>
</body>
</html>