PageSourceSearch

https://polling.de/wp-content/themes/gemeindepolling/assets/js/functions.js?ver=1.1

js polling.de collected 2026-10-02 17:27:17 UTC 4,505 bytes, 166 lines download raw bytes

1// ANFANG Affix (Mitscrollen der Navigation und Farbänderung)
2
3var toggleAffix = function(affixElement, scrollElement, wrapper) {
4
5    var height = affixElement.outerHeight(),
6        top = wrapper.offset().top;
7
8    if (scrollElement.scrollTop() >= top){
9        wrapper.height(height);
10        affixElement.addClass("affix");
11    }
12    else {
13        affixElement.removeClass("affix");
14        wrapper.height('auto');
15    }
16
17};
18
19
20jQuery('[data-toggle="affix"]').each(function() {
21    var ele = jQuery(this),
22        wrapper = jQuery('<div></div>');
23
24    ele.before(wrapper);
25    jQuery(window).on('scroll resize', function() {
26        toggleAffix(ele, jQuery(this), wrapper);
27    });
28
29    // init
30    toggleAffix(ele, jQuery(window), wrapper);
31});
32
33// ENDE Affix (Mitscrollen der Navigation und Farbänderung)
34
35// - - - - - - - - - - - - - - - - - - - - - - - - - - - -
36
37// ANFANG Dropdownmenü
38
39jQuery('.dropdown-menu > .dropdown > a').addClass('dropdown-toggle');
40
41jQuery('.dropdown-menu a.dropdown-toggle').on('click', function(e) {
42    if (!jQuery(this).next().hasClass('show')) {
43        jQuery(this).parents('.dropdown-menu').first().find('.show').removeClass("show");
44    }
45    var jQuerysubMenu = jQuery(this).next(".dropdown-menu");
46    jQuerysubMenu.toggleClass('show');
47    jQuery(this).parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown', function(e) {
48        jQuery('.dropdown-menu > .dropdown .show').removeClass("show");
49    });
50    return false;
51});
52
53// ENDE Dropdownmenü
54
55// - - - - - - - - - - - - - - - - - - - - - - - - - - - -
56
57
58jQuery(".headerimageslider").slick({
59    autoplay: true,
60    autoplaySpeed: 5000,
61    speed: 4000,
62    slidesToShow: 1,
63    slidesToScroll: 1,
64    fade: true,     /* ineinander überblenden */
65    cssEase: 'linear' /* ineinander überblenden */
66});
67
68
69jQuery('.startseite-weitere-beitraege').slick({
70    dots: true,
71    slidesToShow: 3,
72    slidesToScroll: 1,
73    infinite: false,
74    responsive: [
75        {
76            breakpoint: 992,
77            settings: {
78                slidesToShow: 2,
79                slidesToScroll: 1,
80                dots: true
81            }
82        },
83        {
84            breakpoint: 600,
85            settings: {
86                slidesToShow: 1,
87                slidesToScroll: 1
88            }
89        }
90        // You can unslick at a given breakpoint now by adding:
91        // settings: "unslick"
92        // instead of a settings object
93    ]
94});
95
96jQuery('.startseite-aktuelle-termine').slick({
97    dots: true,
98    slidesToShow: 3,
99    slidesToScroll: 1,
100    infinite: false,
101    responsive: [
102        {
103            breakpoint: 992,
104            settings: {
105                slidesToShow: 2,
106                slidesToScroll: 1,
107                infinite: true,
108                dots: true
109            }
110        },
111        {
112            breakpoint: 600,
113            settings: {
114                slidesToShow: 1,
115                slidesToScroll: 1
116            }
117        }
118        // You can unslick at a given breakpoint now by adding:
119        // settings: "unslick"
120        // instead of a settings object
121    ]
122});
123
124jQuery('.topslider').slick({
125    dots: true,
126    slidesToShow: 1,
127    slidesToScroll: 1,
128    infinite: false
129});
130
131// - - - - - - - - - - - - - - - - - - - - - - - - - - - -
132jQuery(document).ready(function(){
133    jQuery(".search").click(function(){
134        jQuery(".headersearchform").slideToggle("slow");
135    });
136});
137jQuery(document).ready(function(){
138    jQuery(".info").click(function(){
139        jQuery(".infobox").slideToggle("slow");
140    });
141    jQuery(".close-info").click(function(){
142        jQuery(".infobox").slideToggle("slow");
143    });
144});
145// if (jQuery( document ).width() > '992') {
146//     jQuery('.search').click(function() {
147//         if (jQuery(".headersearchform").css('right') == '-548px') {
148//             jQuery(".headersearchform").animate({right: "52px"});
149//         }else{
150//             jQuery(".headersearchform").animate({right: "-548px"});
151//         }
152//     });
153// }else{
154//     jQuery('.search').click(function() {
155//         if (jQuery(".headersearchform").css('right') == '-542px') {
156//             jQuery(".headersearchform").animate({right: "38px"});
157//         }else{
158//             jQuery(".headersearchform").animate({right: "-542px"});
159//         }
160//     });
161// }
162//  Sroll to Top - - - - - - - - - - - - - - - - - - - - - - - - - -
163jQuery("a[href='#top']").click(function() {
164    jQuery("html, body").animate({ scrollTop: 0 }, "slow");
165    return false;
166});

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.