Skip to content

Commit 7990d25

Browse files
authored
Merge pull request #8 from DSDmark/test
update
2 parents c2fd514 + 964443f commit 7990d25

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

assets/js/index.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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-
>>>>>>> 141ad495338db7854c07ee1ae9ffeeb6ebc6f429
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
} )
8885
function render() {
8986
BubbleSort.startup()

assets/style/style.css

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
body{
2-
<<<<<<< HEAD
32
display:grid;
43
place-items:center;
54
min-height:100vh;
@@ -20,12 +19,4 @@ body{
2019
width: auto;
2120
height:auto;
2221
}
23-
=======
24-
background-color: gray;
25-
display: flex;
26-
justify-content: center;
27-
align-items: center;
28-
min-height: 100vh;
29-
overflow: hidden;
30-
}
31-
>>>>>>> 141ad495338db7854c07ee1ae9ffeeb6ebc6f429
22+

index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,10 @@
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>

0 commit comments

Comments
 (0)