PageSourceSearch

https://totalenergies.sg/themes/custom/butterfly_theme/dist/js/accordion.min.js?v=10.7.1

js totalenergies.sg collected 2026-10-07 03:00:15 UTC 1,585 bytes, 1 lines download raw bytes

1(Drupal=>{Drupal.behaviors.toggleAccordion={attach:function(e){let g=window.matchMedia("(max-width: 1280px)");e=once("accordionTitle",document.querySelectorAll(".js-accordion-trigger"),e);if(0!==e.length)e.forEach(e=>{e.addEventListener("click",()=>{(t=>{let e=t.attributes["data-target"].value;var r=t.attributes["aria-controls"].value,i=t.getAttribute("data-rotate-class");let a=document.getElementById(r),o="true"===t.getAttribute("aria-expanded")?"false":"true",l=t.querySelector(".js-accordion-icon"),s=a.querySelector(".accordion-content__inner"),c=["triggered"],n=i??"tw-rotate-n135",d=["accordion-content-expanded"];r=s?s.querySelectorAll("img"):null;switch(r&&0<r.length&&r.forEach(e=>{e.hasAttribute("loading")&&e.removeAttribute("loading")}),e){case"remote":n="remote-menu__dropdown-arrow--active",d=["triggered"];break;case"footer":if(g.matches)break;return;default:c=["triggered","tw-font-bolder","tw-tracking-wide"]}if(t.setAttribute("aria-expanded",o),c.forEach(e=>{t.classList.toggle(e)}),a){i="true"==o?"false":"true";if(a.setAttribute("aria-hidden",i),"remote"===e||"accordion-fieldset"===e)d.forEach(e=>{a.classList.toggle(e)});else if(a.classList.contains(d))a.style.height="0px",a.addEventListener("transitionend",()=>{a.classList.remove(d)},{once:!0});else{a.classList.add(...d),a.style.height="auto";let e=s?s.scrollHeight+"px":a.scrollHeight+"px";a.style.height="0px",requestAnimationFrame(()=>{a.offsetHeight,a.style.height=e}),setTimeout(()=>{a.style.height=s?s.scrollHeight+20+"px":a.scrollHeight+20+"px"},500)}}l&&l.classList.toggle(n)})(e)})})}}})(Drupal);

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.