Skip to content

Commit f41cf38

Browse files
authored
Class ".active-button" corrected to ".active-btn'
1 parent 63d562f commit f41cf38

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
(function () {
22
[...document.querySelectorAll(".control")].forEach(button => {
33
button.addEventListener("click", function() {
4-
document.querySelector(".active-button").classList.remove("active-button");
5-
this.classList.add("active-button");
4+
document.querySelector(".active-btn").classList.remove("active-btn");
5+
this.classList.add("active-btn");
66
document.querySelector(".active").classList.remove("active");
77
document.getElementById(button.dataset.id).classList.add("active");
88
})

0 commit comments

Comments
 (0)