Update 13.09.2020

This commit is contained in:
Denys Konovalov
2020-09-13 09:59:08 +02:00
parent 25e2011db3
commit d835131cef
75 changed files with 473 additions and 1002 deletions

View File

@ -121,3 +121,18 @@
})(jQuery);
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight) {
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}