PageSourceSearch

https://www.hemmingen.de/typo3conf/ext/hwdatenschutz/Resources/Pub…/HwDatenschutzElements.js?1677180001

js hemmingen.de collected 2026-10-02 16:47:18 UTC 1,023 bytes, 37 lines download raw bytes

1if (document.readyState === 'complete') {
2    hwCookieElements();
3} else {
4    document.addEventListener('readystatechange', () => {
5        if (document.readyState === 'complete') {
6            hwCookieElements();
7        }
8    });
9}
10
11function hwCookieElements() {
12
13    let loadContentButtons = document.getElementsByClassName('hw_cookiebanner__load_iframe');
14
15    if (loadContentButtons) {
16
17        Array.from(loadContentButtons).forEach( privacyButton => {
18
19            if (privacyButton.dataset.uid) {
20
21                privacyButton.addEventListener('click', (e) => {
22
23                    e.preventDefault();
24
25                    let targetId = "iframe[data-uid='"+privacyButton.dataset.uid+"']";
26
27                    let targetElement = document.querySelector(targetId);
28
29                    if (targetElement) {
30                        targetElement.src = targetElement.dataset.src;
31                        targetElement.nextSibling.remove();
32                    }
33                })
34            }
35        })
36    }
37}

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.