-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
99 lines (93 loc) · 3.4 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>A/B Player</title>
<meta
name="description"
content="Toggle between two audio files to compare"
/>
<meta name="author" content="Matt Bartley" />
<meta property="og:title" content="A/B Audio Player" />
<meta property="og:type" content="website" />
<meta
property="og:description"
content="Toggle between two audio files to compare"
/>
<meta property="og:image" content="image.png" />
<link rel="icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap"
rel="stylesheet"
/>
<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"
/>
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<div id="intro">
<h1>A/B Player</h1>
<div id="tagline">
A zero-dependency HTML, CSS, Javascript audio player.
</div>
<a href="https://github.com/mattbartley/AB-Audio-Player" target="_blank"
><i class="fa-brands fa-github"></i> Open Source on GitHub</a
>
<p>Toggle between two audio files to compare them side-by-side.</p>
</div>
<div class="players">
<div
class="player__wrapper"
data-audio-a="./assets/sound1-a.mp3"
data-audio-b="./assets/sound1-b.mp3"
>
<div class="progress__container progress">
<div class="progress__bar progress__fill"></div>
</div>
<div class="ab__controls">
<button class="ab__button a__button" disabled="true">A</button>
<button class="ab__button b__button" disabled="true">B</button>
</div>
<div class="play__stop__controls">
<button class="play__pause__button play__button" disabled="true">
<i class="fa-solid fa-play"></i>
</button>
<button class="play__pause__button stop__button" disabled="true">
<i class="fa-solid fa-stop"></i>
</button>
</div>
</div>
<div
class="player__wrapper"
data-audio-a="./assets/sound2-a.mp3"
data-audio-b="./assets/sound2-b.mp3"
>
<div class="progress__container progress">
<div class="progress__bar progress__fill"></div>
</div>
<div class="ab__controls">
<button class="ab__button a__button" disabled="true">A</button>
<button class="ab__button b__button" disabled="true">B</button>
</div>
<div class="play__stop__controls">
<button class="play__pause__button play__button" disabled="true">
<i class="fa-solid fa-play"></i>
</button>
<button class="play__pause__button stop__button" disabled="true">
<i class="fa-solid fa-stop"></i>
</button>
</div>
</div>
</div>
<script src="./js/ab-player.js"></script>
</body>
</html>