PageSourceSearch

https://beckdigital.com/wp-content/themes/beck/js/main.js?ver=1775604626

js beckdigital.com collected 2026-09-24 12:28:30 UTC 4,285 bytes, 1 lines download raw bytes

1document.addEventListener("DOMContentLoaded",()=>{if(document.body.classList.contains("elementor-editor-active"))return;const e=document.createElement("div");e.id="scroll-progress-bar",document.body.appendChild(e);let t=0,s=0,i=0,o=!1;function n(){t=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight),s=window.innerHeight,i=t-s}function r(){const t=window.scrollY,s=i<=0?100:t/i*100;e.style.width=s+"%"}function l(){o||(window.requestAnimationFrame(()=>{r(),o=!1}),o=!0)}window.addEventListener("scroll",l),window.addEventListener("resize",()=>{n(),l()}),n(),r();document.querySelectorAll("p, h3, .elementor-widget-button, .elementor-widget-theme-post-excerpt").forEach(e=>e.classList.add("fade-up-in"));document.querySelectorAll(".elementor-widget-image").forEach(e=>{e.closest(".masthead")||e.closest("header")||e.closest("footer")||e.classList.add("swipe-up")});document.querySelectorAll("h1, h2").forEach(e=>{const t=e.innerHTML;let s="",i=0;t.split(/(<[^>]+>)/).forEach(e=>{if(e)if(e.startsWith("<")&&e.endsWith(">"))s+=e;else{e.split(/(\s+)/).forEach(e=>{if(e.trim().length>0){s+=`<span class="swoop-word-wrapper">${`<span class="swoop-word" style="transition-delay: ${100*i}ms">${e}</span>`}</span>`,i++}else s+=e})}}),e.innerHTML=s,e.classList.add("swoop-text")});const c=document.querySelectorAll(".swipe-up, .fade-up-in, .swoop-text"),a=[];c.forEach(e=>
1{e.closest(".no-animation")?e.classList.add("is-visible"):a.push(e)});const d=(e,t)=>{let s=0;e.forEach(e=>{e.isIntersecting&&(e.target.classList.contains("swoop-text")||(e.target.style.transitionDelay=`${s}ms`,s+=100),e.target.classList.add("is-visible"),t.unobserve(e.target))})},m=a.filter(e=>e.closest("footer")),u=a.filter(e=>!e.closest("footer")),h=new IntersectionObserver(d,{rootMargin:"0px 0px -10% 0px",threshold:0}),f=new IntersectionObserver(d,{rootMargin:"0px",threshold:.01});u.forEach(e=>h.observe(e)),m.forEach(e=>f.observe(e));const g=document.querySelector(".menu-toggle"),v=document.body,p=document.querySelector(".nav--main"),y=document.querySelector(".popover__column--right");let L=null;function w(e){e&&(p.classList.add("is-slid-left"),e.classList.add("is-active"),L=e,_(e.querySelectorAll(".nav__item"),"is-visible",100))}function b(e,t,s){if(!e)return;const i=Array.from(e.querySelectorAll(".nav__item"));if(t){i.forEach((e,t)=>{const s=i.length-1-t;e.style.setProperty("--stagger-index",s),e.classList.remove("is-visible"),e.classList.add("is-hiding")});const t=50*i.length+300;setTimeout(()=>{p.classList.remove("is-slid-left"),e.classList.remove("is-active"),setTimeout(()=>{E(e),s&&s()},600)},t)}else p.classList.remove("is-slid-left"),E(e)}function E(e){e.classList.remove("is-active"),L=null,e.querySelectorAll(".nav__item").forEach(e=>{e.classList.remove("is-visible","is-hiding")})}function _(e,t,s){e.forEach((e,i)=>{e.style.setProperty("--stagger-index",i),setTimeout(()=>{e.classList.add(t)},s)})}g.addEventListener("click",()=>{const e=v.classList.contains("menu-open");if(g.setAttribute("aria-expanded",!e),e){const e=L?L.querySelectorAll(".nav__item"):p.querySelectorAll(".nav__item"),t=50,s=300,i=e.length*t+s;e.forEach((t,s)=>{const i=e.length-1-s;t.style.setProperty("--stagger-index",i),t.classList.remove("is-visible"),t.classList.add("is-hiding-up")}),setTimeout(()=>{v.classList.remove("menu-open");setTimeout(()=>{L&&b(L,!1),document.querySelectorAll(".nav__item").forEach(e=>{e.classList.remove("is-visible","is-hiding","is-hiding-up")})},600)},i)}else v.classList.add("menu-open"),_(p.querySelectorAll(".nav__item"),"is-visible",400)}),y.addEventListener("click",e=>{const t=e.target.closest(".nav__item--has-children"),s=e.target.closest(".nav__item--back");if(t){e.preventDefault();const s=t.dataset.target,i=document.getElementById(s);L&&L!==i?b(L,!0,()=>w(i)):L||w(i)}s&&(e.preventDefault(),L&&b(L,!0))}),function(){for(var e=document.getElementsByTagName("a"),t=window.location.hostname,s=0;s<e.length;s++){var i=e[s],o=i.getAttribute("href");!o||0!==o.indexOf("http://")&&0!==o.indexOf("https://")||-1!==o.indexOf(t)||(i.setAttribute("rel","nofollow noopener noreferrer"),i.setAttribute("target","_blank"))}}()});

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.