PageSourceSearch

https://easyengine.io/wp-content/themes/rtcamp-theme/assets/build/…/slider-pattern.js?ver=9876131479fa055fa969

js easyengine.io collected 2026-10-02 03:35:49 UTC 1,766 bytes, 1 lines download raw bytes

1document.addEventListener("DOMContentLoaded",(function(){const t=document.querySelectorAll(".slider-section");if(t.length>0){function e(t,e,s){const o=s.querySelectorAll(".slider-dot-ptn");o?.forEach((t=>t.classList.remove("active"))),o[t]?.classList.toggle("active"),e.forEach((t=>t.classList.remove("active"))),e[t]?.classList.toggle("active")}t.forEach((t=>{const s=document.createElement("div");s.classList.add("slider-dots-conatiner-ptn"),t.appendChild(s);const o=t.querySelector(".slider-on-mobile");if(!o)return;let n=t.querySelectorAll(".slider-on-mobile > .case-study-card");if(o?.classList.contains("wp-block-post-template")?n=t.querySelectorAll(".slider-on-mobile > .category-articles"):o?.classList.contains("normal-slider-variation")&&(n=t.querySelectorAll(".slider-on-mobile > .wp-block-column")),window.matchMedia("(max-width: 680px)").matches){const t=n[0].offsetHeight;o.style.height=t+"px"}n.forEach(((t,o)=>{const c=document.createElement("div");c.classList.add("slider-dot-ptn"),s.appendChild(c),c.addEventListener("click",(()=>{e(o,n,s)})),t.addEventListener("touchstart",u,!1),t.addEventListener("touchmove",f),t.addEventListener("touchend",m)})),e(0,n,s);let c=0,l=0,i=0,a=!1,r=0,d=0;function u(t){if(a)return;let e="";e=o.classList.contains("wp-block-post-template")?".category-articles":o.classList.contains("normal-slider-variation")?".wp-block-column":".case-study-card",r=Array.from(n).findIndex((s=>s===t.target.closest(e))),c=t.touches[0].clientX,a=!0,d=0}function f(e){if(!a)return;const s=e.touches[0].clientX;l=i+(s-c),t.style.left=`${l}px`}function m(){i=l;const o=n[0].offsetWidth,c=n.length-1;l>0&&0!==r?r--:l<0&&r!==c&&r++,d=.3,t.style.transition=`left ${d}s ease-in-out`,t.style.left=`-${r*o}px`,e(r,n,s),a=!1}}))}}),{once:!0});

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.