PageSourceSearch

https://rocket-saas.io/wp-content/cache/min/1/wp-content/themes/Rocket-SaaS-2025/js/header.js?ver=1790272453

js rocket-saas.io collected 2026-09-25 02:39:40 UTC 2,283 bytes, 7 lines download raw bytes

1$('#nav-toggle').on('click',function(e){e.preventDefault();$('body').toggleClass('header-active')});function handleMenuToggle(){var menuLinkSelectors='.menu-top-menu-landing-container a, .menu-top-menu-landing-google-ads-lp-container a, .menu-custom-navigation-container a, #landing-btns a, .has-custom-navigation .header__nav__buttons a, .has-custom-navigation .mobile-hdr-btn a';$(menuLinkSelectors).off('click.landingNavClose');if($(window).width()<=1100){$(menuLinkSelectors).on('click.landingNavClose',function(){$('body').removeClass('header-active')})}}
2handleMenuToggle();$(window).on('resize',function(){handleMenuToggle()});$('.menu-item__parent').on('click',function(e){if(window.innerWidth>1100)return;e.preventDefault();let block=$(this);let subNav=block.next();$('.menu-item__parent').not(block).removeClass('active').next().slideUp();subNav.slideToggle();block.toggleClass('active')});$(function(){$(window).on("scroll",function(){if($(window).scrollTop()>10){$("body").addClass('scrolled')}else{$("body").removeClass('scrolled')}})});var didScroll;var lastScrollTop=0;var delta=5;var navbarHeight=$('.header__main').outerHeight();var footerHeight=$('footer').outerHeight();$(window).scroll(function(event){didScroll=!0});setInterval(function(){if(didScroll){hasScrolled();didScroll=!1}},50);function hasScrolled(){var st=$(document).scrollTop();if(Math.abs(lastScrollTop-st)<=delta)
3return;if(st>lastScrollTop&&st>navbarHeight){$('body').removeClass('nav-down').addClass('nav-up')}else{if(st+$(window).height()<$(document).height()){$('body').removeClass('nav-up').addClass('nav-down')}}
4if($('footer').offset()?.top<st+$(window).height()||st<50){$('.bottomBar').addClass('hidden')}else{$('.bottomBar').removeClass('hidden')}
5lastScrollTop=st}
6function scrollDetect(){var lastScroll=0;window.onscroll=function(){let currentScroll=document.documentElement.scrollTop||document.body.scrollTop;if(currentScroll>0&&lastScroll<=currentScroll){lastScroll=currentScroll;jQuery("#header").addClass("mobile-nav-hide");jQuery("#header").removeClass("mobile-nav-show");jQuery("body.header-active #header").removeClass("mobile-nav-hide")}else{lastScroll=currentScroll;jQuery("#header").addClass("mobile-nav-show");jQuery("#header").removeClass("mobile-nav-hide")}}}
7scrollDetect()

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.