PageSourceSearch

https://www.oncehub.com/hubfs/hub_generated/template_assets/1/151842519452/1785242042608/template_main.min.js

js oncehub.com collected 2026-09-24 08:40:57 UTC 4,165 bytes, 2 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll('a[href*="#"]:not([href="#"])').forEach(function(link){link.addEventListener("click",function(event){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var target=document.querySelector(this.hash);if(target=target||document.querySelector('[name="'+this.hash.slice(1)+'"]')){event.preventDefault();var targetOffsetTop=target.getBoundingClientRect().top+window.pageYOffset-110;window.scrollTo({top:targetOffsetTop,behavior:"smooth"})}}})})}),function(){function handleScroll(){var scrollPosition=window.scrollY,bodyElement=document.body;scrollPosition>250?bodyElement.classList.add("scrolled"):bodyElement.classList.remove("scrolled")}function handleEvents(){var header=document.querySelector("header.header"),mainContent=document.querySelector(".body-wrapper > main");if(header&&mainContent){var headerHeight=header.offsetHeight;mainContent.style.paddingTop=headerHeight+"px"}}window.addEventListener("scroll",handleScroll),handleScroll(),window.addEventListener("load",handleEvents),window.addEventListener("scroll",handleEvents),window.addEventListener("resize",handleEvents),handleEvents(),window.addEventListener("scroll",function(){var returnToTopButton=document.getElementById("return-to-top");returnToTopButton&&(window.scrollY>=50?returnToTopButton.style.display="block":returnToTopButton.style.display="none")});var returnToTopButton=document.getElementById("return-to-top");returnToTopButton&&returnToTopButton.addEventListener("click",function(){var scrollStep,scrollInterval;scrollStep=-window.scrollY/(500/15),scrollInterval=setInterval(function(){0!==window.scrollY?window.scrollBy(0,scrollStep):clearInterval(scrollInterval)},15)}),$("button.hamburger").click(function(){$(this).toggleClass("is-active"),$(".header-primary-menu").slideToggle(300),$(".header-primary-menu .hs-menu-children-wrapper").slideUp(300)}),$(".header-primary-menu .hs-menu-wrapper>ul>li.hs-item-has-children > a").after('<button class="child-trigger"><i></i></button>'),$(".child-trigger").click(function(){$(this).parent().siblings().find(".child-trigger").removeClass("child-open"),$(this).parent().siblings().find(".hs-menu-children-wrapper").slideUp(300),$(this).toggleClass("child-open"),$(this).next().slideToggle(300)}),$("button.foot-nav-title.visible-phone").click(function(){$(this).next().slideToggle(300),$(this).toggleClass("active")}),$(document).ready(function(){function getQueryParam(param){return new URLSearchParams(window.location.search).get(param)}let refCode=getQueryParam("referralcode")||getQueryParam("refcode");refCode&&(console.log("Setting referral code cookie:",refCode),function(name,value,days){let date=new Date;date.setTime(date.getTime()+24*days*60*60*1e3),document.cookie=`${name}=${value}; expires=${date.toUTCString()}; path=/; domain=.oncehub.com; SameSite=Strict`}("so_ref_code",refCode,30))})}(),function(){let HYDRA_URL="",USERINFO_URL="",homePage_App="",signIn_App="";const host=window.location.hostname;function setCheckSignInHref(href){const el=document.getElementById("checkSignIn");if(!el)return;const a=el.closest("a")||el.parentElement;a&&a.tagName&&"a"===a.tagName.toLowerCase()&&(a.href=href)}function run(){document.getElementById("checkSignIn")&&HYDRA_URL&&$.ajax({url:HYDRA_URL+"/signin/refresh",method:"GET",headers:{Accept:"application/json, text/plain, */*"},xhrFields:{withCredentials:!0},statusCode:{200:function(){setCheckSignInHref(homePage_App)},401:function(){setCheckSignInHref(signIn_App)}},error:function(xhr){(!xhr||200!==xhr.status&&401!==xhr.status)&&setCheckSignInHref(signIn_App)}})}("oncehub.com"===host||host.endsWith(".oncehub.com"))&&(HYDRA_URL="https://account.oncehub.com",USERINFO_URL="https://usergw.oncehub.com/oh-api/auth/user",homePage_App="https://app.oncehub.com",signIn_App="https://account.oncehub.com/signin"),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",run):run()}();
2//# sourceURL=https://7116861.fs1.hubspotusercontent-na1.net/hubfs/7116861/hub_generated/template_assets/1/151842519452/1785242042608/template_main.js

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.