minor update

This commit is contained in:
Joshua Ashton
2025-03-13 14:06:54 -06:00
parent 2bd6b7f44e
commit 0d41bcf4d5
4 changed files with 954 additions and 629 deletions
+18
View File
@@ -0,0 +1,18 @@
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
/* Toggle between adding and removing the "active" class,
to highlight the button that controls the panel */
this.classList.toggle("active");
/* Toggle between hiding and showing the active panel */
var panel = this.nextElementSibling;
if (panel.style.display === "block") {
panel.style.display = "none";
} else {
panel.style.display = "block";
}
});
}