PageSourceSearch

https://sieumetis.vn/wp-content/plugins/nextbricks/elements/js/bc_expander.min.js?ver=2.1.8

js sieumetis.vn collected 2026-10-07 19:34:54 UTC 2,155 bytes, 5 lines download raw bytes

1function bcexpander(){let e=window.location.href.includes("brickspreview");function t(e,duration){e.classList.toggle("bc-expander-active");let t=e.nextElementSibling;if(e.classList.contains("bc-expander-active")){t.style.maxHeight=t.scrollHeight+"px";if(typeof lenisInstance!=='undefined'&&lenisInstance){setTimeout(()=>{lenisInstance.resize()},duration*1000+100)}}else{t.style.maxHeight=0;if(typeof lenisInstance!=='undefined'&&lenisInstance){setTimeout(()=>{lenisInstance.resize()},duration*1000+100)}}}
2document.querySelectorAll(".wrapper-bc-expander").forEach((n)=>{let a=n.querySelectorAll(".bc-expander-question"),r=n.getAttribute("data-mode"),l=n.getAttribute("data-openatbuilder"),duration=parseFloat(n.getAttribute("data-contenttransitionduration"));(openThis=n.getAttribute("data-openthis")),(i=n.getAttribute("data-singleopen")),"true"==n.getAttribute("data-openall")&&((i="false"),(r="click"),a.forEach((e)=>{e.classList.add("bc-expander-active");let t=e.nextElementSibling;t.style.maxHeight=t.scrollHeight+"px"})),a.forEach((e)=>{(wrapper=e.closest(".bc-expander-container")),"hover"===r?(wrapper.addEventListener("mouseenter",(i)=>{t(e,duration)}),wrapper.addEventListener("mouseleave",(i)=>{t(e,duration)})):"click"===r&&e.addEventListener("click",(a)=>{if("true"==i){let t=n.querySelector(".bc-expander-question.bc-expander-active");t&&t!==e&&(t.classList.toggle("bc-expander-active"),(t.nextElementSibling.style.maxHeight=0))}
3t(e,duration)}),e.setAttribute("tabindex","0"),e.addEventListener("keydown",function(a){if("Enter"===a.key||" "===a.key){if("true"==i){let t=n.querySelector(".bc-expander-question.bc-expander-active");t&&t!==e&&(t.classList.toggle("bc-expander-active"),(t.nextElementSibling.style.maxHeight=0))}
4t(e,duration)}})}),""!=openThis&&a.forEach((e,t)=>{if(t+1==parseFloat(openThis)){e.classList.add("bc-expander-active");let t=e.nextElementSibling;t.style.maxHeight=t.scrollHeight+"px"}}),"true"===l&&e&&a.forEach((e)=>{e.classList.add("bc-expander-active");let t=e.nextElementSibling;t.style.maxHeight=t.scrollHeight+"px"})})}
5document.addEventListener("DOMContentLoaded",function(e){bricksIsFrontend&&bcexpander()})

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.