1const mainMenuMobile = new ResizeObserver(entries => { 2 for (let entry of entries) { 3 var $target = entry.target, 4 $el = $($target).find('.main-menu__item:not(.main-menu__item--hide)'), 5 $widthEl = 0; 6 7 $el.each(function( index ) { 8 $widthEl += $(this).outerWidth(true); 9 }); 10 11 if(parseInt($widthEl) > $target.clientWidth){ 12 $target 13 var $index = $el.length - 1; 14 $($el[$index]).addClass('main-menu__item--hide'); 15 } 16 else{ 17 //TODO: SHOW HIDE ITEMS MENU 18 } 19 } 20}) 21 22mainMenuMobile.observe(document.querySelector('[data-observe-size]'));
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.