-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (41 loc) · 1.23 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
<html>
<head>
<style>
.drop-zone {
width: 590px;
border: 2px dashed #bbb;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
padding: 25px;
text-align: center;
font: 20pt bold 'Vollkorn';
color: #bbb;
margin-bottom: 20px;
}
.volume-control{
display: block;
}
canvas{
display: block;
border: 2px dashed #bbb;
}
</style>
</head>
<body>
<h1>Simple web player</h1>
<div class="drop-zone">Drop audio file here</div>
<input class="file-input" type="file" id="input">
<h2>Control buttons</h2>
<button class="play" disabled>Play</button>
<button class="stop" disabled>Stop</button>
<h2>
Now playing:
<span class="playing-file-name"> --- </span>
</h2>
<canvas width="640" height="360"></canvas>
<h2>Volume</h2>
<input class="volume-control" type="range" min="0" max="1" step="0.01" value="0.5">
<script src="main.js"></script>
</body>
</html>