PageSourceSearch

https://www.tksm.ch/js/_require.js?v=1781528714

js tksm.ch collected 2026-10-08 18:40:55 UTC 7,910 bytes, 205 lines download raw bytes

1rIt({
2    "*": {
3        "assets": [
4            "/securewebapps/evercdn/assets/notificationsjs/v1/scripts/main.min.js",
5            "/securewebapps/evercdn/assets/notificationsjs/v1/styles/main.min.css",
6            "/js/_essentials/basics.js",
7            "/js/_essentials/ruffnav.js"
8        ],
9        "function": "always"
10    },
11    "body.isOldBrowser": {
12        "assets": ["/securewebapps/evercdn/assets/notificationsjs/v1/scripts/oldbrowser.js"]
13    },
14    ".cms-image.lightbox-zoom-image, .cms-gallery.modalGallery": {
15        "assets": ["/js/vendor/baguetteBox.js"],
16        "function": function (selector) {
17            baguetteBox.run(selector, { noScrollbars: true, async: true, preload: 0 });
18        }
19    },
20    "picture, :not(picture) > img[data-src], .lazy-bg": {
21        "assets": ["/js/_essentials/basics.js", "/securewebapps/evercdn/assets/lazyloading/v2/scripts/main.min.js"],
22        "function": function (selector) {
23            const lazyload = new LazyLoad({ selector: selector });
24        }
25    },
26    "form[action*='formixapp.com']:not([data-evercaptcha])": {
27        "assets": ["/js/_essentials/basics.js", "/securewebapps/evercdn/assets/formixjs/v1/scripts/main.min.js"],
28        "function": function (selector) {
29            const formix = new Formix({ selector: selector });
30        }
31    },
32    "form[data-evercaptcha]": {
33        "assets": [
34            "/js/_essentials/basics.js",
35            "/securewebapps/evercdn/assets/formixjs/v1/scripts/main.min.js",
36            "/securewebapps/evercdn/assets/evercaptcha/v1/scripts/main.min.js"
37        ],
38        "function": function (selector) {
39            const formix = new Formix({
40                selector: selector,
41                eventName: "evercaptcha-valid"
42            });
43            const everCaptcha = new EverCAPTCHA(selector, true, {
44                hookSending: true
45            });
46        },
47        "lazy": true
48    },
49    "html[data-privacy-control]": {
50        "assets": [
51            "/securewebapps/evercdn/assets/privacyControl/v3/scripts/config.min.js",
52            "/securewebapps/evercdn/assets/privacyControl/v3/scripts/main.min.js",
53            "/securewebapps/evercdn/assets/privacyControl/v3/styles/main.min.css"
54        ],
55        "function": function () {
56            const privacyCtrl = new PrivacyControl()
57            privacyCtrl.addService('googlemaps')
58        }
59    },
60    "body:not(.index) .collapser": {
61        "assets": ["/modules/Faq/assets/js/collapser.min.js", "/modules/Faq/assets/css/collapser.css"],
62        "function": function () {
63            var collapser = new Collapser({
64               openFirst: false, 
65        });
66        }
67    },
68    "main .sticky-nav-cont": {
69        "assets": [],
70        "function": function () {
71            var row = document.querySelectorAll('.modul-row');
72            var headlinesNav = document.querySelectorAll('main h2');
73            
74            headlinesNav.forEach(element => {
75                var headlineContNav = element.textContent.trim();
76                var headlineId = headlineContNav.replace(/[^A-Z0-9]+/ig,'');
77                
78                let li = document.createElement('li');
79                let a = document.createElement('a');
80                a.textContent = element.textContent;
81                a.setAttribute('href', '#'+headlineId);
82                a.setAttribute('title', 'Springe zu' + element.textContent.replace(/\s+/g, ' '));
83                
84                var navi = document.getElementById('inner-sticky');
85                li.appendChild(a);
86                li.setAttribute('class', headlineId);
87                navi.appendChild(li);
88            });
89            
90            row.forEach(elm => {
91                var headlines = elm.querySelector('h2');
92                if (headlines) {
93                    var headlineCont = headlines.textContent.trim();
94                    var headlineId = headlineCont.replace(/[^A-Z0-9]+/ig,'');
95                    elm.setAttribute('id', headlineId);
96                }
97            });
98    
99            window.addEventListener("load", function(){
100                const sections = document.querySelectorAll(".modul-row");
101                const navLi = document.querySelectorAll("nav #inner-sticky li");
102    
103                window.addEventListener("scroll", () => {
104                    let current = "";
105                    sections.forEach((section) => {
106                        const sectionTop = section.offsetTop;
107                        const sectionHeight = section.clientHeight;
108    
109                        if (scrollY >= sectionTop - sectionHeight / 3) {
110                            current = section.getAttribute("id");
111                        }
112                    });
113        
114                    navLi.forEach((li) => {
115                        li.classList.remove("active");
116                        if (li.classList.contains(current)) {
117                            li.classList.add("active");
118                        }
119                    });
120                });
121            });
122        }
123    },
124
125    "body.News-Blog:not(.blog-index)": {
126        "assets": [],
127        "function": function () {
128            var row = document.querySelector('.blog-post-row');
129            var div = document.createElement("div");
130            div.setAttribute('class', 'col back-btn')
131            row.insertAdjacentElement('afterbegin', div)
132            var button = document.createElement("a");
133            button.setAttribute('href', '/blog/')
134            button.setAttribute('class', 'btn')
135            button.setAttribute('title', 'Zurück zur Übersicht')
136            button.innerHTML = "Zurück zur Übersicht";
137            div.appendChild(button)
138        }
139    },
140    "body.Termine-Downloads:not(.termine-downloads-index)": {
141        "assets": [],
142        "function": function () {
143            var row = document.querySelector('.blog-post-row');
144            var div = document.createElement("div");
145            div.setAttribute('class', 'col back-btn')
146            row.insertAdjacentElement('afterbegin', div)
147            var button = document.createElement("a");
148            button.setAttribute('href', '/termine-downloads/')
149            button.setAttribute('title', 'Zurück zur Übersicht')
150            button.setAttribute('class', 'btn')
151            button.innerHTML = "Zurück zur Übersicht";
152            div.appendChild(button)
153        }
154    }
155});
156
157function always() {
158    basics();
159    const ruffnav = new Ruffnav();
160
161    function scrollClass() {
162        var pageNavi = document.getElementById('navigation');
163        window.addEventListener('scroll', function () {
164            var scrollTop = window.scrollY;
165
166            if (scrollTop > 1 && window.innerWidth >= breakpoint('large')) {
167                pageNavi.classList.add('small');
168            }
169
170            else if (scrollTop < 1 && window.innerWidth >= breakpoint('large')) {
171                pageNavi.classList.remove('small');
172            }
173        });
174    }
175    scrollClass();
176
177    function hideit() {
178        var fixedContacts = document.getElementById('fixed-bar');
179        var footer = document.getElementById('footer');
180        var footerHeight = footer.offsetTop;
181
182
183        window.addEventListener('scroll', function () {
184            var scrollTop = window.scrollY;
185            var scrollTop2 = window.scrollY + window.innerHeight;
186
187            if (scrollTop > 30 && window.innerWidth >= breakpoint('large')) {
188                fixedContacts.classList.add('show');
189            }
190
191            else if (scrollTop < 30 && window.innerWidth >= breakpoint('large')) {
192                fixedContacts.classList.remove('show');
193            }
194
195            if (scrollTop2 > footerHeight) {
196                fixedContacts.classList.add('hide');
197            }
198
199            else if (scrollTop2 < footerHeight) {
200                fixedContacts.classList.remove('hide');
201            }
202        });
203    }
204    hideit();
205}

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.