-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (52 loc) · 1.62 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>HTML5 Audio Player</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="charset" content="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>HTML5 Audio Player</h1>
</header>
<section id=player>
<article id=controls>
<button class=small id=prev>←</button>
<button id=toggle>||</button>
<button class=small id=next>→</button>
<div id=volume-container>
<i>🔈</i>
<span id=volume_perc></span>
<input type=range id=volume min=0 max=100 step=2.5 value=50>
</div>
</article>
<article id=song-info>
<figure>
<img id=thumbnail alt="Song thumbnail">
<figcaption>
<span id=artist></span>
<span id=title></span>
<span id=timestamps>
<span id=currentTime></span> / <span id=duration></span>
</span>
</figcaption>
</figure>
<input type=range id=seek value=0 min=0 max=0 step=5>
</article>
<aside id=playlist-container>
<ul id=playlist>
</ul>
</aside>
</section>
<hr>
<footer>
<p>Songs by <a href="https://www.openbsd.org/lyrics.html">OpenBSD</a>,
no copyright infringement intended.
</p>
</footer>
<script type="application/javascript" src="src/audioplayer.js"></script>
<script type="application/javascript" src="main.js"></script>
</body>
</html>