PageSourceSearch

https://www.blackduck.com/wp-content/themes/blackduck/assets/js/accordionMediaInit-BwIjePW7.js

js blackduck.com collected 2026-10-02 02:57:40 UTC 1,323 bytes, 1 lines download raw bytes

1var u=()=>{document.querySelectorAll(".js-accordion-media-group").forEach(a=>{const s=a.closest(".accordion-media");if(!s)return;const d=a.querySelectorAll(".js-accordion-trigger"),o=s.querySelectorAll(".js-accordion-media-pane");d.forEach(t=>{t.addEventListener("click",l=>{l.preventDefault();const f=t.getAttribute("data-index"),c=t.closest(".js-accordion-item");if(c.classList.contains("is-active")){const e=c.querySelector(".js-accordion-content");s.classList.contains("accordion-media--full-width-accordion")&&(c.classList.remove("is-active"),t.setAttribute("aria-expanded","false"),e&&(e.style.display="none"));return}a.querySelectorAll(".js-accordion-item").forEach(e=>{e.classList.remove("is-active");const i=e.querySelector(".js-accordion-trigger");i&&i.setAttribute("aria-expanded","false");const r=e.querySelector(".js-accordion-content");r&&(r.style.display="none")}),c.classList.add("is-active"),t.setAttribute("aria-expanded","true");const n=c.querySelector(".js-accordion-content");if(n&&(n.style.display="block"),o.length>0){o.forEach(i=>{i.classList.remove("is-active","fade-in"),i.style.display="none"});const e=s.querySelector(`.js-accordion-media-pane[data-index="${f}"]`);e&&(e.style.display="block",setTimeout(()=>{e.classList.add("is-active","fade-in")},10))}})})})};export{u as initAccordionMedia};

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.