Skip to content

Commit

Permalink
Update polykit-v0-3.js
Browse files Browse the repository at this point in the history
  • Loading branch information
borishrncic committed Jul 4, 2024
1 parent 5170de1 commit 8207777
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/js/polykit-v0-3.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,4 @@ document.addEventListener("DOMContentLoaded", function () {
})
});

/* End Current Page */


/* Accordions */

let acc=document.getElementsByClassName("acc-button");let i;for(i=0;i<acc.length;i++){acc[i].addEventListener("click",function(){this.classList.toggle("active");let panel=this.nextElementSibling;if(panel.style.maxHeight){panel.style.maxHeight=null;}
else{panel.style.maxHeight=panel.scrollHeight+"px";}});}
/* End Current Page */

0 comments on commit 8207777

Please sign in to comment.