PageSourceSearch

https://www.eurob.org/wp-content/themes/cityguide-eurob/dips-folder/dips_js.js?ver=1.0.0

js eurob.org collected 2026-10-02 07:42:16 UTC 2,582 bytes, 96 lines download raw bytes

1// dips individual javascripts
2// called inside functions.php with wp_enqueue_script
3
4
5
6// ------------------------- jquery functions -----------------------------------
7
8
9
10
11jQuery(document).ready(function () {
12
13	// prevent links in partner lists to open links (on city pages bottom)
14	if (jQuery('.dips-partner-list a').length){
15		jQuery('.dips-partner-list a').click(function(e) {
16	    	e.preventDefault();
17		});
18	}
19	
20	/* hide headlines in page sidebars if content below is empty */
21	//Reisetipps = #text-22
22	if (jQuery('#text-22').length){
23		if( jQuery('#text-22 .dips-sidebar-meta-fields').is(':empty') ) {
24			jQuery('#text-22').hide();
25		}
26	}
27	//Kontakt = #text-15
28	if (jQuery('#text-15').length){
29		if( jQuery('#text-15 .dips-sidebar-meta-fields').is(':empty') ) {
30			jQuery('#text-15').hide();
31		}
32	}
33	//Wissenswertes = #text-16
34	if (jQuery('#text-16').length){
35		if( jQuery('#text-16 .dips-sidebar-meta-fields').is(':empty') ) {
36			jQuery('#text-16').hide();
37		}
38	}
39	
40	/* change form query string */
41	if (jQuery('.search-form').length){
42	    jQuery(".search-form").submit(function(event) {
43	    	if (jQuery('#searchinput-text').val()!=''){
44			    event.preventDefault();
45			    var querystring = jQuery('#searchinput-text').val();
46			    querystring = '/?s=' + encodeURIComponent(querystring);
47			    window.location.href = querystring;
48		    }
49	    });
50   }
51   
52   
53	/* add hide/show to mobile submenus */
54	var winWidth = jQuery(window).width();
55	if(winWidth < 630){
56		if (jQuery('.menu-toggle').length){
57			//insert navi elements to toggle submenus
58			jQuery('<a href="#" class="dips-toggle-link"><span style="float:right" class="dips-toggler">&nbsp;&darr;&nbsp;</span></a>').insertAfter('.nav-menu-main > ul > li > ul > li.menu-item-has-children > a');
59			
60			//add event handler to toggle submenus
61				jQuery('.dips-toggler').click(function(){
62        		jQuery(this).parent().next().toggle();
63        		return false;
64    		});
65		}
66	}
67
68
69	/* change page title of glossary archive page */
70	if (jQuery('.post-type-archive-glossary .entry-title-wrap h1').length){
71		jQuery('.post-type-archive-glossary .entry-title-wrap h1').html('Glossar');
72	}
73
74	/* click on draggable-toggle-button to make map draggeble by default */
75	if (jQuery('.elm-header-map').length){
76		var checkClick = window.setInterval(function(){
77			jQuery('.draggable-toggle-button').click();
78			if ( jQuery('.draggable-toggle-button i').hasClass("fa-unlock") ){
79				clearInterval(checkClick);
80			}
81		}, 2000);
82	}
83	
84
85	
86
87
88});
89
90
91
92
93//------------------------- jquery functions -----------------------------------
94
95
96

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.