PageSourceSearch

https://buske.de/static/version1789027969/frontend/FMV/hyvaBuske/de_DE/js/script.js

js buske.de collected 2026-09-24 21:18:30 UTC 965 bytes, 28 lines download raw bytes

1!function() {
2
3    function handleFAQ(entries, target){
4        // entries.forEach(element => {
5        //     element.dataset.active = "false";
6        // });
7        // target.parentNode.dataset.active = "true";
8
9		target.parentNode.dataset.active = target.parentNode.dataset.active === "true" ? "false" : "true";
10    }
11
12    function initFAQ(faq){
13        let entries = faq.querySelectorAll('[data-content-type="faq-item"]');
14        entries.forEach(element => {
15            element.dataset.active = "false";
16            element.querySelector('[data-element="question"]').addEventListener('click', function(ev){
17                handleFAQ(entries, ev.target);
18            });
19        });
20    }
21
22    document.addEventListener("DOMContentLoaded", function(){
23        if(document.querySelector('div.faq-container[data-content-type="faq"]') !== null) {
24            initFAQ(document.querySelector('div.faq-container[data-content-type="faq"]'));
25        }
26    });
27
28}();

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.