Commit 8789c983 authored by Hanna Schraffenberger's avatar Hanna Schraffenberger
Browse files

Functionality faq collapse

parent 1d2d94c7
......@@ -11,4 +11,22 @@
</div>
</div>
</div>
</section>
\ No newline at end of file
</section>
<script>
let coll = document.getElementsByClassName("collapsible");
let i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function() {
this.classList.toggle("active");
let content = this.nextElementSibling;
if (content.style.display === "block") {
content.style.display = "none";
} else {
content.style.display = "block";
}
});
}
</script>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment