@@ -22,12 +22,12 @@ const merge = async function (l, m, r) {
22
22
if ( L [ i ] <= R [ j ] ) {
23
23
bars [ k ] = L [ i ] ;
24
24
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];
26
26
i ++ ;
27
27
} else {
28
28
bars [ k ] = R [ j ] ;
29
29
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];
31
31
j ++ ;
32
32
}
33
33
k ++ ;
@@ -37,7 +37,7 @@ const merge = async function (l, m, r) {
37
37
while ( i < n1 ) {
38
38
bars [ k ] = L [ i ] ;
39
39
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];
41
41
i ++ ;
42
42
k ++ ;
43
43
await waitforme ( Number ( speedSlider . value ) ) ;
@@ -46,7 +46,7 @@ const merge = async function (l, m, r) {
46
46
while ( j < n2 ) {
47
47
bars [ k ] = R [ j ] ;
48
48
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];
50
50
j ++ ;
51
51
k ++ ;
52
52
await waitforme ( Number ( speedSlider . value ) ) ;
@@ -71,7 +71,7 @@ const mergeS = async function (l, r) {
71
71
const doGreen = async function ( sz ) {
72
72
for ( let i = 0 ; i < sz ; ++ i ) {
73
73
barsEl . children [ i ] . style . backgroundColor = "green" ;
74
- await waitforme ( 20 ) ;
74
+ await waitforme ( Number ( speedSlider . value ) ) ;
75
75
}
76
76
} ;
77
77
0 commit comments