audio-player: removed unused elements

This commit is contained in:
Trek H 2019-07-18 16:12:31 +09:30
parent 99acedb343
commit f0b198b612
2 changed files with 2 additions and 3 deletions

View File

@ -12,7 +12,6 @@
<div class="jumbotron">
<div class="container-fluid">
<input type="file" id="input">
<textarea id="content"></textarea>
</div>
</div>
</body>

View File

@ -6,9 +6,9 @@ function playFile() {
const input = event.target.files[0]
const reader = new FileReader()
reader.onload = event => playData(event.target.result) // desired file content
reader.onload = event => playData(event.target.result)
reader.onerror = error => reject(error)
reader.readAsArrayBuffer(input) // you could also read images and other binaries
reader.readAsArrayBuffer(input)
}
function playData(array){