PageSourceSearch

https://www.demenz-pflege-niederbayern.de/typo3conf/ext/dk_sitepac…/Public/JavaScript/custom.js?1744184846

js demenz-pflege-niederbayern.de collected 2026-10-04 19:59:32 UTC 8,330 bytes, 248 lines download raw bytes

1$(function() {
2
3    enableBackToTop();
4
5    $('ul.sf-menu').superfish();
6
7
8    $('.slickslider').slick({
9        infinite: true,
10        slidesToShow: 3,
11        slidesToScroll: 1,
12        autoplay: false,
13        autoplaySpeed: 5000,
14        responsive: [
15            {
16                breakpoint: 1024,
17                settings: {
18                    slidesToShow: 2,
19                    slidesToScroll: 1
20                }
21            },
22            {
23                breakpoint: 768,
24                settings: {
25                    slidesToShow: 1,
26                    slidesToScroll: 1
27                }
28            }
29        ]
30    });
31
32
33    var widthtitle = ($('.pageheader-title').width()) / 2;
34    $('.pageheader-title').css('margin-left','-' + widthtitle + 'px');
35
36    $('#powermail_field_veranstaltung').prop("readonly", true);
37    $('#powermail_field_datum').prop("readonly", true);
38    $('#powermail_field_kosten').prop("readonly", true);
39
40    // externe links
41    // $("a[href^='http:']:not([href*='" + window.location.host + "'])").attr("target", "_blank").addClass('external-link');
42    // $("a[href^='https:']:not([href*='" + window.location.host + "'])").attr("target", "_blank").addClass('external-link');
43
44
45    // bind change event to select
46    $('#selectoptions').on('change', function () {
47
48        var url = $(this).val(); // get selected value
49        if (url) { // require a URL
50            window.location = url; // redirect
51        }
52        return false;
53    });
54
55    $('.inputradio').click(function(){
56        $('.custom-radio').removeClass('cat-marker');
57        var isChecked = $(this).prop('checked');
58        if( isChecked == true ) { $(this).closest('li').addClass('cat-marker');}
59    });
60
61
62    $('.news-categorie-icon-mediathek').click(function(){
63        $('.splash').css('display', 'block')
64    });
65
66
67});
68
69
70$('.powermail_fieldwrap_8uschulungabsolviertteilnahmebestaetigung').hide();
71$('#powermail_field_8uschulungabsolviertteilnahmebestaetigung').prop( "disabled", true ).prop('required',false);
72
73$('.powermail_fieldwrap_8uschulungbefreitnachweis').hide();
74$('#powermail_field_8uschulungbefreitnachweis').prop( "disabled", true ).prop('required',false);
75
76
77$('#powermail_field_8uschulung').on('change', function() {
78
79    var auswahl = this.value;
80
81    $('.powermail_fieldwrap_8uschulungabsolviertteilnahmebestaetigung').hide();
82    $('#powermail_field_8uschulungabsolviertteilnahmebestaetigung').prop('disabled', true);
83
84    $('.powermail_fieldwrap_8uschulungbefreitnachweis').hide();
85    $('#powermail_field_8uschulungbefreitnachweis').prop( 'disabled', true ).prop('required',false);
86
87
88
89    if(auswahl == 'befreit') {
90
91        $('.powermail_fieldwrap_8uschulungabsolviertteilnahmebestaetigung').show();
92        $('#powermail_field_8uschulungabsolviertteilnahmebestaetigung').prop('disabled', false);
93
94        $('.powermail_fieldwrap_8uschulungbefreitnachweis').hide();
95        $('#powermail_field_8uschulungbefreitnachweis').prop('disabled', true).prop('required',false);
96
97    }
98    if(auswahl == 'absolviert') {
99
100        $('.powermail_fieldwrap_8uschulungbefreitnachweis').show();
101        $('#powermail_field_8uschulungbefreitnachweis').prop( "disabled", false ).prop('required',true);
102
103        $('.powermail_fieldwrap_8uschulungabsolviertteilnahmebestaetigung').hide();
104        $('#powermail_field_8uschulungabsolviertteilnahmebestaetigung').prop( "disabled", true ).prop('required',false);
105    }
106
107});
108
109
110
111
112$('.powermail_fieldwrap_wennjabittefuegensiederanmeldungihrennachweisalspdfbei').hide();
113$('#powermail_field_wennjabittefuegensiederanmeldungihrennachweisalspdfbei').prop('disabled', true).prop('required',false);
114
115$('.powermail_fieldwrap_fachkraft_01 input[type=radio]').on('change', function() {
116    switch($(this).val()){
117        case 'Ja' :
118            $('.powermail_fieldwrap_wennjabittefuegensiederanmeldungihrennachweisalspdfbei').show();
119            $('#powermail_field_wennjabittefuegensiederanmeldungihrennachweisalspdfbei').prop('disabled', false).prop('required',true);
120            break;
121        case 'Nein' :
122            $('#powermail_field_wennjabittefuegensiederanmeldungihrennachweisalspdfbei').prop('disabled', true).prop('required',false);
123            $('.powermail_fieldwrap_wennjabittefuegensiederanmeldungihrennachweisalspdfbei').hide();
124            var fachkraft_nein = 1;
125            break;
126    }
127});
128
129
130
131$('.powermail_fieldwrap_wennjaanachweis40uealspdf').hide();
132$('#powermail_field_wennjaanachweis40uealspdf').prop('disabled', true).prop('required',false);
133
134$('.powermail_fieldwrap_40ue45asgb11 input[type=radio]').on('change', function() {
135    switch($(this).val()){
136        case 'Ja' :
137            $('.powermail_fieldwrap_wennjaanachweis40uealspdf').show();
138            $('#powermail_field_wennjaanachweis40uealspdf').prop('disabled', false).prop('required',true);
139            break;
140        case 'Nein' :
141            $('#powermail_field_wennjaanachweis40uealspdf').prop('disabled', true).prop('required',false);
142            $('.powermail_fieldwrap_wennjaanachweis40uealspdf').hide();
143            var schulung45a_nein = 1;
144            break;
145    }
146
147    var fachkraft_nein = $(".powermail_fieldwrap_fachkraft_01 input[type='radio']:checked").val();
148
149    if(fachkraft_nein == 'Nein11' && schulung45a_nein == 111) {
150        $('.powermail_fieldwrap_8uschulungbefreitnachweis').show();
151        $('#powermail_field_8uschulungbefreitnachweis').prop( "disabled", false ).prop('required',true);
152
153        $('.powermail_fieldwrap_8uschulungabsolviertteilnahmebestaetigung').hide();
154        $('#powermail_field_8uschulungabsolviertteilnahmebestaetigung').prop( "disabled", true ).prop('required',false);
155
156        console.log('fachkraft_nein: ' + fachkraft_nein + ' | schulung45a_nein: ' + schulung45a_nein);
157    }
158
159
160
161});
162
163
164
165
166/**/
167
168$(window).bind("load", function () {
169    // Remove splash screen after load
170    $('.splash').css('display', 'none')
171});
172
173
174$(window).on('resize', function(){
175    var win = $(this); //this = window
176    if (win.height() >= 820) { /* ... */ }
177    if (win.width() >= 1280) { /* ... */ }
178
179    var widthtitle = ($('.pageheader-title').width()) / 2;
180    $('.pageheader-title').css('margin-left','-' + widthtitle + 'px');
181
182});
183
184function enableBackToTop () {
185    var backToTop = $('<a>', { id: 'back-to-top', href: '#top' });
186    var icon = $('<i>', { class: 'fa fa-angle-up fa-2x' });
187
188    backToTop.appendTo ('body');
189    icon.appendTo (backToTop);
190
191    backToTop.hide();
192
193    $(window).scroll(function () {
194        if ($(this).scrollTop() > 150) {
195            backToTop.fadeIn ();
196        } else {
197            backToTop.fadeOut ();
198        }
199    });
200
201    backToTop.click (function (e) {
202        e.preventDefault ();
203
204        $('body, html').animate({
205            scrollTop: 0
206        }, 600);
207    });
208}
209
210
211window.goBack = function (e){
212    var defaultLocation = "http://www.mysite.com";
213    var oldHash = window.location.hash;
214
215    history.back(); // Try to go back
216
217    var newHash = window.location.hash;
218
219    /* If the previous page hasn't been loaded in a given time (in this case
220    * 1000ms) the user is redirected to the default location given above.
221    * This enables you to redirect the user to another page.
222    *
223    * However, you should check whether there was a referrer to the current
224    * site. This is a good indicator for a previous entry in the history
225    * session.
226    *
227    * Also you should check whether the old location differs only in the hash,
228    * e.g. /index.html#top --> /index.html# shouldn't redirect to the default
229    * location.
230    */
231
232    if(
233        newHash === oldHash &&
234        (typeof(document.referrer) !== "string" || document.referrer  === "")
235    ){
236        window.setTimeout(function(){
237            // redirect to default location
238            window.location.href = defaultLocation;
239        },1000); // set timeout in ms
240    }
241    if(e){
242        if(e.preventDefault)
243            e.preventDefault();
244        if(e.preventPropagation)
245            e.preventPropagation();
246    }
247    return false; // stop event propagation and browser default event
248}

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.