1 line
409 B
JavaScript
1 line
409 B
JavaScript
window.VT=window.VT||{},VT.AppCollapsible=function(a){function b(b){Object.assign(c,b),a.querySelector(".bar > .toggle > .app-icon").classList.toggle("-r180",c.show),a.querySelectorAll(".body").forEach(function(a){a.style.height=c.show?a.children[0].offsetHeight+"px":"0"})}var c={show:!0};a.querySelector(".bar > .toggle").addEventListener("click",function(){b({show:!c.show})}),a.appCollapsible={update:b}}; |