PageSourceSearch

https://gowinston.ai/wp-content/cache/min/1/wp-content/themes/gowinston-wp/dist/js/main.js?ver=1790086491

js gowinston.ai collected 2026-09-24 08:36:53 UTC 8,187 bytes, 1 lines download raw bytes

1(function(){function h(){document.addEventListener("click",function(t){if(t.target.closest(".mobile-menu-toggle")){t.preventDefault(),t.stopPropagation();const o=t.target.closest(".mobile-menu-toggle"),n=o.closest("li"),i=n.querySelector(":scope > .mobile-submenu"),e=o.querySelector(".mobile-caret");i&&(i.classList.contains("hidden")?(y(i,e),p(n)):u(i,e))}})}function y(t,o){t.classList.remove("hidden");const n=t.scrollHeight;t.style.height="0px",t.style.overflow="hidden",t.offsetHeight,t.style.transition="height 0.3s ease",t.style.height=n+"px",o&&(o.style.transform="rotate(180deg)"),setTimeout(()=>{t.style.height="auto",t.style.overflow="visible"},320)}function u(t,o){const n=t.scrollHeight;t.style.height=n+"px",t.style.overflow="hidden",t.style.transition="height 0.3s ease",t.offsetHeight,t.style.height="0px",o&&(o.style.transform="rotate(0deg)"),setTimeout(()=>{t.classList.add("hidden"),t.style.height="",t.style.overflow="",t.style.transition=""},320)}function p(t){const o=t.parentElement;o&&Array.from(o.children).forEach(n=>{if(n===t||n.tagName!=="LI")return;const i=n.querySelector(":scope > .mobile-submenu"),e=n.querySelector(":scope > .mobile-menu-toggle .mobile-caret");i&&!i.classList.contains("hidden")&&u(i,e)})}function w(){const t=document.querySelectorAll("[data-footer-languages-dropdown]");if(!t.length)return;function o(){t.forEach(n=>{const i=n.querySelector("[data-footer-languages-toggle]"),e=n.querySelector("[data-footer-languages-menu]");!i||!e||(e.classList.add("hidden"),i.setAttribute("aria-expanded","false"))})}t.forEach(n=>{const i=n.querySelector("[data-footer-languages-toggle]"),e=n.querySelector("[data-footer-languages-menu]");!i||!e||i.addEventListener("click",function(r){r.preventDefault(),r.stopPropagation();const a=!e.classList.contains("hidden");o(),a||(e.classList.remove("hidden"),i.setAttribute("aria-expanded","true"))})}),document.addEventListener("click",function(n){n.target.closest("[data-footer-languages-dropdown]")||o()}),document.addEventListener("keydown",function(n){n.key==="Escape"&&o()})}function L(){const t=document.querySelectorAll("[data-header-languages-dropdown]");if(!t.length)return;function o(){t.forEach(n=>{const i=n.querySelector("[data-header-languages-toggle]"),e=n.querySelector("[data-header-languages-menu]");!i||!e||(e.classList.add("hidden"),i.setAttribute("aria-expanded","false"))})}t.forEach(n=>{const i=n.querySelector("[data-header-languages-toggle]"),e=n.querySelector("[data-header-languages-menu]");!i||!e||i.addEventListener("click",function(r){r.preventDefault(),r.stopPropagation();const a=!e.classList.contains("hidden");o(),a||(e.classList.remove("hidden"),i.setAttribute("aria-expanded","true"))})}),document.addEventListener("click",function(n){n.target.closest("[data-header-languages-dropdown]")||o()}),document.addEventListener("keydown",function(n){n.key==="Escape"&&o()})}function l(){const t=document.getElementById("masthead"),o=document.getElementById("mobile-menu");if(!t||!o)return;const n=Math.max(0,Math.round(t.getBoundingClientRect().bottom));o.style.top=n+"px",o.style.bottom="0"}function f(){document.querySelectorAll(".mega-menu-item--has-side-flyout").forEach(t=>{const o=t.querySelector(":scope > a.mega-menu-item__link"),n=t.querySelector(".mega-menu-flyout__panel");if(!o||!n)return;const i=o.getBoundingClientRect(),e=n.getBoundingClientRect(),r=i.top+i.height/2-e.top;n.style.setProperty("--mega-menu-flyout-caret-top",`${Math.round(r)}px`)})}function g(){document.querySelectorAll(".main-navigation .menu-item-has-children > .sub-menu--mega").forEach(t=>{const o=t.closest(".menu-item-has-children");if(!o)return;const i=(o.querySelector(":scope > a")||o).getBoundingClientRect(),e=t.getBoundingClientRect(),r=i.left+i.width/2-e.left;t.style.setProperty("--mega-menu-caret-left",`${Math.round(r)}px`)})}function v(){const t=document.querySelector("#masthead .site-grid");if(!t)return;const o=16,n=t.getBoundingClientRect();document.querySelectorAll(".main-navigation .sub-menu--mega--centered").forEach(i=>{const e=i.closest(".menu-item-has-children");if(!e)return;const r=e.getBoundingClientRect(),a=i.offsetWidth||Math.min(window.innerWidth*.9,window.innerWidth-32);let s=n.left+(n.width-a)/2;s=Math.max(o,Math.min(s,window.innerWidth-a-o));const c=s-r.left;i.style.setProperty("--mega-menu-offset-left",`${c}px`)}),g()}function E(){const t=()=>
1{v(),g(),f()};t(),window.addEventListener("resize",t,{passive:!0}),document.querySelectorAll(".main-navigation .menu-item-has-children").forEach(o=>{o.addEventListener("mouseenter",()=>{requestAnimationFrame(t)},{passive:!0})}),document.querySelectorAll(".mega-menu-item--has-side-flyout").forEach(o=>{o.addEventListener("mouseenter",()=>{requestAnimationFrame(f)},{passive:!0})}),document.querySelectorAll(".main-navigation .menu-item-has-children > a").forEach(o=>{(o.getAttribute("href")==="#"||o.getAttribute("href")==="")&&o.addEventListener("click",n=>{n.preventDefault()})})}function S(){const t=window.matchMedia("(prefers-reduced-motion: reduce)").matches;function o(){let e=0;const r=document.getElementById("masthead");if(r){const s=window.getComputedStyle(r).position;(s==="sticky"||s==="fixed")&&(e=r.getBoundingClientRect().height)}const a=document.getElementById("wpadminbar");return a&&window.getComputedStyle(a).position==="fixed"&&(e+=a.getBoundingClientRect().height),e+16}function n(e){if(!e||e==="#")return null;let r=e.charAt(0)==="#"?e.slice(1):e;try{r=decodeURIComponent(r)}catch{}return r?document.getElementById(r)||document.querySelector(`[name="${CSS.escape(r)}"]`):null}function i(e){const r=e.getBoundingClientRect().top+window.pageYOffset-o();window.scrollTo({top:Math.max(0,Math.round(r)),behavior:t?"auto":"smooth"});const a=e.hasAttribute("tabindex");a||e.setAttribute("tabindex","-1"),e.focus({preventScroll:!0}),a||e.addEventListener("blur",function s(){e.removeAttribute("tabindex"),e.removeEventListener("blur",s)})}if(document.addEventListener("click",function(e){if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;const r=e.target.closest("a[href]");if(!r||!r.hash||r.origin!==window.location.origin||r.pathname!==window.location.pathname||r.closest(".toc"))return;const a=n(r.hash);a&&(e.preventDefault(),window.history&&typeof window.history.pushState=="function"&&window.history.pushState(null,"",r.hash),document.body.classList.contains("overflow-hidden")?window.setTimeout(function(){i(a)},350):i(a))}),window.location.hash){const e=n(window.location.hash);e&&window.requestAnimationFrame(function(){window.setTimeout(function(){i(e)},0)})}}function m(){l(),window.addEventListener("resize",l,{passive:!0}),window.addEventListener("scroll",l,{passive:!0});const t=document.getElementById("mobile-menu-button"),o=document.getElementById("mobile-menu"),n=document.getElementById("mobile-menu-panel"),i=document.getElementById("mobile-menu-backdrop"),e=t?.querySelectorAll(".hamburger-line");if(t&&o&&n){let s=function(){l(),o.classList.remove("hidden"),document.body.classList.add("overflow-hidden"),e&&e.length>=3&&(e[0].style.transform="translateY(7px) rotate(45deg)",e[1].style.opacity="0",e[1].style.transform="scale(0)",e[2].style.transform="translateY(-7px) rotate(-45deg)"),setTimeout(()=>{n.classList.remove("translate-y-full"),i&&i.classList.remove("opacity-0")},10),t.setAttribute("aria-expanded","true")},c=function(){n.classList.add("translate-y-full"),i&&i.classList.add("opacity-0"),e&&e.length>=3&&(e[0].style.transform="translateY(0) rotate(0)",e[1].style.opacity="1",e[1].style.transform="scale(1)",e[2].style.transform="translateY(0) rotate(0)"),setTimeout(()=>{o.classList.add("hidden"),document.body.classList.remove("overflow-hidden")},300),t.setAttribute("aria-expanded","false")};var r=s,a=c;t.addEventListener("click",function(){t.getAttribute("aria-expanded")==="true"?c():s()}),i&&i.addEventListener("click",c),document.addEventListener("keydown",function(d){d.key==="Escape"&&!o.classList.contains("hidden")&&c()}),o.querySelectorAll('a[href^="#"]').forEach(d=>{d.addEventListener("click",c)})}h(),E(),w(),L(),S()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",m):m()})()

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.