diff --git a/bubble.js b/bubble.js index f5f1b2a..6bbaced 100644 --- a/bubble.js +++ b/bubble.js @@ -2,6 +2,9 @@ async function bubble() { const e = document.querySelectorAll(".bar"); for (let i = 0; i < e.length - 1; i++) { for (let j = 0; j < e.length - i - 1; j++) { + if(paused==1){ + await pauser() + } e[j].style.background = "blue"; e[j + 1].style.background = "red"; diff --git a/index.html b/index.html index 05cfd54..8edd00c 100644 --- a/index.html +++ b/index.html @@ -20,7 +20,7 @@