HEX
Server: Apache
System: Linux box5134.bluehost.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User: bqfpihmy (1846)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home4/bqfpihmy/www/townsrealty/wp-content/cache/wpo-minify/tmp/js-1c0f2a14.js.transient
{"request":{"hurl":"https:\/\/www.townsrealty.com\/wp-content\/themes\/Total\/assets\/js\/frontend\/sticky\/header.min.js","inline":"","enable_minification":false,"type":"js","handle":"wpex-sticky-header","version":"6.4.2"},"log":{"url":"\/wp-content\/themes\/Total\/assets\/js\/frontend\/sticky\/header.min.js","success":true},"code":"!function(e){const t=document.querySelector(\"#site-header.fixed-scroll\");if(!t)return;let s=!1,i=!1,n=!1,r=!1,o=0,a=0;const d=t.classList.contains(\"fixed-scroll--mobile-only\"),l=e.shrink_delay?parseInt(e.shrink_delay):\"\",c=()=>Math.max(window.scrollY||0,0),h=()=>{let e=\"inner\",t=window;return\"innerWidth\"in window||(e=\"client\",t=document.documentElement||document.body),t[e+\"Width\"]},p=e=>!!e&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length),y=e=>{const t=e.getBoundingClientRect();return{top:t.top+c(),left:t.left+c(),bottom:t.bottom+c()}},u=()=>{let t=0;document.querySelectorAll(\".wpex-sticky-el-offset,#wpadminbar\").forEach((e=>{const s=window.getComputedStyle(e).position;p(e)&&((e,t)=>{if(\"wpadminbar\"===e.id)return!0;if(!e||!t)return;return 4===e.compareDocumentPosition(t)})(e,n)&&(\"fixed\"===s||\"sticky\"===s)&&(t+=e.getBoundingClientRect().height)}));const s=document.body.style.getPropertyValue(\"--wpex-sticky-topbar-height\");return s&&(t+=parseInt(s)),e.offset&&(t+=e.offset),t},m=()=>{let e=t.getBoundingClientRect().height;return Math.round(e)!==e&&(e=e.toFixed(2)),e},g=(()=>{let t=parseInt(e.breakpoint);return d?t-1:t})(),w=(()=>{if(e.startPoint&&!isNaN(e.startPoint))return e.startPoint;const t=document.querySelector(e.startPoint);return t?y(t).top:0})(),k=()=>{switch(d?\">\":\"<\"){case\"<\":return h()<g;case\">\":return h()>g}};function f(){return c()>o}const x=()=>(w||y(n).top)-u(),L=()=>{s||(a=t.getBoundingClientRect().height+\"px\",n.style.height=a,n.classList.remove(\"not-sticky\"),n.classList.add(\"is-sticky\"),t.classList.remove(\"dyn-styles\"),t.style.top=u()+\"px\",t.style.width=n.getBoundingClientRect().width+\"px\",t.classList.contains(\"transform-prepare\")&&t.classList.add(\"transform-go\"),s=!0)},v=()=>{let t=d?e.shrinkOnMobile:e.shrink;return t&&(d||e.mobileSupport&&k())&&(t=e.shrinkOnMobile),t},b=()=>{let i=l?f():s;r?i||C():s&&v()&&i&&(t.classList.add(\"sticky-header-shrunk\"),r=!0,l||(n.style.height=`${e.shrinkHeight?parseInt(e.shrinkHeight):t.getBoundingClientRect().height}px`))},C=()=>{t.classList.remove(\"sticky-header-shrunk\"),r=!1,l||(n.style.height=`${a}`)},S=()=>{var i;n.classList.remove(\"is-sticky\"),n.classList.add(\"not-sticky\"),e.shrink?setTimeout((function(){s||(n.style.height=\"\")}),\"string\"==typeof(i=(()=>{if(e.shrink_speed)return e.shrink_speed;let s=window.getComputedStyle(t).transitionDuration,i=\"\";return s&&\"0s\"===s||(i=parseFloat(s)*(s.indexOf(\"ms\")>-1?1:1e3)),i||(i=300),i})())?(i=i.trim()).endsWith(\"ms\")?parseFloat(i):i.endsWith(\"s\")?1e3*parseFloat(i):parseFloat(i)||0:Number(i)||0):n.style.height=\"\",t.classList.add(\"dyn-styles\"),t.style.width=\"\",t.style.top=\"\",t.classList.remove(\"transform-go\"),s=!1,r&&C()};function P(){s&&(w?(t.classList.remove(\"transform-go\"),r&&(t.classList.remove(\"sticky-header-shrunk\"),r=!1)):t.classList.remove(\"transform-prepare\"),S())}const B=()=>{let r=c();if(!p(t)||(d||!e.mobileSupport)&&k())return P(),n.classList.remove(\"wpex-can-sticky\"),t.classList.remove(\"transform-prepare\"),void(e.scrollUp||document.body.style.removeProperty(\"--wpex-sticky-header-height\"));n.classList.add(\"wpex-can-sticky\");let o=\"\",a=!1;if(e.shrink){if(e.shrinkHeight&&!e.scrollUp){const t=parseInt(e.shrinkHeight);document.body.style.setProperty(\"--wpex-sticky-header-height\",`${t}px`)}}else o=m(),i!==o&&(a=!0,i=o),e.scrollUp||!a&&document.body.style.getPropertyValue(\"--wpex-sticky-header-height\")||document.body.style.setProperty(\"--wpex-sticky-header-height\",`${i}px`);s?(!v&&a&&(n.style.height=`${i}px`),t.style.top=u()+\"px\",t.style.width=n.getBoundingClientRect().width+\"px\"):0!==r&&r>x()?L():P(),e.shrink&&b()},R=()=>{let i=c();n.classList.contains(\"wpex-can-sticky\")&&(w&&(()=>{var e=c();s&&t.classList.add(\"transform-go\"),e<=0?t.classList.remove(\"transform-prepare\"):f()?t.classList.add(\"transform-prepare\"):t.classList.remove(\"transform-prepare\")})(),0!=i&&i>=x()?L():P(),e.shrink&&b())},E=()=>{P(),B()},N=()=>{n=document.querySelector(\"#site-header-sticky-wrapper\"),n||(n=document.createElement(\"div\"),n.id=\"site-header-sticky-wrapper\",n.className=\"wpex-sticky-header-holder not-sticky wpex-print-hidden\",t.childNodes||(t=[t]),t.nextSibling?t.parentNode.insertBefore(n,t.nextSibling):t.parentNode.appendChild(n),n.appendChild(t)),(()=>{const e=document.querySelector(\"#site-header.overlay-header\");o=e&&\"absolute\"===window.getComputedStyle(e).position?y(t).top+t.getBoundingClientRect().height:y(n).top+n.getBoundingClientRect().height})(),B(),window.addEventListener(\"scroll\",R,{passive:!0}),window.addEventListener(\"resize\",B),window.addEventListener(\"orientationchange\",E),e.shrink||e.scrollUp||!n.classList.contains(\"wpex-can-sticky\")||window.addEventListener(\"load\",(()=>{setTimeout((()=>{const e=m();i!==e&&(i=e,document.body.style.setProperty(\"--wpex-sticky-header-height\",`${i}px`),n.style.height=`${i}px`)}),0)}))};e.runOnWindowLoad?window.addEventListener(\"load\",(()=>{N()})):N()}(wpex_sticky_header_params);\n","status":true}