spectest/index.html

39 lines
896 B
HTML

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Audio Spectrum Visualizer</title>
<style media="screen">
html, body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
display: block;
overflow: hidden;
}
body {
background-color: #000;
}
.input {
position: absolute;
}
.canvases {
display: flex;
flex-direction: row;
}
</style>
</head>
<body>
<div class="input">
<input type="file" name="track" accept="audio/*" id="track"/>
<button id="stop">Stop</button>
</div>
<div class="canvases">
<canvas width="300" height="300" id="graph"></canvas>
<canvas id="bars" width="300" height="300"></canvas>
</div>
<script src="./index.js" charset="utf-8"></script>
</body>
</html>