1BX.ready(() => { 2 const secondMenuWrapper = document.querySelector('.header__second-menu-wrapper'); 3 4 if (secondMenuWrapper) { 5 BX.Sotbit.B2C.headerReady((header) => { 6 BX.Sotbit.B2C.layout.header_second?.setMenuVisibility(header.isFixed); 7 secondMenuWrapper.classList[header.isFixed ? 'add' : 'remove']('hidden'); 8 }); 9 10 BX.addCustomEvent('headerStateChange', (event) => { 11 BX.Sotbit.B2C.layout.header_second?.setMenuVisibility(!event.data.fixed); 12 BX.Sotbit.B2C.layout.header_second?.switchShowMoreSubmenuState(false); 13 secondMenuWrapper.classList[event.data.fixed ? 'add' : 'remove']('hidden'); 14 }); 15 } 16 17 BX.addCustomEvent('getRegion', () => { 18 BX.Sotbit.B2C.layout.header_top?.hideExtraMenuItems(); 19 }); 20});
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.