PageSourceSearch

https://vipservice.ru/bitrix/cache/js/ve/vipservice2/template_110a…ea2d122aaff3bb8d24f6cd_v1.js?17879163631443

js vipservice.ru collected 2026-09-25 20:08:32 UTC 1,443 bytes, 40 lines download raw bytes

1
2; /* Start:"a:4:{s:4:"full";s:96:"/bitrix/templates/vipservice2/components/bitrix/menu/main_horizontal_v2/script.js?17731144851053";s:6:"source";s:81:"/bitrix/templates/vipservice2/components/bitrix/menu/main_horizontal_v2/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
3document.addEventListener('click', function (e) {
4
5    const toggle = e.target.closest('.mobile-menu__toggle');
6    if (!toggle) return;
7
8    const currentItem = toggle.closest('.mobile-menu__item');
9    const currentSubmenu = currentItem.querySelector(':scope > .mobile-menu__submenu');
10
11    const isOpen = toggle.getAttribute('aria-expanded') === 'true';
12
13
14    const parentList = currentItem.parentElement; 
15    const siblings = parentList.querySelectorAll(':scope > .mobile-menu__item.has-children');
16
17    siblings.forEach(function (sibling) {
18
19        if (sibling === currentItem) return;
20
21        const btn = sibling.querySelector(':scope > .mobile-menu__row > .mobile-menu__toggle');
22        const submenu = sibling.querySelector(':scope > .mobile-menu__submenu');
23
24        if (btn) btn.setAttribute('aria-expanded', 'false');
25        if (submenu) submenu.style.display = 'none';
26
27    });
28
29
30    toggle.setAttribute('aria-expanded', !isOpen);
31
32    if (currentSubmenu) {
33        currentSubmenu.style.display = isOpen ? 'none' : 'block';
34    }
35
36});
37
38
39/* End */
40;; /* /bitrix/templates/vipservice2/components/bitrix/menu/main_horizontal_v2/script.js?17731144851053*/

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.