PageSourceSearch

https://ministar.ru/local/templates/ministar_wm/components/wm/simp…/telegram-adv/script.js?17435143881049

js ministar.ru collected 2026-10-07 14:45:40 UTC 1,049 bytes, 37 lines download raw bytes

1document.querySelectorAll('.telegram-adv__item').forEach(function (dropDownWrapper) {
2
3    const button = dropDownWrapper.querySelector('.telegram-adv__item-name');
4    const content = dropDownWrapper.querySelector('.telegram-adv__item-content');
5
6    button.addEventListener('click', (e) => {
7        if (dropDownWrapper.dataset.open !== 'true') {
8            dropDownWrapper.dataset.open = 'true';
9            content.style.maxHeight = `${content.scrollHeight}px`;
10        } else {
11            dropDownWrapper.dataset.open = 'false';
12            content.style.maxHeight = '';
13        }
14        e.preventDefault();
15    });
16
17});
18
19
20
21const companyTelegramAdvSwiper = new Swiper('.telegram-adv__container', {
22    direction: 'horizontal',
23    slidesPerView: 'auto',
24    speed: 500,
25    autoplay: {
26        delay: 3000,
27    },
28    navigation: {
29        nextEl: '.telegram-adv__btn-next',
30        prevEl: '.telegram-adv__btn-prev',
31    },
32    pagination: {
33        el: '.telegram-adv__pagination',
34        clickable: true,
35    },
36    spaceBetween: 20,
37});

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.