the project starts up with an error, but you can run
toggleDetails() {
var item = document.getElementsByClassName("list-wrapper");
var next = document.getElementsByClassName("ico-next");
var divcard = document.getElementsByClassName("divcard");
for (var i = 0; i < item.length; iPP) {
item[i].index = i;
item[i].onclick = function () {
var num = this.index;
if (divcard[num].style.display === "block") {
next[num].style.transform = "rotate(0)";
divcard[num].style.display = "none";
} else {
next[num].style.transform = "rotate(90deg)";
divcard[num].style.display = "block";
}
}
}
}