PageSourceSearch

https://nalog.gov.by/local/templates/main_template/components/bitr…/documents/script.js?17586286582066

js nalog.gov.by collected 2026-09-24 17:35:21 UTC 2,066 bytes, 33 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function() {
2    // Удаляем класс 'show' у всех элементов аккордеона
3    var accordionItems = document.querySelectorAll('#accordionMns');
4    accordionItems.forEach(item => item.classList.remove('show'));
5
6    // Добавляем класс 'show' только к нужному элементу
7    var hash = window.location.hash;
8    if(hash === "#heading_organizations") {
9        document.getElementById("organizations").classList.add("show");
10    }else if(hash === "#heading_individuals") {
11        document.getElementById("individuals").classList.add("show");
12    }else if(hash === "#heading_entrepreneurs") {
13        document.getElementById("entrepreneurs").classList.add("show");
14    }else {
15        document.getElementById("individuals").classList.add("show");
16    }
17    const targetIds = ['heading_organizations', 'heading_individuals', 'heading_entrepreneurs'];
18    function handleLinkClick(event) {
19        //event.preventDefault(); // Предотвращаем стандартное поведение ссылки
20        const fullHref = this.getAttribute('href'); // Получаем полный href
21        const id = fullHref.split('/').pop().split('#')[1]; // Извлекаем идентификатор из href
22        // Проверяем, является ли идентификатор одним из целей
23        if (targetIds.includes(id)) {
24            // Удаляем класс 'show' у всех элементов аккордеона
25            var accordionItems = document.querySelectorAll('.accordion-item');
26            accordionItems.forEach(item => item.classList.remove('show'));
27
28            // Добавляем класс 'show' к соответствующему элементу
29            document.getElementById(id).classList.add("show");
30        }
31    }
32    document.querySelectorAll('a[href^="/documents/#"]').forEach(link => link.addEventListener('click', handleLinkClick));
33});

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.