Skip to content

Commit 5b0a7be

Browse files
committed
remove label numbers from merge
1 parent a2b74f0 commit 5b0a7be

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

merge.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ const merge = async function (l, m, r) {
2222
if (L[i] <= R[j]) {
2323
bars[k] = L[i];
2424
barsEl.children[k].style.height = `${L[i]}%`;
25-
barsEl.children[k].children[0].innerText = L[i];
25+
// barsEl.children[k].children[0].innerText = L[i];
2626
i++;
2727
} else {
2828
bars[k] = R[j];
2929
barsEl.children[k].style.height = `${R[j]}%`;
30-
barsEl.children[k].children[0].innerText = R[j];
30+
// barsEl.children[k].children[0].innerText = R[j];
3131
j++;
3232
}
3333
k++;
@@ -37,7 +37,7 @@ const merge = async function (l, m, r) {
3737
while (i < n1) {
3838
bars[k] = L[i];
3939
barsEl.children[k].style.height = `${L[i]}%`;
40-
barsEl.children[k].children[0].innerText = L[i];
40+
// barsEl.children[k].children[0].innerText = L[i];
4141
i++;
4242
k++;
4343
await waitforme(Number(speedSlider.value));
@@ -46,7 +46,7 @@ const merge = async function (l, m, r) {
4646
while (j < n2) {
4747
bars[k] = R[j];
4848
barsEl.children[k].style.height = `${R[j]}%`;
49-
barsEl.children[k].children[0].innerText = R[j];
49+
// barsEl.children[k].children[0].innerText = R[j];
5050
j++;
5151
k++;
5252
await waitforme(Number(speedSlider.value));
@@ -71,7 +71,7 @@ const mergeS = async function (l, r) {
7171
const doGreen = async function (sz) {
7272
for (let i = 0; i < sz; ++i) {
7373
barsEl.children[i].style.backgroundColor = "green";
74-
await waitforme(20);
74+
await waitforme(Number(speedSlider.value));
7575
}
7676
};
7777

0 commit comments

Comments
 (0)