We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63d562f commit f41cf38Copy full SHA for f41cf38
1 file changed
app.js
@@ -1,8 +1,8 @@
1
(function () {
2
[...document.querySelectorAll(".control")].forEach(button => {
3
button.addEventListener("click", function() {
4
- document.querySelector(".active-button").classList.remove("active-button");
5
- this.classList.add("active-button");
+ document.querySelector(".active-btn").classList.remove("active-btn");
+ this.classList.add("active-btn");
6
document.querySelector(".active").classList.remove("active");
7
document.getElementById(button.dataset.id).classList.add("active");
8
})
0 commit comments