-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (30 loc) · 1.15 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Simple Media Player</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h1>My Simple Media Player</h1>
<div class="player-controls">
<audio id="audio-player" preload="auto" controls></audio>
<div class="controls">
<button onclick="previousTrack()">◀◀</button>
<button onclick="togglePlayPause()">▶/❚❚</button>
<button onclick="nextTrack()">▶▶</button>
</div>
<input type="range" id="progress-bar" value="0" max="100">
<input type="range" id="volume-control" min="0" max="1" step="0.1" value="0.5" onchange="setVolume(this.value)">
</div>
<div class="playlist">
<ul id="track-list">
<!-- Playlist will be populated dynamically by JavaScript -->
</ul>
</div>
</div>
<script src="script.js"></script>
</body>
</html>