PageSourceSearch

https://www.netscout.com/themes/custom/netscout/js/dest/component/scrolling-tabs.min.js?v=26.1&tlu9je

js netscout.com collected 2026-09-24 08:01:22 UTC 3,795 bytes, 1 lines download raw bytes

1!function(e,t){"use strict";function r(e,t){const r=e?.querySelector(".scrolling-tabs__item__selected > span");r&&t&&(r.innerText=t)}e.stickyElement={addStickyFixedClass:function(e,t,r){const o=e.getBoundingClientRect().top+window.scrollY;window.addEventListener("scroll",function(){window.scrollY>o?e.classList.add(r):e.classList.remove(r)})}},e.behaviors.activeItemSelected={attach:function(e,r){const o="scrolling-tabs--m-s-only",c=matchMedia("(min-width: 768px)");e.querySelectorAll(".scrolling-tabs__item__selected").length&&t("selected",".scrolling-tabs__item__selected",e).forEach(e=>{const t=e.closest(".scrolling-tabs");e.addEventListener("click",function(){!function(e=400){document.documentElement.dataset.headerLockUntil=String(Date.now()+e),document.querySelector(".header")?.classList.remove("header--hidden"),document.querySelector(".scrolling-tabs--sticky")?.classList.remove("header--hidden")}(),t.classList.toggle(o)}),c.addEventListener("change",function(e){e.matches&&t.classList.remove(o)})})}},e.behaviors.activeItem={attach:function(e,o){const c=document.querySelector(".scrolling-tabs");if(c){const o="active";let l=0;t("sticky-tabs",".scrolling-tabs__item",e).forEach(e=>{e.addEventListener("click",function(t){t.preventDefault();let n=e.parentElement.querySelector("."+o);n&&n.classList.remove(o),e.classList.add(o);let s=e.querySelector("a"),i=s.getAttribute("href"),a=s.innerText;a&&r(c,a),c.classList.contains("scrolling-tabs--m-s-only")&&c.classList.remove("scrolling-tabs--m-s-only");let d="#"===i?0:document.querySelector(i).getBoundingClientRect().top+window.scrollY-l;window.scrollTo({top:d,left:0,behavior:"smooth"}),"#"!==i&&history.pushState({},"",i)})})}}},e.behaviors.activeOnScroll={attach:function(e,t){if(e.querySelectorAll(".scrolling-tabs a").length){let t="active",o=document.querySelector(".scrolling-tabs__wrapper").offsetHeight;document.querySelector("header.header")&&(o+=document.querySelector("header.header").offsetHeight),window.addEventListener("resize",function(){o=document.querySelector(".scrolling-tabs__wrapper").offsetHeight,document.querySelector("header.header")&&(o+=document.querySelector("header.header").offsetHeight)});let c=[...e.querySelectorAll(".scrolling-tabs__item a")].map((e,t)=>{let r=e.getAttribute("href");if(document.querySelector(r))return r}),l=[],n="";const s=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&l.push(e.target.getAttribute("id"))})},{rootMargin:`-${o}px 0px 0px 0px`});c.forEach(e=>{document.querySelector(e)&&s.observe(document.querySelector(e))}),window.addEventListener("scroll",function(){if(l.length&&(1===l.length?n!==l[0]&&(n=l[0]):l.forEach(e=>{let t=document.querySelector("#"+e);t&&t.getBoundingClientRect().top<=o&&n!==e&&(n=e)}),e.querySelector("li.scrolling-tabs__item."+t)&&e.querySelector("li.scrolling-tabs__item."+t).classList.remove(t),e.querySelector("li.scrolling-tabs__item a[href='#"+n+"']")&&e.querySelector("li.scrolling-tabs__item a[href='#"+n+"']").parentElement)){const o=e.querySelector("li.scrolling-tabs__item a[href='#"+n+"']");o.parentElement.classList.add(t),r(e.querySelector(".scrolling-tabs"),o.innerText)}},{passive:!0})}}},e.behaviors.setStickyNav={attach:function(r,o){let c=document.querySelector(".eck-banner-left-text .banner__modern");document.querySelector(".scrolling-tabs__wrapper--oval")&&c&&c.classList.add("has-scrolling-tabs"),t("fixed-nav",".scrolling-tabs__wrapper",r).forEach(t=>{let r=null,o=document.querySelector("header.header")?"scrolling-tabs--sticky-fixed":"scrolling-tabs--sticky-top";["#sectionSolutions","#ns-footer","#ns-footer--simple"].some(e=>{if(document.querySelector(e)&&document.querySelector(e).checkVisibility())return r=e,!0}),e.stickyElement.addStickyFixedClass(t,document.querySelector(r),o)})}}}(Drupal,once);

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.