2018-04-24 17:20:50 +00:00
|
|
|
$(document).ready(function() {
|
|
|
|
let c = document.getElementsByClassName("collapsible");
|
|
|
|
|
|
|
|
for (let i = 0; i < c.length; i++) {
|
|
|
|
c[i].addEventListener("click", function() {
|
2018-04-24 22:02:13 +00:00
|
|
|
this.classList.toggle("button-outline");
|
2018-04-24 17:20:50 +00:00
|
|
|
var content = this.nextElementSibling;
|
|
|
|
if (content.style.display === "block") {
|
|
|
|
content.style.display = "none";
|
|
|
|
} else {
|
|
|
|
content.style.display = "block";
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|