-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.js
More file actions
22 lines (20 loc) · 734 Bytes
/
Copy pathscripts.js
File metadata and controls
22 lines (20 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function toggleIcon() {
const icon = document.getElementById("toggle-icon")
const button = document.getElementById("toggle-button")
const span = button.querySelector("span")
if (icon.classList.contains("bi-caret-down-fill")) {
icon.classList.remove("bi-caret-down-fill")
icon.classList.add("bi-caret-up-fill")
span.textContent = "Hide all features"
} else {
icon.classList.remove("bi-caret-up-fill")
icon.classList.add("bi-caret-down-fill")
span.textContent = "See all features"
}
}
// Need to replace
function toggleActive(button) {
const buttons = document.querySelectorAll(".select-month button")
buttons.forEach((btn) => btn.classList.remove("active"))
button.classList.add("active")
}