monit-dashboard/static/monit-dashboard.js
2017-01-07 13:53:08 +01:00

9 lines
239 B
JavaScript

var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].onclick = function() {
this.classList.toggle("active");
this.nextElementSibling.classList.toggle("show");
}
}