PageSourceSearch

https://www.zi.de/_assets/4483a80560873394161ba712d6ca7e9e/JS/_toggleBtn-7321e396.js

js zi.de collected 2026-09-25 18:38:46 UTC 802 bytes, 25 lines download raw bytes

1// Toggle Button function
2
3function init() {
4  var toggleBtn = document.querySelectorAll(".btn-toggle");
5  if (typeof toggleBtn != 'undefined' && toggleBtn != null) {
6    toggleBtn.forEach(function (el) {
7      el.addEventListener("click", function () {
8        var ariaState = el.getAttribute("aria-expanded");
9        var target = el.dataset.target;
10        if (ariaState == "false") {
11          el.setAttribute("aria-expanded", "true");
12          document.querySelector(target).classList.add('show');
13        } else {
14          el.setAttribute("aria-expanded", "false");
15          document.querySelector(target).classList.remove('show');
16        }
17      });
18    });
19  }
20}
21var _toggleBtn = {};
22var Init = init;
23
24export { Init, _toggleBtn as default };
25//# sourceMappingURL=_toggleBtn-7321e396.js.map

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.