PageSourceSearch

https://www.chancenportal-bielefeld.de/typo3temp/assets/compressed…e3132be8b005bea0df308627a7581.js?1762345579

js chancenportal-bielefeld.de collected 2026-10-04 02:49:46 UTC 9,120 bytes, 163 lines download raw bytes

1
2document.addEventListener("DOMContentLoaded", function () {
3    setTimeout(function(){
4        let body = document.getElementsByTagName('body')[0];
5
6        // font size toggle start
7        let fontSizeToggle = document.getElementById('accessible-font-size-toggle');
8        let previousFontSize = localStorage.getItem('accessibility-fontsize');
9        let kachels = document.getElementsByClassName('kachel');
10
11        if(!previousFontSize || previousFontSize === '1') {
12            body.style.fontSize = '1rem';
13            body.style.lineHeight = 'initial';
14            for (let i = 0; i < kachels.length; i++) {
15                const kachelCategory = kachels.item(i).querySelector('.kachel__category');
16                const kachelHeadline = kachels.item(i).querySelector('.kachel__headline');
17                const kachelSubheadline = kachels.item(i).querySelector('.kachel__subheadline');
18                kachelCategory ? kachelCategory.style.fontSize = null: null;
19                kachelCategory ? kachelCategory.style.lineHeight = null: null;
20                kachelHeadline ? kachelHeadline.style.fontSize = '1.33333rem': null;
21                kachelHeadline ? kachelHeadline.style.lineHeight = '1.33333rem': null;
22                kachelSubheadline ? kachelSubheadline.style.fontSize = '1rem': null;
23                kachelSubheadline ? kachelSubheadline.style.lineHeight = '1.16667rem': null;
24            }
25        } else if(previousFontSize === '2') {
26            body.style.fontSize = '1.2rem';
27            body.style.lineHeight = '1.3rem';
28            for (let i = 0; i < kachels.length; i++) {
29                const kachelCategory = kachels.item(i).querySelector('.kachel__category');
30                const kachelHeadline = kachels.item(i).querySelector('.kachel__headline');
31                const kachelSubheadline = kachels.item(i).querySelector('.kachel__subheadline');
32                kachelCategory ? kachelCategory.style.fontSize = '17px': null;
33                kachelCategory ? kachelCategory.style.lineHeight = '1.1rem': null;
34                kachelHeadline ? kachelHeadline.style.fontSize = '1.5rem': null;
35                kachelHeadline ? kachelHeadline.style.lineHeight = '1.5rem': null;
36                kachelSubheadline ? kachelSubheadline.style.fontSize = '1.2rem': null;
37                kachelSubheadline ? kachelSubheadline.style.lineHeight = '1.3rem': null;
38            }
39        } else {
40            body.style.fontSize = '1.4rem';
41            body.style.lineHeight = '1.5rem';
42            for (let i = 0; i < kachels.length; i++) {
43                const kachelCategory = kachels.item(i).querySelector('.kachel__category');
44                const kachelHeadline = kachels.item(i).querySelector('.kachel__headline');
45                const kachelSubheadline = kachels.item(i).querySelector('.kachel__subheadline');
46                kachelCategory ? kachelCategory.style.fontSize = '22px': null;
47                kachelCategory ? kachelCategory.style.lineHeight = '2.3rem': null;
48                kachelHeadline ? kachelHeadline.style.fontSize = '1.8rem': null;
49                kachelHeadline ? kachelHeadline.style.lineHeight = '1.8rem': null;
50                kachelSubheadline ? kachelSubheadline.style.fontSize = '1.4rem': null;
51                kachelSubheadline ? kachelSubheadline.style.lineHeight = '1.6rem': null;
52            }
53        }
54
55        if(fontSizeToggle) {
56            fontSizeToggle.addEventListener('click', function () {
57                previousFontSize = localStorage.getItem('accessibility-fontsize');
58                if(!previousFontSize || previousFontSize === '1') {
59                    localStorage.setItem('accessibility-fontsize', '2');
60                    body.style.fontSize = '1.2rem';
61                    body.style.lineHeight = '1.3rem';
62                    for (let i = 0; i < kachels.length; i++) {
63                        const kachelCategory = kachels.item(i).querySelector('.kachel__category');
64                        const kachelHeadline = kachels.item(i).querySelector('.kachel__headline');
65                        const kachelSubheadline = kachels.item(i).querySelector('.kachel__subheadline');
66                        kachelCategory ? kachelCategory.style.fontSize = '17px': null;
67                        kachelCategory ? kachelCategory.style.lineHeight = '1.1rem': null;
68                        kachelHeadline ? kachelHeadline.style.fontSize = '1.5rem': null;
69                        kachelHeadline ? kachelHeadline.style.lineHeight = '1.5rem': null;
70                        kachelSubheadline ? kachelSubheadline.style.fontSize = '1.2rem': null;
71                        kachelSubheadline ? kachelSubheadline.style.lineHeight = '1.3rem': null;
72                    }
73                } else if(previousFontSize === '2') {
74                    localStorage.setItem('accessibility-fontsize', '3');
75                    body.style.fontSize = '1.4rem';
76                    body.style.lineHeight = '1.5rem';
77                    for (let i = 0; i < kachels.length; i++) {
78                        const kachelCategory = kachels.item(i).querySelector('.kachel__category');
79                        const kachelHeadline = kachels.item(i).querySelector('.kachel__headline');
80                        const kachelSubheadline = kachels.item(i).querySelector('.kachel__subheadline');
81                        kachelCategory ? kachelCategory.style.fontSize = '22px': null;
82                        kachelCategory ? kachelCategory.style.lineHeight = '2.3rem': null;
83                        kachelHeadline ? kachelHeadline.style.fontSize = '1.8rem': null;
84                        kachelHeadline ? kachelHeadline.style.lineHeight = '1.8rem': null;
85                        kachelSubheadline ? kachelSubheadline.style.fontSize = '1.4rem': null;
86                        kachelSubheadline ? kachelSubheadline.style.lineHeight = '1.6rem': null;
87                    }
88                } else {
89                    localStorage.setItem('accessibility-fontsize', '1');
90                    body.style.fontSize = '1rem';
91                    body.style.lineHeight = 'initial';
92                    for (let i = 0; i < kachels.length; i++) {
93                        const kachelCategory = kachels.item(i).querySelector('.kachel__category');
94                        const kachelHeadline = kachels.item(i).querySelector('.kachel__headline');
95                        const kachelSubheadline = kachels.item(i).querySelector('.kachel__subheadline');
96                        kachelCategory ? kachelCategory.style.fontSize = null: null;
97                        kachelCategory ? kachelCategory.style.lineHeight = null: null;
98                        kachelHeadline ? kachelHeadline.style.fontSize = '1.33333rem': null;
99                        kachelHeadline ? kachelHeadline.style.lineHeight = '1.33333rem': null;
100                        kachelSubheadline ? kachelSubheadline.style.fontSize = '1rem': null;
101                        kachelSubheadline ? kachelSubheadline.style.lineHeight = '1.16667rem': null;
102                    }
103                }
104            });
105        }
106
107        let contrastToggle = document.getElementById('accessible-contrast-toggle');
108        let previousContrast = localStorage.getItem('accessibility-contrast');
109        if(!previousContrast || previousContrast === '0') {
110            body.classList.remove("high-contrast");
111            
112        } else {
113            body.classList.add("high-contrast");
114            
115        }
116
117        if(contrastToggle) {
118            contrastToggle.addEventListener('click', function () {
119                
120                previousContrast = localStorage.getItem('accessibility-contrast');
121                if(!previousContrast || previousContrast === '0') {
122                    localStorage.setItem('accessibility-contrast', '1');
123                    body.classList.add("high-contrast");
124                    
125                } else {
126                    localStorage.setItem('accessibility-contrast', '0');
127                    body.classList.remove("high-contrast");
128                    
129                }
130            });
131        }
132    }, 1000);
133});
134
135window.analyticsLoaded = false;
136window.addEventListener('cookieConsent', function (event) {
137    //if (event.detail.hasOption('google_analytics')) {
138    //    if (false === window.analyticsLoaded) {
139    //        // load analytics
140    //        window.analyticsLoaded = true;
141    //    }
142    //} else {
143    //    // do not load analytics
144    // }
145});
146
147window.addEventListener('cookieConsentButtonsReplaced', function (event) {
148    // do something here
149});
150
151var _paq = window._paq = window._paq || [];
152/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
153_paq.push(['trackPageView']);
154_paq.push(['enableLinkTracking']);
155_paq.push(['requireCookieConsent']);
156(function() {
157var u="//www.chancenportal-bielefeld.de/matomo/";
158_paq.push(['setTrackerUrl', u+'matomo.php']);
159_paq.push(['setSiteId', '1']);
160var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
161g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
162})();
163

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.