File tree Expand file tree Collapse file tree 3 files changed +5
-18
lines changed
Expand file tree Collapse file tree 3 files changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,9 @@ const BubbleSort = {
1919 ctx . clearRect ( 0 , 0 , CH , CW )
2020 const lineSpacing = 10
2121 ctx . lineWidth = 5
22- << < << << HEAD
2322 for ( let j = 1 ; j < this . seedValue . length ; j ++ ) {
24- === === =
2523
2624 for ( let j = 0 ; j < this . seedValue . length ; j ++ ) {
27- >>> >>> > 141 ad495338db7854c07ee1ae9ffeeb6ebc6f429
2825 const y = j * lineSpacing
2926 ctx . beginPath ( )
3027 ctx . moveTo ( y , CH )
@@ -40,7 +37,8 @@ const BubbleSort = {
4037 ctx . stroke ( )
4138 }
4239 }
43- } ,
40+ }
41+ } ,
4442 update ( ) {
4543
4644 if ( this . seedValue [ this . j ] > this . seedValue [ this . j + 1 ] ) {
@@ -82,8 +80,7 @@ const BubbleSort = {
8280// You could use window.requestAnimationFrame as well. but, for simplicity i'm using setInterval.
8381 let cleaer ;
8482 stopButton . addEventListener ( 'click' , ( ) => {
85- // p
86- // clearInterval(cleaer);
83+ clearInterval ( cleaer ) ;
8784 } )
8885function render ( ) {
8986 BubbleSort . startup ( )
Original file line number Diff line number Diff line change 11body {
2- <<<<<<< HEAD
32 display : grid;
43 place-items : center;
54 min-height : 100vh ;
2019 width : auto;
2120 height : auto;
2221}
23- = = = = = = =
24- background- color : gray;
25- dis play: flex;
26- justify- content: center;
27- align- items: center;
28- min- height: 100vh;
29- overflow: hidden;
30- }
31- > > > > > > > 141ad495338db7854c07ee1ae9ffeeb6ebc6f429
22+
Original file line number Diff line number Diff line change 6969 /> </ label
7070 > < br />
7171 </ div >
72- < canvas id ="cvs "> </ canvas >
73- </ div >
7472 <!-- The main section when all things will heppening -->
7573 <!-- The main section when all things will heppening -->
7674 < canvas id ="cvs "> </ canvas >
75+ </ div >
7776 < script src ="./assets/js/index.js "> </ script >
7877 </ body >
7978</ html >
You can’t perform that action at this time.
0 commit comments