PageSourceSearch

https://goldisural.ru/local/components/custom/menu.v2/templates/mobile/script.js?1758796605658

js goldisural.ru collected 2026-10-06 05:51:44 UTC 658 bytes, 22 lines download raw bytes

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.