PageSourceSearch

https://www.olfen.de/_assets/e7f05ce882e7300ef46b87e1e7f78ce5/JavaScript/Dist/scripts.js?1747821013

js olfen.de collected 2026-10-02 17:16:51 UTC 1,644 bytes, 40 lines download raw bytes

1/*!
2 * cm package v1.0.0 (https://vorlage.cm-staging.de)
3 * Copyright 2017-2023 robmarti
4 * Licensed under the GPL-2.0-or-later license
5 */
6console.log("WE LOVE TYPO3");
7
8document.addEventListener("DOMContentLoaded", function () {
9    switchNewsCalendar(); //Switched zwischen den Kalendereinträgen und Newseinträgen on click
10});
11
12function switchNewsCalendar() {
13    let buttonNews = document.querySelector(".main-quicklinks-buttons .citizens-button");
14    let buttonCalendar = document.querySelector(".main-quicklinks-buttons .tourists-button");
15    let sectionNews = document.querySelector(".section-column-main-quicklinks-citizens");
16    let sectionCalendar = document.querySelector(".section-column-main-quicklinks-tourists");
17
18    const setHeightWithPreload = () => document.querySelectorAll("c7-slides .swiper-wrapper").forEach(item =>  item.style = '');
19
20    if (buttonNews) {
21        buttonNews.classList.add("active");
22        sectionNews.classList.add("active");
23        buttonNews.addEventListener("click", function () {
24            buttonNews.classList.add("active");
25            buttonCalendar.classList.remove("active");
26            sectionNews.classList.add("active");
27            sectionCalendar.classList.remove("active");
28            setTimeout(setHeightWithPreload, 1);
29        });
30        buttonCalendar.addEventListener("click", function () {
31            buttonNews.classList.remove("active");
32            buttonCalendar.classList.add("active");
33            sectionNews.classList.remove("active");
34            sectionCalendar.classList.add("active");
35            setTimeout(setHeightWithPreload, 1);
36        })
37    }
38}
39
40

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.