1(function(document,window,index){'use strict';var elSelector='.navbar',element=document.querySelector(elSelector);var bodySelector='body',bodyElement=document.querySelector(bodySelector);if(!element)return true;var elHeight=0,elTop=0,dHeight=0,wHeight=0,wScrollCurrent=0,wScrollBefore=0,wScrollDiff=0;window.addEventListener('scroll',function(){elHeight=element.offsetHeight;dHeight=document.body.offsetHeight;wHeight=window.innerHeight;wScrollCurrent=window.pageYOffset;wScrollDiff=wScrollBefore-wScrollCurrent;elTop=parseInt(window.getComputedStyle(element).getPropertyValue('top'))+wScrollDiff;if(wScrollCurrent<=0){element.style.top='0px';element.style.position='relative';element.classList.remove('navbar-stick');bodyElement.classList.remove('has-navbar-stick');}else if(wScrollDiff>0){element.style.top=(elTop>0?0:elTop)+'px';element.style.position='fixed';element.style.width='100%';element.classList.add('navbar-stick');bodyElement.classList.add('has-navbar-stick');}else if(wScrollDiff<0){if(wScrollCurrent+wHeight>=dHeight-elHeight) 2element.style.top=((elTop=wScrollCurrent+wHeight-dHeight)<0?elTop:0)+'px';else element.style.top=(Math.abs(elTop)>elHeight?-elHeight:elTop)+'px';} 3wScrollBefore=wScrollCurrent;});})(document,window,0);
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.