PageSourceSearch

https://selisegroup.com/wp-content/cache/min/1/wp-content/themes/s…/selise-cards-block/view.js?ver=1790688721

js selisegroup.com collected 2026-10-01 10:38:11 UTC 4,798 bytes, 1 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){function e(){const e=document.getElementById("dynamic__card__grid");if(!e)return;const t=e.querySelectorAll(".dynamic__card__item");if(0===t.length)return;const o=e.offsetWidth,n=t[0].offsetWidth||1,i=Math.floor(o/n);t.forEach((e,o)=>{e.style.borderRight="1.5px solid var(--tw-border-opacity, #EDEDED)",e.style.borderBottom="1.5px solid var(--tw-border-opacity, #EDEDED)",(o+1)%i===0&&(e.style.borderRight="none"),o>=t.length-i&&(e.style.borderBottom="none")})}function t(){const e=document.querySelectorAll(".equal-height-card");let t=0;e.forEach(e=>{e.style.height="auto"}),e.forEach(e=>{t=Math.max(t,e.offsetHeight)}),e.forEach(e=>{e.style.height=t+"px"})}e(),window.addEventListener("resize",()=>{clearTimeout(window._resizeTimeout),window._resizeTimeout=setTimeout(e,150)}),window.addEventListener("load",t),window.addEventListener("resize",t),new Swiper(".smoothie__cards",{slidesPerView:1,spaceBetween:16,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{768:{slidesPerView:2},1024:{slidesPerView:3}}});const o=document.querySelectorAll(".swiper.animation__card__wrapper");function n(){document.querySelectorAll(".equalize__height").forEach(e=>{let t=e.querySelectorAll(".equalize__item");if(t.length||(t=e.querySelectorAll(".swiper-slide > div")),!t.length)return;t.forEach(e=>{e.style.height="",e.style.minHeight=""});let o=0;t.forEach(e=>{const t=Math.ceil(e.getBoundingClientRect().height);t>o&&(o=t)}),t.forEach(e=>{e.style.minHeight=o+"px"})})}function i(e){const t=document.querySelector(".copy-tooltip");t&&t.remove();const o=document.createElement("div");o.className="copy-tooltip",o.textContent="Copied";const n=e.getBoundingClientRect();o.style.cssText=`\n      position: fixed;\n      background: #333;\n      color: #fff;\n      padding: 6px 12px;\n      border-radius: 4px;\n      font-size: 12px;\n      white-space: nowrap;\n      z-index: 99999;\n      pointer-events: none;\n      opacity: 1;\n      box-shadow: 0 2px 8px rgba(0,0,0,0.2);\n      left: ${n.left+n.width/2-30}px;\n      top: ${n.top-30-5}px;\n      transform: translateX(-50%);\n    `,document.body.appendChild(o),setTimeout(()=>{o.style.opacity="0",o.style.transition="opacity 0.2s ease-in-out",setTimeout(()=>{o.parentNode&&o.parentNode.removeChild(o)},200)},1e3)}o.length>0&&requestAnimationFrame(()=>{o.forEach(e=>{e.swiper&&e.swiper.destroy(!0,!0),e.offsetWidth>0&&new Swiper(e,{slidesPerView:1,spaceBetween:24,observer:!0,observeParents:!0,updateOnWindowResize:!0,width:null,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{768:{slidesPerView:2},1024:{slidesPerView:3}}})})}),window.addEventListener("load",n),window.addEventListener("resize",()=>{requestAnimationFrame(n)}),function(){function e(e){const t=e.querySelector(".swiper-button-prev"),o=e.querySelector(".swiper-button-next"),n=e.querySelector(".swiper-slide-active")||e.querySelector(".swiper-slide-visible");if(!t||!o||!n)return;const i=e.getBoundingClientRect(),r=n.getBoundingClientRect(),s=r.top-i.top+.5*r.height;t.style.top=s+"px",o.style.top=s+"px"}function t(){document.querySelectorAll(".swiper.smoothie__cards").forEach(e)}window.addEventListener("load",t),window.addEventListener("resize",t),window.addEventListener("load",()=>{document.querySelectorAll(".swiper.smoothie__cards .swiper-wrapper").forEach(e=>e.addEventListener("transitionend",t,{passive:!0}))})}(),window.addEventListener("load",function(){const e=document.querySelector(".counter__zone");if(!e)return;const t=new IntersectionObserver(o=>{o.forEach(o=>{o.isIntersecting&&(e.querySelectorAll(".counter").forEach(e=>function(e){let t=0;const o=parseInt(e.innerText.replace("%","").trim()),n=Math.abs(Math.floor(1500/o));!function i(){t+=1,e.innerText=`${t}%`,t<o?setTimeout(i,n):e.innerText=`${o}%`}()}(e)),t.disconnect())})},{threshold:.5});t.observe(e)}),document.addEventListener("click",function(e){let t=e.target;for(;t&&t!==document.body&&!t.classList.contains("copy-clipboard-btn");)t=t.parentElement;if(t&&t.classList&&t.classList.contains("copy-clipboard-btn")){e.preventDefault(),e.stopPropagation();const n=t.getAttribute("data-copy-text");if(!n)return void console.error("No text to copy found");function o(){const e=document.createElement("textarea");e.value=n,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")?i(t):console.error("Fallback copy command failed")}catch(e){console.error("Fallback copy failed: ",e)}document.body.removeChild(e)}navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(n).then(()=>{i(t)}
1).catch(e=>{console.error("Clipboard API failed, using fallback: ",e),o()}):o()}})})

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.