1;(function($){var settings={speed:300,offset:0,currentClass:'active',updateHash:false,classToParent:false} 2var NavPoints={init:function(options,navbar){settings=$.extend(settings,options);this.$navbar=$(navbar);this.$items=this.$navbar.find('a:not(.externals)');this.$window=$(window);this.hashNow=undefined;this.$items.on('click',this.clicked);this.$window.on('scroll',$.proxy(this.scrollPage,this));this.$window.on('resize',$.proxy(this.scrollPage,this));},clicked:function(e){var hash=$(this).attr('href');if(hash!=='#'&&/^#/.test(hash)){e.preventDefault();var position=$(hash).offset().top-settings.offset;$('html, body').animate({scrollTop:position},settings.speed);}},scrollPage:function(){var self=this,sections=[],result=undefined;self.$items.each(function(){var hash=$(this).attr('href');if(hash!=='#'&&/^#/.test(hash)){var section=$(hash);if(section.length)sections.push(section);}});for(var i=0;i<sections.length;i++){var section=sections[i],sectionHeight=section.height(),sectionTop=section.offset().top,windowTop=self.$window.scrollTop(),windoHeight=self.$window.height();if(windowTop<=sectionTop&&(sectionHeight+sectionTop)<(windowTop+windoHeight)){result=sections[i].attr('id');break;}} 3if(result){if(settings.updateHash){var hash='#'+result;if(self.hashNow!=hash){self.hashNow=hash;history.pushState({},'',hash);}} 4if(settings.classToParent){self.$items.parent().removeClass(settings.currentClass);$('a[href="#'+result+'"]').parent().addClass(settings.currentClass);} 5else{self.$items.removeClass(settings.currentClass);$('a[href="#'+result+'"]').addClass(settings.currentClass);}}}} 6$.fn.navpoints=function(options){this.each(function(){var navpoints=Object.create(NavPoints);navpoints.init(options,this);});}})(jQuery);
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.