PageSourceSearch

https://www.mgfoms.ru/local/templates/main/components/sprint.editor/blocks/.default/_script.js?16729960131048

js mgfoms.ru collected 2026-10-02 17:42:28 UTC 1,048 bytes, 24 lines download raw bytes

1/* Общие скрипты для блоков */
2
3/*accordion*/
4document.addEventListener("DOMContentLoaded", function (e) {
5    var acc = document.getElementsByClassName("sp-accordion");
6    for (var accIndex = 0; accIndex < acc.length; accIndex++) {
7        if (!acc[accIndex].classList.contains('sp-accordion__initialized')) {
8            acc[accIndex].classList.add('sp-accordion__initialized');
9            var titles = acc[accIndex].getElementsByClassName("sp-accordion-title");
10            for (var titleIndex = 0; titleIndex < titles.length; titleIndex++) {
11                titles[titleIndex].addEventListener("click", function () {
12                    this.classList.toggle("sp-accordion-title__active");
13                    var panel = this.nextElementSibling;
14                    if (panel.style.display === "block") {
15                        panel.style.display = "none";
16                    } else {
17                        panel.style.display = "block";
18                    }
19                });
20            }
21        }
22    }
23});
24

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.