diff --git a/checkout/src/arquivos/js/components/Header.js b/checkout/src/arquivos/js/components/Header.js index 779ff4c..9f48087 100644 --- a/checkout/src/arquivos/js/components/Header.js +++ b/checkout/src/arquivos/js/components/Header.js @@ -63,7 +63,7 @@ export default class Header { if (this.progressBar && window.innerWidth > 1024) { const progressBarLista = document.querySelectorAll("#progressBar ul li"); progressBarLista.forEach((li) => { - console.log(li.children[0]) + console.log(li.children[0]); const circleOne = li.children[0].children[1].children["progress-bar-circle-1"]; const circleTwo = li.children[0].children["progress-bar-circle-2"]; const circleThree = li.children[0].children[1].children["progress-bar-circle-3"]; @@ -72,7 +72,6 @@ export default class Header { if (circleOne) { circleOne.classList.add("active"); } - if (circleTwo) { if (circleTwo.classList.contains("active")) { circleTwo.classList.remove("active"); @@ -109,24 +108,20 @@ export default class Header { circleOne.classList.remove("active"); } } - if (circleTwo) { if (circleTwo.classList.contains("active")) { circleTwo.classList.remove("active"); } } - if (circleThree) { circleThree.classList.add("active"); } } - window.addEventListener("hashchange", () => { if (window.location.hash == "#/cart") { if (circleOne) { circleOne.classList.add("active"); } - if (circleTwo) { if (circleTwo.classList.contains("active")) { circleTwo.classList.remove("active"); @@ -162,7 +157,6 @@ export default class Header { circleOne.classList.remove("active"); } } - if (circleTwo) { if (circleTwo.classList.contains("active")) { circleTwo.classList.remove("active");