There was an error while loading. Please reload this page.
1 parent b1a6681 commit f86e657Copy full SHA for f86e657
sorting_visualizer.html
@@ -162,13 +162,14 @@
162
return new Promise(resolve=> setTimeout(resolve,ms));
163
}
164
165
- function bubsort()
+ async function bubsort()
166
{
167
if(otheron==0)
168
169
otheron=3;
170
list=document.getElementById("mylist").getElementsByTagName("li");
171
- bubblesort(list,height,height.length);
+ let a=await bubblesort(list,height,height.length);
172
+ otheron=0;
173
174
else
175
@@ -192,8 +193,8 @@
192
193
194
if (n == 1)
195
- otheron=0;
196
- return;
+ //otheron=0;
197
+ return;
198
199
for (i=0; i<n-1; i++)
200
0 commit comments