PageSourceSearch

https://dalorem.com/wp-content/themes/battleplantheme/js/script-desktop.min.js?ver=v45.6.1790099462

js dalorem.com collected 2026-10-09 00:02:24 UTC 11,012 bytes, 1 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){var t;!window.bpIsMobile&&(window.parallaxConfigs=window.parallaxConfigs||[],window.updateParallaxBackgrounds=()=>{window.pageYOffset;let b=getDeviceH();window.parallaxConfigs.forEach(n=>{var{containerObj:n,imageH:o,topY:s,bottomY:r,fullScreen:d,svgObj:l,bgLayer:c,secLayer:g}=n;if(c)u=Math.max(b,Math.round(window.innerWidth*c._bpImgH/c._bpImgW)),c._bpH!==u&&(c.style.height=u+"px",c._bpH=u),m=0<(p=(m=n.getBoundingClientRect()).height-b)?Math.max(0,Math.min(-m.top/p,1)):0,c.style.transform=`translate3d(0, ${(-(u-b)*m).toFixed(1)}px, 0)`;else{var p=n.getBoundingClientRect(),c=p.top,u=p.height;let e,t,i=0,a=0;d?(e=c,t=c+u-b):(e=c-b,t=c+u,i=-parseInt(s,10),a=-parseInt(r,10));var m=t-e,p=Math.max(0,Math.min(t/m,1)),p=d?p:1-p,c=(o+i-(o+i+a)*p)/o*100;l?l.style.transform=`translateY(${c}%)`:g?g.style.transform=`translate3d(0, ${(c/100*(u-o)).toFixed(1)}px, 0)`:n.style.backgroundPositionY=c+"%"}})},window.parallaxBG=function(i="#page",a,n,o,s="50%",r=0,d=0,l=!0){i=getObject(i);if(i){var c=(window.site_dir&&site_dir.upload_dir_uri||"/wp-content/uploads").replace(/\/+$/,"");if(c&&a){var e=a.startsWith("svg#"),g=e?document.querySelector(a.replace("svg","")):null,t=i===document.body||i===document.documentElement||"page"===i.id||i.getBoundingClientRect().width>=document.documentElement.clientWidth-1;if(e&&g)window.parallaxConfigs.push({containerObj:i,imageH:o,topY:r,bottomY:d,fullScreen:l,svgObj:g});else if(l&&!t)setStyles(i,{backgroundImage:`url('${c}/${a}')`,backgroundSize:n+`px ${o}px`,backgroundPosition:s+" 50%",backgroundRepeat:"no-repeat",backgroundAttachment:"fixed"}),window.parallaxConfigs.push({containerObj:i,imageH:o,topY:r,bottomY:d,fullScreen:l});else if(l){let t=document.querySelector(".bp-parallax-bg");t||((t=document.createElement("div")).className="bp-parallax-bg",document.body.insertBefore(t,document.body.firstChild)),t._bpImgW=n,t._bpImgH=o,t._bpH=0,setStyles(t,{position:"fixed",left:"0",top:"0",width:"100%",zIndex:"-1",pointerEvents:"none",backgroundImage:`url('${c}/${a}')`,backgroundSize:"cover",backgroundPosition:s+" center",backgroundRepeat:"no-repeat",willChange:"transform"});e=()=>{var e=Math.max(getDeviceH(),Math.round(window.innerWidth*t._bpImgH/t._bpImgW));t.style.height=e+"px",t.style.setProperty("--bp-pan",e-getDeviceH()+"px")};e(),window.CSS&&CSS.supports&&CSS.supports("animation-timeline: scroll()")?(document.getElementById("bp-parallax-style")||((g=document.createElement("style")).id="bp-parallax-style",g.textContent="@keyframes bp-parallax-drift{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,calc(-1*var(--bp-pan,0px)),0)}}.bp-parallax-bg{animation:bp-parallax-drift linear both;animation-timeline:scroll(root block)}",document.head.appendChild(g)),t._bpResize||(window.addEventListener("resize",e,{passive:!0}),t._bpResize=!0)):window.parallaxConfigs.push({containerObj:i,imageH:o,topY:r,bottomY:d,fullScreen:l,bgLayer:t})}else{"static"===getComputedStyle(i).position&&(i.style.position="relative"),i.style.overflow="hidden",i.style.isolation="isolate";let e=i.querySelector(":scope > .bp-parallax-sec");e||((e=document.createElement("div")).className="bp-parallax-sec",i.insertBefore(e,i.firstChild)),setStyles(e,{position:"absolute",left:"0",top:"0",width:"100%",height:o+"px",zIndex:"-1",pointerEvents:"none",backgroundImage:`url('${c}/${a}')`,backgroundSize:n+`px ${o}px`,backgroundPosition:s+" 0",backgroundRepeat:"no-repeat",willChange:"transform"}),window.parallaxConfigs.push({containerObj:i,imageH:o,topY:r,bottomY:d,fullScreen:l,secLayer:e})}updateParallaxBackgrounds()}}},getObjects('[data-parallax="scroll"]').forEach(e=>{let t=e.getAttribute("data-image-src");var i,a,n,o,s;t&&(t=t.replace("/wp-content/uploads/",""),i=parseInt(e.getAttribute("data-img-width"),10),a=parseInt(e.getAttribute("data-img-height"),10),n=e.getAttribute("data-pos-x"),o=e.getAttribute("data-top-y"),s=e.getAttribute("data-bottom-y"),parallaxBG(e,t,i,a,n,o,s,!1))}),window.parallaxDivs=window.parallaxDivs||[],window.updateParallaxElements=function(){let d=window.pageYOffset;
1window.parallaxDivs.forEach(e=>{let{containerSel:t,elementSel:s,adjustment:r}=e;getObjects(t).forEach(e=>{var t,i,a,n,o=getObject(s,e);o&&(n=e.offsetHeight,t=(e=e.getBoundingClientRect().top+d)+n,a=((i=d+getDeviceH())-e)/(n+getDeviceH()),a=Math.max(0,Math.min(a,1)),n=(n-o.offsetHeight+r)*a,e<i)&&t>d&&(o.style.transform=`translateY(${n}px)`)})})},window.parallaxDiv=function(e,t=".parallax",i=0){window.parallaxDivs.push({containerSel:e,elementSel:t,adjustment:i}),updateParallaxElements()},window.splitMenu=(t="#desktop-navigation",s=".logo img",r=0,d=!1)=>{var l=getObject(t);if(l){let o=getObject(".flex",l);if(o){if(!l._smPristine){var c=getObject("ul.main-menu",l);if(!c)return;l._smPristine=c.cloneNode(!0);let e;window.addEventListener("resize",()=>{clearTimeout(e),e=setTimeout(()=>splitMenu(t,s,r,d),150)})}getObjects(".split-menu-l, .split-menu-r",o).forEach(e=>e.remove()),Array.from(o.children).forEach(e=>{e.matches("ul.main-menu")&&e.remove()}),o.style.gridColumnGap="";c=l._smPristine.cloneNode(!0);if(o.appendChild(c),null!==l.offsetParent&&0!==c.offsetWidth){var e=getObject(s),e=(e?e.offsetWidth:0)+r,l=getObjects("ul.main-menu > li",l);let a=c.offsetWidth/2,n=0,i=Math.round(l.length/2);var g=e=>{var t=document.createElement("div");return t.className="split-menu-"+e,o.insertBefore(t,o.firstChild),t},p=g("r"),g=g("l");if(d)!0!==d&&(i=d),l.forEach((e,t)=>{t<i?e.classList.add("left-menu"):e.classList.add("right-menu")});else{let i=l.map(e=>e.offsetWidth);l.forEach((e,t)=>{(n+=i[t])<a?e.classList.add("left-menu"):e.classList.add("right-menu")})}var l=e=>{var t=getObject("ul.menu:not(.sub-menu)",e);t&&(t.id=t.id+"-"+(e.className.includes("split-menu-l")?"l":"r"))},u=c.cloneNode(!0);p.appendChild(u),g.appendChild(c),l(g),l(p),getObjects(".right-menu",g).forEach(e=>e.remove()),getObjects(".left-menu",p).forEach(e=>e.remove()),o.style.gridColumnGap=e+"px"}}}},window.addMenuLogo=function(e,t="#desktop-navigation"){var i,t=getObject(t);t&&(t.classList.add("menu-with-logo"),(i=document.createElement("div")).className="menu-logo",i.innerHTML=`<img src="${e}" alt="">`,t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i),e=t.offsetHeight,getObject("img",i).style.height=e+"px",linkHome(".menu-logo"))},window.addMenuIcon=function(t,i=0,a=0,n="before",e="#desktop-navigation"){e=getObject(e);e&&getObjects("ul.main-menu > li",e).forEach(e=>{e=getObject("a",e);e&&addDiv(e,`<div class="menu-icon"><img src="${t}" width="${i}" height="${a}" style="aspect-ratio:${i}/${a}"></div>`,n)})},window.centerSubNav=function(){getObjects(".main-navigation ul.sub-menu").forEach(e=>{var t=e.offsetWidth,i=e.parentElement.offsetWidth,t=-Math.round((t-i)/2);e.style.left=t+"px"})},window.labelWidgets=function(){var e=getObjects(".widget:not(.hide-widget)");e.length&&(e.forEach((e,t)=>{e.classList.remove("widget-even","widget-odd","widget-first","widget-last"),e.classList.add(t%2==0?"widget-odd":"widget-even")}),e[0].classList.add("widget-first"),e[e.length-1].classList.add("widget-last"))},window.desktopSidebar=function(e,t){window.secondaryObj=getObject("#secondary"),secondaryObj&&(window.primaryObj=getObject("#primary"),window.sidebarObj=getObject(".sidebar-inner",secondaryObj),window.sidebarPad=parseInt(window.getComputedStyle(secondaryObj).paddingTop)+parseInt(window.getComputedStyle(secondaryObj).paddingBottom),window.checkHeights=function(){return labelWidgets(),window.primaryH=primaryObj.offsetHeight,window.sidebarH=sidebarObj.offsetHeight,primaryH-sidebarH-sidebarPad+e},window.widgetInit=function(){0!==e&&(secondaryObj.style.height=`calc(100% + ${e}px)`),getObjects(".widget").forEach(e=>{e.setAttribute("data-priority",2),e.setAttribute("data-height",e.clientHeight),e.classList.add("hide-widget")});[{priority:5,selectors:[".widget.widget-priority-5",".widget.widget-essential",".widget.widget_nav_menu"]},{priority:4,selectors:[".widget.widget-priority-4",".widget.widget-important",".widget-contact-form"]},{priority:3,selectors:[".widget.widget-priority-3",".widget.widget-event",".widget.widget-financing"]},{priority:1,selectors:[".widget.widget-priority-1",".widget.remove-first"]}
1].forEach(t=>{t.selectors.forEach(e=>{getObjects(e).forEach(e=>{e.setAttribute("data-priority",t.priority),5===t.priority&&e.classList.remove("hide-widget")})})}),addWidgets()},window.addWidgets=function(){for(let t=4;0<=t;t--)getObjects(".hide-widget").forEach(e=>{e.getAttribute("data-priority")==t&&e.getAttribute("data-height")<=checkHeights()&&e.classList.remove("hide-widget")});var e;0===getObjects(".widget:not(.hide-widget)").length&&(e=getObject(".widget"))&&e.classList.remove("hide-widget")},window.moveWidgets=function(){if(!0===t){var i=checkHeights(),a=window.pageYOffset,n=primaryObj.getBoundingClientRect().top+a,o=a-n;let e=getDeviceH(),t=0;var s=getObjects(".stuck").reduce((e,t)=>e+t.offsetHeight,0),s=(e-=s,getObject(".wp-google-badge"));s&&(e-=s.offsetHeight),t=n<a?i*(o/(primaryH-e)):0,sidebarH<e&&(t=o+parseInt(getComputedStyle(secondaryObj).paddingTop)),0<(t=Math.min(Math.max(t,0),i))&&t<i&&(sidebarObj.style.transform=`translate3d(0, ${t}px, 0)`)}})},window.addEventListener("load",()=>{if(getObject("#masthead .phone-link")){var e=2e3*Math.random()+2e3;let s=getObject("#masthead .phone-number"),r=getObject(".currently-open-banner");s&&r&&setTimeout(()=>{moveDiv(r,s,"bottom");var e=getObject(".phone-link",s),t=e.getBoundingClientRect().left,e=e.getBoundingClientRect().right,i=s.getBoundingClientRect().left,a=r.offsetWidth,n=.45*s.clientHeight;let o=e-i;e+a>getDeviceW()&&(r.classList.add("small-screen"),o=t-i-a),setStyles(r,{top:n+"px",left:o+"px"}),r.classList.add("reveal-open")},e)}}),t=getObject("body.screen-desktop a.icon-btn.scroll-top"))&&(["wheel","gesturestart","gesturechange","gestureend"].forEach(function(e){t.addEventListener(e,function(e){e.preventDefault(),e.stopPropagation()},{passive:!1})}),t.addEventListener("mousemove",function(e){e.stopPropagation()},{passive:!0}),document.addEventListener("mousemove",()=>{document.body.classList.add("using-mouse"),document.body.classList.remove("using-keyboard")}),document.addEventListener("keydown",e=>{9===e.keyCode&&(document.body.classList.add("using-keyboard"),document.body.classList.remove("using-mouse"))}),getObjects("iframe").forEach(e=>{e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")}),document.addEventListener("keydown",e=>{9===e.keyCode&&(getObjects(".tab-focus").forEach(e=>e.classList.remove("tab-focus")),setTimeout(()=>{getObjects('[aria-expanded="true"').forEach(e=>e.classList.add("tab-focus"));var e=document.activeElement,t=e.closest(".menu-item");e.classList.add("tab-focus"),t?(t.classList.add("tab-focus"),t.scrollIntoView({behavior:"smooth",block:"nearest"})):e.scrollIntoView({behavior:"smooth",block:"center"})},10))}),document.addEventListener("mousedown",()=>{getObjects(".tab-focus").forEach(e=>e.classList.remove("tab-focus"))}))});

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.