PageSourceSearch

https://geja-event.de/wp-content/themes/geja-event/js/theme.js?ver=20151215

js geja-event.de collected 2026-10-06 16:19:07 UTC 8,171 bytes, 256 lines download raw bytes

1jQuery(document).ready(function ($) {
2
3    // Scrollspy
4    $('body').scrollspy({
5        target: '#bootscore-navbar-collapse',
6        offset: 58
7    });
8
9
10    // Smooth Scroll
11    $(function () {
12        $('a[href*="#"]:not([href="#"]):not([href="#tab-reviews"]):not([href="#tab-additional_information"]):not([href="#tab-description"]):not([href="#reviews"]):not([href="#carouselExampleIndicators"]):not([data-smoothscroll="false"])').click(function () {
13            if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
14                var target = $(this.hash);
15                target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
16                if (target.length) {
17                    $('html, body').animate({
18                        // Change your offset according to your navbar height
19                        scrollTop: target.offset().top - 55
20                    }, 1000);
21                    return !1
22                }
23            }
24        })
25    });
26
27
28    // Scroll to ID from external url
29    if (window.location.hash) scroll(0, 0);
30    setTimeout(function () {
31        scroll(0, 0)
32    }, 1);
33    $(function () {
34        $('.scroll').on('click', function (e) {
35            e.preventDefault();
36            $('html, body').animate({
37                // Change your offset according to your navbar height
38                scrollTop: $($(this).attr('href')).offset().top - 55
39            }, 1000, 'swing')
40        });
41        if (window.location.hash) {
42            $('html, body').animate({
43                // Change your offset according to your navbar height
44                scrollTop: $(window.location.hash).offset().top - 55
45            }, 1000, 'swing')
46        }
47    });
48
49
50    // Scroll to top Button
51    $(window).scroll(function () {
52        var scroll = $(window).scrollTop();
53
54        if (scroll >= 500) {
55            $(".top-button").addClass("visible");
56        } else {
57            $(".top-button").removeClass("visible");
58        }
59    });
60
61
62
63
64    // Default Header
65
66    // Close nav collapse on click nav-link, keep sub-menu item open
67    $('.navbar-nav>li>a:not(.dropdown-toggle), a.dropdown-item').on('click', function () {
68        $('.navbar-collapse').collapse('hide'),
69            $('.opac').removeClass('visible')
70    });
71
72    // Close nav collapse on click sub-menu nav-link
73    $('.navbar-nav>li>a:not(.dropdown-toggle), a.dropdown-item').on('click', function () {
74        $('ul.dropdown-menu').removeClass('show')
75    });
76
77    // Close nav collapse on click / touch outside
78    $('.site-content, .opac').on('click touchstart', function () {
79        $(".navbar-collapse.show").collapse('hide')
80    });
81
82    // Close toggler on click nav-link
83    $('.navbar-nav>li>a:not(.dropdown-toggle), a.dropdown-item').on('click', function () {
84        $('.toggler-icon-animated.open').removeClass('open')
85    });
86
87    // Close toggler on click / touch outside
88    $('.site-content, .opac, .menu-header').on('click touchstart', function () {
89        $('.toggler-icon-animated.open').removeClass('open')
90    });
91
92    // CSS Toggler
93    $('.navbar-toggler').on('click', function () {
94        $('.toggler-icon-animated').toggleClass('open')
95        //$('.opac').toggleClass('visible')
96    });
97
98    // Close Search collapse on click / touch outside
99    $('.site-content').on('click touchstart', function () {
100        $(".top-nav-search-mobile .dropdown-menu.show").removeClass('show')
101    });
102
103    // Overlay
104    $('.opac').on('click touchstart', function () {
105        $('.opac').removeClass('visible')
106    });
107
108    $('.toggler-icon-animated').on('click', function () {
109        $('.opac').toggleClass('visible')
110    });
111
112
113
114    // Sub Menu Animation
115    $('.navbar-nav .dropdown-menu').addClass('invisible'); //FIRST TIME INVISIBLE
116
117    // ADD SLIDEDOWN ANIMATION TO DROPDOWN-MENU 
118    $('.dropdown').on('show.bs.dropdown', function (e) {
119        $('.dropdown-menu').removeClass('invisible');
120        $(this).find('.dropdown-menu').first().stop(true, true).slideDown(50);
121    });
122
123    // ADD SLIDEUP ANIMATION TO DROPDOWN-MENU 
124    $('.dropdown').on('hide.bs.dropdown', function (e) {
125        $(this).find('.dropdown-menu').first().stop(true, true).slide
125Up(50);
126    });
127
128
129    // Close Offcanvas, Dropdown menu and opac on resize
130    window.onresize = function () {
131        $('.opac').removeClass('visible');
132        $('.offcanvas-collapse-left, .cart-right, .offcanvas-collapse, .toggler-icon-animated').removeClass('open');
133        $('.navbar-nav .dropdown-menu, .navbar-collapse').removeClass('show');
134        $(".navbar-nav .dropdown-menu").removeAttr("style");
135    }
136
137
138
139    // Header transform - activate the stylesheet in style.css in line 17
140    /* 
141    $("#nav-main").addClass("on-top clear");
142    $(window).scroll(function () {
143    	var scroll = $(window).scrollTop();
144    	if (scroll > 0) {
145    		$("#nav-main").removeClass("on-top clear")
146    	} else {
147    		$("#nav-main").addClass("on-top clear")
148    	}
149    });
150    // Header transform toggle
151    $('.clear .navbar-toggler').on('click', function () {
152    	$('#nav-main.on-top').toggleClass('clear')
153    });
154    // Nav transform on click / touch outside
155    $('.content').on('click touchstart', function () {
156    	$("#nav-main.on-top").addClass('clear')
157    });
158   */
159
160
161
162    // Header up on scroll down, down on scroll up - activate the stylesheet in style.css in line 18
163    /*var lastScrollTop = 0;
164    $(window).scroll(function (event) {
165    	var st = $(this).scrollTop();
166    	if (st > lastScrollTop) {
167    		if (!$('body').hasClass('down')) {
168    			$('body').addClass('down')
169    		}
170    	} else {
171    		$('body').removeClass('down')
172    	}
173    	lastScrollTop = st;
174    	if ($(this).scrollTop() <= 0) {
175    		$('body').removeClass('down')
176    	}
177    });*/
178
179
180
181    // Header Offcanvas - activate the stylesheet in style.css in line 19, rename header.php in whateveryouwant.php and rename header-offcanvas.php into header.php
182    /*$(function () {
183        'use strict'
184
185        $('[data-toggle="offcanvas"]').on('click', function () {
186            $('.offcanvas-collapse').toggleClass('open')
187        })
188    })
189    // Close nav collapse on click sub-menu nav-link
190    $('.navbar-nav>li>a:not(.dropdown-toggle), a.dropdown-item').on('click', function () {
191        $('.offcanvas-collapse').removeClass('open')
192    });
193
194    // Close Offcanvas, opac on click / touch outside
195    $('.site-content, .opac').on('click touchstart', function () {
196        $('.offcanvas-collapse').removeClass('open')
197    });*/
198
199
200    // Preloader
201    $(window).on('load', function () {
202        $('#status').fadeOut();
203        $('#preloader').delay(350).fadeOut('slow');
204        $('body').delay(350).css({
205            'overflow': 'visible'
206        })
207    })
208    setTimeout(function () {
209        $('#status').fadeOut();
210        $('#preloader').delay(350).fadeOut('slow');
211        $('body').delay(350).css({
212            'overflow': 'visible'
213        })
214    }, 1500);
215
216
217    // Cookie consent
218    jQuery('.gdpr-button-accept').click(function () {
219        jQuery('#gdpr-box').fadeOut('slow');
220        if (!jQuery('.cookies-accept').is()) {
221            jQuery.cookie('cookiebar', 1, {
222                // Add the cookie. It will remain for 12 days, change your time here
223                expires: 12,
224                path: '/'
225            })
226        }
227        return !1
228    });
229    if (!jQuery.cookie('cookiebar') == 1) {
230        jQuery('.cookies-accept').css({
231            'display': 'block'
232        })
233    }
234
235
236    // div height, add class to your content
237    $(".height-50").css("height", 0.5 * $(window).height());
238    $(".height-75").css("height", 0.75 * $(window).height());
239    $(".height-85").css("height", 0.85 * $(window).height());
240    $(".height-100").css("height", 1.0 * $(window).height());
241
242
243    // Mobile Search Button hide if empty
244    if ($('.searchform').length != 0) {
245        $('.top-nav-search-mobile, .top-nav-search-large').addClass('visible');
246    }
247
248
249    // Forms
250    $('select, #billing_state').addClass('custom-select');
251    
252        // Alert links
253    $('.alert a').addClass('alert-link');
254
255
256}); // jQuery End

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.