2023-07-19 16:16:50 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>FFT generator</title>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<audio id="audio"></audio>
|
|
|
|
<div id="app"></div>
|
|
|
|
<script type="module" src="/src/main.ts">
|
|
|
|
</script>
|
2023-08-03 21:55:55 +00:00
|
|
|
<div class="button-wrapper">
|
|
|
|
<button id="button">Analyze!</button>
|
|
|
|
<a id="download" href="">Download DB</a>
|
|
|
|
</div>
|
|
|
|
<div class="canvas-wrapper">
|
|
|
|
<svg id="waveform-canvas" viewBox="0 0 500 500" preserveAspectRatio="none"></svg>
|
|
|
|
</div>
|
2023-07-19 16:16:50 +00:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
width: 100%;
|
2023-08-03 21:55:55 +00:00
|
|
|
min-height: 100vh;
|
2023-07-19 16:16:50 +00:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
2023-08-03 21:55:55 +00:00
|
|
|
/*
|
2023-07-19 16:16:50 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
flex-direction: column;
|
2023-08-03 21:55:55 +00:00
|
|
|
*/
|
2023-07-19 16:16:50 +00:00
|
|
|
}
|
|
|
|
|
2023-08-03 21:55:55 +00:00
|
|
|
.button-wrapper {
|
|
|
|
display: flex;
|
|
|
|
width: 100%;
|
|
|
|
height: 4rem;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-wrapper>* {
|
2023-07-19 16:16:50 +00:00
|
|
|
padding: 1.2rem 2rem;
|
2023-08-03 21:55:55 +00:00
|
|
|
width: 100%;
|
|
|
|
margin: 0 auto;
|
2023-07-19 16:16:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
svg {
|
2023-08-03 21:55:55 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 200px;
|
2023-07-19 16:16:50 +00:00
|
|
|
border: 1px solid black;
|
2023-08-03 21:55:55 +00:00
|
|
|
grid-column-start: content;
|
|
|
|
}
|
|
|
|
|
|
|
|
.canvas-wrapper {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 0.5fr [content] 1fr 0.5fr;
|
|
|
|
column-gap: 20px;
|
|
|
|
justify-items: stretch;
|
|
|
|
align-items: stretch;
|
2023-07-19 16:16:50 +00:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|