mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 12:50:36 +01:00
Fix refresh bug in audio test
This commit is contained in:
parent
64adb49b81
commit
4fa91ef3ae
@ -31,7 +31,7 @@
|
||||
<div id="test">
|
||||
Hashes: <table class="hashes"></table>
|
||||
<br>
|
||||
Sums: <table class="sum"></table>
|
||||
Sums: <table class="sums"></table>
|
||||
<button>refresh</button>
|
||||
</div>
|
||||
<script src="audioTest.js"></script>
|
||||
|
@ -13,6 +13,7 @@
|
||||
|
||||
const container = document.getElementById("test");
|
||||
const hashContainer = container.querySelector(".hashes");
|
||||
const sumsContainer = container.querySelector(".sums");
|
||||
let hashSets = Object.create(null);
|
||||
|
||||
function createSet(set){
|
||||
@ -144,7 +145,7 @@
|
||||
sumRow.appendChild(nameCell);
|
||||
const sumCell = document.createElement("td");
|
||||
sumRow.appendChild(sumCell);
|
||||
container.querySelector(".sum").appendChild(sumRow);
|
||||
sumsContainer.appendChild(sumRow);
|
||||
|
||||
// Start audio processing
|
||||
context.startRendering();
|
||||
@ -185,6 +186,7 @@
|
||||
|
||||
function createAllHashData(){
|
||||
hashContainer.innerHTML = "";
|
||||
sumsContainer.innerHTML = "";
|
||||
hashSets = Object.create(null);
|
||||
createEmptyData();
|
||||
createHashData(1e4);
|
||||
|
Loading…
x
Reference in New Issue
Block a user