console.log("ddaksds");
var acc = document.getElementsByClassName("top-div");
var i;

for (i = 0; i < acc.length; i++) {
    console.log("i");
  acc[i].addEventListener("click", function() {
     // console.log('100')
    this.classList.toggle("active");
    var panel = this.nextElementSibling;
    if (panel.style.maxHeight) {
      panel.style.maxHeight = null;
      panel.style.marginBottom = null;
      panel.style.padding = null;
    } else {
      panel.style.maxHeight = panel.scrollHeight + 16 + "px";
      panel.style.marginBottom = 1+"rem";
      panel.style.padding = 1+"rem";
    }
  });
}