PageSourceSearch

https://rowse.co/cdn/shop/t/71/assets/product-accordion.js?v=39741212119424637391779195426

js rowse.co collected 2026-09-25 18:41:11 UTC 2,038 bytes, 2 lines download raw bytes

1const productAcordions=document.querySelectorAll(".product__accordion details");class Accordion{constructor(el){this.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion: reduce)"),this.el=el,this.summary=el.querySelector(".product__accordion summary"),this.content=el.querySelector(".product__accordion .content"),this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.summary.addEventListener("click",e=>this.onClick(e))}onClick(e){e.preventDefault(),this.el.style.overflow="hidden",this.isClosing||!this.el.open?this.open():(this.isExpanding||this.el.open)&&this.shrink()}static modifiedShrink(detailsEl){}shrink(){this.isClosing=!0,this.el.classList.remove("-is-open");const startHeight=`${this.el.offsetHeight}px`,endHeight=`${this.summary.offsetHeight}px`;this.animation&&this.animation.cancel(),this.prefersReducedMotion.matches?this.onAnimationFinish(!1):(this.animation=this.el.animate({height:[startHeight,endHeight],opacity:[1,0]},{duration:350,easing:"ease-in"}),this.animation.onfinish=()=>this.onAnimationFinish(!1),this.animation.oncancel=()=>this.isClosing=!1)}open(){this.el.style.height=`${this.el.offsetHeight}px`,this.el.open=!0,window.requestAnimationFrame(()=>this.expand())}expand(){this.isExpanding=!0;const startHeight=`${this.el.offsetHeight}px`,endHeight=`${this.summary.offsetHeight+this.content.offsetHeight}px`;this.animation,this.animation=this.el.animate({height:[startHeight,endHeight]},{duration:400,easing:"ease-out"}),this.animation.onfinish=()=>this.onAnimationFinish(!0),this.animation.oncancel=()=>this.isExpanding=!1}onAnimationFinish(open){this.el.open=open,this.animation=null,this.isClosing=!1,this.isExpanding=!1,this.el.style.height=this.el.style.overflow=""}}productAcordions.forEach(acordionEl=>{const acc=new Accordion(acordionEl);acordionEl.addEventListener("click",e=>{e.preventDefault(),productAcordions.forEach(el=>{acordionEl!==el&&new Accordion(el).shrink()})})});
2//# sourceMappingURL=/cdn/shop/t/71/assets/product-accordion.js.map?v=39741212119424637391779195426

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.