1(function () { 2 'use strict'; 3 4 const { 5 CONFIG, 6 createListItemFactory, 7 createNavListFromDataAttributes, 8 registerSectionObserver, 9 startScrollTracking, 10 createAnchorNavHelpers 11 } = VSNavigation; 12 13 const nameComponent = 'tpl-menu-h1'; 14 const selectorComponent = $(`.${nameComponent}`); 15 16 const createListItem = createListItemFactory( 17 `${nameComponent}__link-menu`, 18 `${nameComponent}__text-link` 19 ); 20 21 const { 22 setActiveLink, 23 initNavScrollX, 24 scrollToActiveLinkOnLoad, 25 initSmoothScroll 26 } = createAnchorNavHelpers({ nameComponent, selectorComponent }); 27 28 $(document).ready(function() { 29 createNavListFromDataAttributes( 30 '[data-anchor-section]', 31 selectorComponent.find(`.${nameComponent}__links-menu`), 32 createListItem, 33 true 34 ); 35 36 initNavScrollX('__nav-wrapper'); 37 scrollToActiveLinkOnLoad(); 38 initSmoothScroll(); 39 registerSectionObserver(setActiveLink); 40 startScrollTracking(); 41 }); 42})();
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.