PageSourceSearch

https://rio-hotel.ru/local/templates/petr/components/bitrix/news.list/faq-list/script.js

js rio-hotel.ru collected 2026-10-05 06:43:10 UTC 530 bytes, 16 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function () {
2    var acc = document.getElementsByClassName("accordion");
3    var i;
4
5    for (i = 0; i < acc.length; i++) {
6        acc[i].addEventListener("click", function () {
7            this.classList.toggle("active");
8            var panel = this.nextElementSibling;
9            if (panel.style.maxHeight) {
10                panel.style.maxHeight = null;
11            } else {
12                panel.style.maxHeight = panel.scrollHeight + "px";
13            }
14        });
15    }
16});

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.