PageSourceSearch

https://www.jugenheim-rheinhessen.de/typo3temp/assets/compressed/m…661c6e75ff2575c2f0596f2ee1.js.gz?1766162676

js jugenheim-rheinhessen.de collected 2026-10-02 18:31:59 UTC 11,416 bytes, 347 lines download raw bytes

1
2$( document ).ready(function() {
3    // Handle click events of different duration types
4
5    /**
6     * Woechentlich
7     */
8    $(document).on('click', '.type2-check', function(e) {
9        var current = $("#eventSpecification").val();
10
11        // Is checked?
12        if ($(this).is(':checked')) {
13            // Is this the first item?
14            if(current.length == 0) {
15                $("#eventSpecification").val($(this).val());
16            } else {
17                $("#eventSpecification").val(current + "," + $(this).val());
18            }
19        } else { // Is unchecked?
20            // Remove unchecked item
21            var y = $("#eventSpecification").val().split(',');
22            var removeItem = $(this).val();
23
24            y = jQuery.grep(y, function(value) {
25                return value != removeItem;
26            });
27
28            $("#eventSpecification").val(y.join(','));
29        }
30    });
31
32    /**
33     * 14 Taegig
34     */
35    $(document).on('click', '.type3-radio', function(e) {
36        $("#eventSpecification").val($(this).val());
37    });
38
39    /**
40     * Monatlich 1
41     */
42    $(document).on('keyup', '.type4-0', function(e) {
43        if ($(this).val().length == 0) {
44            return;
45        }
46
47        $("#eventSpecification").val("");
48
49        if ($(".type4-1").val().length == 0) {
50            $("#eventSpecification").val($(this).val());
51        } else {
52            $("#eventSpecification").val($(this).val() + ',' + $(".type4-1").val());
53        }
54    });
55
56    $(document).on('keyup', '.type4-1', function(e) {
57        if ($(this).val().length == 0) {
58            return;
59        }
60
61        $("#eventSpecification").val("");
62
63        if ($(".type4-0").val().length == 0) {
64            $("#eventSpecification").val($(this).val());
65        } else {
66            $("#eventSpecification").val($(".type4-0").val() + ',' + $(this).val());
67        }
68    });
69
70    /**
71     * Monatlich 2
72     */
73    $(document).on('click', '.type5-0', function(e) {
74
75        if ($(this).val().length == 0) {
76            return;
77        }
78
79        if ($("#eventSpecification").val().length > 1) {
80            var newArray = $("#eventSpecification").val().split(',');
81            newArray[0] = $(this).val();
82            $("#eventSpecification").val(newArray.join(','));
83        } else {
84            $("#eventSpecification").val($(this).val());
85        }
86    });
87
88    $(document).on('click', '.type5-1', function(e) {
89        if ($(this).val().length == 0) {
90            return;
91        }
92
93        if ($("#eventSpecification").val().length == 0) {
94            $(".type5-1").val($(".type5-1 option:first").val());
95            alert("Bitte wählen Sie zuerst den Tag aus");
96            return;
97        }
98
99        var newArray = $("#eventSpecification").val().split(',');
100        newArray[1] = $(this).val();
101        $("#eventSpecification").val(newArray.join(','));
102    });
103
104
105    /**
106     * Jaehrlich
107     */
108    $(document).on('click', '.type6-0', function(e) {
109        // Is checked?
110        if ($(this).is(':checked')) {
111            $(".otherDate").css("display", "none");
112            $("#eventSpecification").val("1");
113        } else { // Is unchecked?
114            $(".otherDate").css("display", "block");
115            $("#eventSpecification").val("");
116        }
117    });
118
119    $(document).on('click', '.type6-1', function(e) {
120
121        if ($(this).val().length == 0) {
122            return;
123        }
124
125        if ($("#eventSpecification").val().length > 1) {
126            var newArray = $("#eventSpecification").val().split(',');
127            newArray[0] = $(this).val();
128            $("#eventSpecification").val("");
129            $("#eventSpecification").val(newArray.join(','));
130        } else {
131            $("#eventSpecification").val($(this).val());
132        }
133    });
134
135    $(document).on('click', '.type6-2', function(e) {
136        if ($(this).val().length == 0) {
137            return;
138        }
139
140        if ($("#eventSpecification").val().length == 0) {
141            $(".type6-2").val($(".type6-2 option:first").val());
142            alert("Bitte wählen Sie zuerst den Tag aus");
143            return;
144        }
145
146        var newArray = $("#eventSpecification").val().split(',');
147        newArray[1] = $(this).val();
148        $("#eventSpecification").val("");
149        $("#eventSpecification").val(newArray.join(','));
150    });
151
152    $(document).on('click', '.type6-3', function(e) {
153        if ($(this).val().length == 0) {
154            return;
155        }
156
157        if ($("#eventSpecification").val().length == 0) {
158            $(".type6-3").val($(".type6-3 option:first").val());
159            alert("Bitte wählen Sie zuerst den Tag aus");
160            return;
161        }
162
163        var newArray = $("#eventSpecification").val().split(',');
164
165        if (newArray.length != 2) {
166            $(".type6-3").val($(".type6-3 option:first").val());
167            alert("Bitte wählen Sie zuerst den Tag aus");
168            return;
169        }
170
171        newArray[2] = $(this).val();
172        $("#eventSpecification").val("");
173        $("#eventSpecification").val(newArray.join(','));
174    });
175
176
177    // Disable dropdown location on load
178    if ($(".oaevents-location-new-input").val() == 1) {
179        disableDropdownLocation();
180    }
181
182    // Disable dropdown location on click
183    $(document).on('click', '.oaevents-add-new-location', function(e) {
184        e.preventDefault();
185        disableDropdownLocation();
186    });
187
188    // On document load
189    if ($(".oaevents-location-new-input").val() == 0 ) {
190        var selected = $('.oaevents-localtions-dropdown option:selected').text();
191        $(".oaevents-locations-input input").val(selected);
192        $(".oaevents-locations-email input").val('rathaus@'+document.domain);
193    }
194
195    // Set value into location after selecting with dropdown
196    $(document).on('change', '.oaevents-localtions-dropdown', function(e) {
197        e.preventDefault();
198        var selected = $('.oaevents-localtions-dropdown option:selected').text();
199        $(".oaevents-locations-input input").val(selected);
200    });
201
202    $('.datepicker').datepicker({
203        dateFormat: "dd.mm.yy"
204    });
205
206});
207
208
209function disableDropdownLocation()
210{
211    $(".oaevents-locations-city").css("display", "flex");
212    $(".oaevents-locations-zip").css("display", "flex");
213    $(".oaevents-locations-street").css("display", "flex");
214    $(".oaevents-locations-input").css("display", "flex");
215    $(".oaevents-locations-email").css("display", "flex");
216    $(".oaevents-locations-www").css("display", "flex");
217
218    $(".oaevents-localtions-dropdown").css("display", "none");
219    $(".oaevents-localtions-dropdown").addClass("hidden-by-user");
220    $(".oaevents-locations-new").css("display", "none");
221    $(".oaevents-location-new-input").val(1);
222    $(".oaevents-locations-input input").val("");
223    $(".oaevents-locations-email input").val("");
224}
225
226function enableDropdownLocation()
227{
228    $(".oaevents-locations-city").css("display", "none");
229    $(".oaevents-locations-zip").css("display", "none");
230    $(".oaevents-locations-street").css("display", "none");
231    $(".oaevents-locations-input").css("display", "none");
232    $(".oaevents-locations-email").css("display", "table-row");
233    $(".oaevents-locations-www").css("display", "table-row");
234
235    $(".oaevents-localtions-dropdown").css("display", "table-row");
236    $(".oaevents-locations-new").css("display", "table-row");
237    $(".oaevents-location-new-input").val(0);
238
239}
240
241$('.newEventForm').on('submit', function () {
242
243    let proceed = false;
244
245    if (!$('#category').val()) {
246        $('#err-msg-category').removeClass('hidden').addClass('visible');;
247        proceed = false;
248    } else {
249        $('#err-msg-category').addClass('hidden').removeClass('visible');
250        proceed = true;
251    }
252
253    if (!$('#event-create-date').val()) {
254        $('#err-msg-date').removeClass('hidden').addClass('visible');;
255        proceed = false;
256    } else {
257        $('#err-msg-date').addClass('hidden').removeClass('visible');
258        proceed = true;
259    }
260
261    if (!$('#event-create-name').val()) {
262        $('#err-msg-name').removeClass('hidden').addClass('visible');;
263        proceed = false;
264    } else {
265        $('#err-msg-name').addClass('hidden').removeClass('visible');
266        proceed = true;
267    }
268
269    if (!$('.oaevents-localtions-dropdown').hasClass('hidden-by-user')) {
270        if (!$('#event-create-location').val()) {
271            $('#err-msg-location').removeClass('hidden').addClass('visible');;
272            proceed = false;
273        } else {
274            $('#err-msg-location').addClass('hidden').removeClass('visible');
275            proceed = true;
276        }
277    }
278
279    if (!$('#event-create-organizer').val()) {
280        $('#err-msg-organizer').removeClass('hidden').addClass('visible');
281        proceed = false;
282    } else {
283        $('#err-msg-organizer').addClass('hidden').removeClass('visible');
284        proceed = true;
285    }
286
287    if (!proceed) {
288        // jump
289        $("html, body").animate({ scrollTop: $('.err-msg.visible').offset().top - 50 });
290    }
291
292    if (proceed) {
293        $('.newEventForm').submit();
294    } else {
295        return false;
296
297    }
298});
299
300var _paq = window._paq = window._paq || [];
301/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
302_paq.push(['trackPageView']);
303_paq.push(['enableLinkTracking']);
304(function() {
305    var u="https://piwik.reinstil.de/";
306    _paq.push(['setTrackerUrl', u+'matomo.php']);
307    _paq.push(['setSiteId', '28']);
308    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
309    g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
310})();
311
312/**
313 * JavaScript default file [TASK-javascript-4]
314 */
315window.addEventListener('DOMContentLoaded', function () {
316
317    /*$('#navbar-nav-main .dropdown-nav[data-level=3]').closest('li').hover(
318        function() {
319            $(this).find("ul").addClass('d-block');
320        },
321        function() {
322            $('#navbar-nav-main .dropdown-nav[data-level=2] .has-children todo').removeClass('d-block');
323        }
324    );*/
325
326    // Forms: Show/hide password in clear text [FEATURE-form-2]
327    const passwordToggle = document.querySelector('#show-hide-password a');
328    if (passwordToggle) {
329        passwordToggle.addEventListener('click', (event) => {
330            event.preventDefault();
331
332            const passwordInput = document.querySelector('#show-hide-password input');
333            const passwordEyeOpen = document.querySelector('#show-hide-password .show-hide-password-eye-open');
334            const passwordEyeClose = document.querySelector('#show-hide-password .show-hide-password-eye-close');
335            if(passwordInput.type === 'text') {
336                passwordInput.type = 'password';
337                passwordEyeClose.style.display = 'block';
338                passwordEyeOpen.style.display = 'none';
339            } else if(passwordInput.type === 'password'){
340                passwordInput.type = 'text';
341                passwordEyeOpen.style.display = 'block';
342                passwordEyeClose.style.display = 'none';
343            }
344        });
345    }
346
347});

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.