PageSourceSearch

https://www.tanzschule-santner.at/wp-content/uploads/custom-css-js/2159.js?v=7028

js tanzschule-santner.at collected 2026-10-02 22:26:52 UTC 6,170 bytes, 187 lines download raw bytes

1/******* Do not edit this file *******
2Simple Custom CSS and JS - by Silkypress.com
3Saved: Jan 17 2024 | 14:19:08 */
4 
5//jQuery(document).ready(function(){
6//	jQuery('<source src="//www.tanzschule-santner.at/wp-content/uploads/2020/04/Imagespot_Santner_INSTAGRAM.webm" type="video/webm">').prependTo(".html5vid.rs_html5vidbasicstyles > video");
7//});
8
9jQuery(document).ready(function( $ ){
10    //jQuery("video").each(function(){ jQuery(this).append('controlsList="nodownload"')}); 
11	jQuery(".app-titel").each(function(){ jQuery(this).html(jQuery(this).html().replace(" | ", "<br>"))});
12	jQuery(".elementor-search-form__toggle i").addClass("iconcustom-santner icon-custom-santnerlupe_webrot_pureicon");
13  jQuery('.datum-desktop:contains("Ganztägig")').each(function(){jQuery(this).html(jQuery(this).html().replace("Uhr",""))});
14  jQuery('.datum-mobil:contains("Ganztägig")').each(function(){jQuery(this).html(jQuery(this).html().replace("Uhr",""))});
15   
16});
17
18
19
20
21
22
23// Suche mobil Startseite
24
25
26// Suche mobil gesamte HP
27
28
29//Ton ein und aus
30jQuery(document).ready(function(){ 
31    jQuery(".custom-volume-button").click(function(){
32       jQuery("video")[0].muted = !jQuery("video")[0].muted;
33       jQuery(".custom-volume-button").toggleClass("muted", jQuery("video")[0].muted);
34    });
35});
36
37// Partner gleiche Container Höhe
38jQuery(document).ready (function set_partner_height(){
39		var height = 0;
40		jQuery(".partner-container .premium-icon-box-container-in").each(function(){
41			if (jQuery(this).height() > height){
42				height = jQuery(this).height()+20;
43			}
44		});
45		jQuery('.partner-container .premium-icon-box-container-in').each(function(){
46			jQuery(this).animate({'height':height+"px"},1500);
47		});
48	});
49//jQuery(window).load(set_partner_height);
50
51
52function checkQueryStringForLocation(){
53	try {
54		var urlParams = new URLSearchParams(window.location.search);
55		if (urlParams.has('standort')){
56			var standort = urlParams.get("standort");
57			if (Cookies.get("standort") != standort){
58				Cookies.set("standort", standort);
59				window.location.href = window.location.href.split("?")[0] + "/?nocache="+Date.now();
60			}
61		}
62	} catch (e){ console.error(e); }
63}
64jQuery(document).ready(checkQueryStringForLocation);
65
66// Java StandortAuswahl CookieSetzung
67jQuery(document).ready(function(){
68	
69
70	
71	jQuery(document).find(".welsbutton").click(function(){
72  		Cookies.set('standort', 'wels');
73		//window.location.reload(true);
74		if (window.location.href.includes("standort-auswahl")){
75			if (window.document.referrer){
76				window.location.href = window.document.referrer.split("?")[0]+"/?nocache="+Date.now();
77			} else {
78				window.location.href = "/?nocache="+Date.now();
79			}
80		} else {
81			window.location.href = window.location.href.split("?")[0]+"/?nocache="+Date.now();
82		}
83	});
84	jQuery(document).find(".atterseebutton").click(function(){
85  		Cookies.set('standort', 'attersee');
86		//window.location.reload(true);
87		//window.location.href =  window.location.href.split("?")[0]
88		if (window.location.href.includes("standort-auswahl")){
89			if (window.document.referrer){
90				window.location.href = window.document.referrer.split("?")[0]+"/?nocache="+Date.now();
91			} else {
92				window.location.href = "/?nocache="+Date.now();
93			}
94		} else {
95			window.location.href = window.location.href.split("?")[0]+"/?nocache="+Date.now();
96		}
97	});
98});
99
100jQuery(document).ready(function(){
101	jQuery(document).find(".pixelbones").removeClass("pixelbones");
102});
103
104var switch_initiated = false;
105
106function switch_to_desktop_kursuebersicht(){
107    jQuery(".top-level-kurs-container").hide();
108    jQuery(".load-other-kursuebersicht").show();
109	if (!switch_initiated){
110		switch_initiated = true;
111		window.scrollTo({top: 0, left: 0, behavior: "instant"});
112    	self.location.href='/kurse/';
113	}
114}
115
116function switch_to_mobile_kursuebersicht(){
117    jQuery(".top-level-kurs-container").hide();
118    jQuery(".load-other-kursuebersicht").show();
119	if (!switch_initiated){
120		switch_initiated = true;
121		window.scrollTo({top: 0, left: 0, behavior: "instant"});
122    	self.location.href='/kurse-mobil/';
123	}	
124}
125
126
127function check_kursuebersicht(){
128	if (self.location.href.includes("/kurse-mobil/") && !window.matchMedia("(max-width: 767px)").matches){
129		switch_to_desktop_kursuebersicht();
130	}
131
132	if (self.location.href.includes("/kurse/") && window.matchMedia("(max-width: 767px)").matches){
133		switch_to_mobile_kursuebersicht();
134	}
135}
136
137if (!self.location.href.includes('elementor') && (self.location.href.endsWith("/kurse-mobil/") || self.location.href.endsWith("/kurse/"))){
138	check_kursuebersicht();
139	window.onresize = check_kursuebersicht;
140}
141
142jQuery(document).ready(function(){ 
143	if (window.matchMedia("(max-width: 767px)").matches && !self.location.href.includes('elementor')){
144		jQuery("a[href$='/kurse/']").attr('href','/kurse-mobil/');		
145	}
146});
147
148
149
150jQuery(window).load(function(){
151    const $ = jQuery;
152    if (window.location.href.includes("kurs")){
153		setTimeout(function(){
154			console.log("start video resizer");
155			$(".elementor-widget-container .elementor-video").each(function(){
156				const el = $(this);
157				const iframe = el.children("iframe").first();
158				const iframe_src = iframe.attr("src");
159				if (iframe_src && !iframe_src.includes("loop")){
160					iframe.attr("src", iframe.attr("src")+"&loop=1");
161				}
162				if (iframe_src && !iframe_src.includes("autoplay")){
163					iframe.attr("src", iframe.attr("src")+"&autoplay=1");
164				}
165				if (iframe_src && !iframe_src.includes("mute")){
166					iframe.attr("src", iframe.attr("src")+"&mute=1");
167				}
168				
169				try{
170
171                    const iframe_width = el.width();
172                    const iframe_height = Math.round(iframe_width*0.57);
173				
174					// console.log("--- video ---");
175                    // console.log("iframe_width", iframe_width);
176                    // console.log("iframe_height", iframe_height);
177                    
178					el.animate({"height": iframe_height});
179				}catch(e){
180					console.log("video resizer:", e);
181				}
182			});
183		}, 500);
184    }
185});
186
187

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.