-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
70 lines (61 loc) · 1.39 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
<!DOCTYPE html>
<html>
<head>
<script type="module" src="app.js"></script>
<title>minimp3 Wasm without Emscripten</title>
</head>
<body>
<style>
#app-container {
padding-left: 16px;
padding-right: 16px;
height: 100%;
}
#wave-container {
margin-top: 16px;
margin-bottom: 16px;
position: relative;
box-sizing: border-box;
display: flex;
flex-direction: column;
width: 100%;
}
#wave-canvas {
width: 100%;
height: 200px;
border: 1px solid #aaa;
border-radius: 2px;
background-color: white;
z-index: 1;
}
#position-bar {
position: absolute;
background-color: transparent;
border-left: 1px solid #888;
height: 200px;
z-index: 2;
}
#seek-range {
width: 100%;
}
</style>
<div id="app-container">
<div>
<input type="file" id="select-file">
</div>
<div id="wave-container">
<canvas id="wave-canvas"></canvas>
<div id="position-bar"></div>
</div>
<div>
<label for="seek-range">Seek</label>
<input type="range" id="seek-range" value="0">
</div>
<div>
<label for="decode-duration-range">Seconds to decode</label>
<input type="range" id="decode-duration-range" value="10">
</div>
<button id="play-button">Play/Stop current decoded samples</button>
</div>
</body>
</html>