PageSourceSearch

https://bergsteigerdorf-mauthen.at/scripts/functions.js

js bergsteigerdorf-mauthen.at collected 2026-10-02 11:26:53 UTC 14,439 bytes, 411 lines download raw bytes

1(function () {
2  const allowedDomains = [
3    "bergsteigerdorf-mauthen.at",
4    "www.bergsteigerdorf-mauthen.at",
5    "bstd.at",
6    "www.bstd.at",
7    "dein.oeav-obergailtal.at"
8  ];
9
10  const allowedS2ids = ["113", "123", "257", "356"];
11
12  const currentUrl = new URL(window.location.href);
13
14  // Prüfen, ob Domain passt
15  if (!allowedDomains.includes(currentUrl.hostname)) return;
16
17  const s2id = currentUrl.searchParams.get("s2id");
18
19  // Prüfen, ob s2id passt
20  if (!allowedS2ids.includes(s2id)) return;
21
22  // Neue Ziel-URL bauen
23  const targetUrl =
24    "https://www.suedalpen.net" +
25    currentUrl.pathname +
26    currentUrl.search +
27    currentUrl.hash;
28
29  window.location.replace(targetUrl);
30})();
31
32function clickCheck(){
33  if ( (window.location.href.indexOf("sid=6") > -1)   || 
34   (window.location.href.indexOf("s2id=20") > -1) || 
35   (window.location.href.indexOf("s2id=73")> -1)  ||
36   (window.location.href.indexOf("s2id=65")> -1)  ||
37   (window.location.href.indexOf("s2id=28")> -1)  ||
38   (window.location.href.indexOf("s2id=96")> -1)  ||
39   (window.location.href.indexOf("s2id=97")> -1)  || 
40   (window.location.href.indexOf("s2id=68")> -1)  ||
41   (window.location.href.indexOf("s2id=26")> -1)  ||
42   (window.location.href.indexOf("s2id=67")> -1 ) )
43   {jQuery('#mobilemenu > ul:nth-child(1) > li:nth-child(1) > ul:nth-child(2) > li:nth-child(1) > ul:nth-child(2)').css('display','block');}
44 
45  if (window.location.href.indexOf("s2id=113") > -1)
46   {jQuery('#mobilemenu > ul:nth-child(1) > li:nth-child(1) > ul:nth-child(2) > li:nth-child(2) > ul:nth-child(2)').css('display','block');}
47
48  if ( (window.location.href.indexOf("sid=46") > -1)  || 
49   (window.location.href.indexOf("s2id=76") > -1) || 
50   (window.location.href.indexOf("s2id=77")> -1)  ||
51   (window.location.href.indexOf("s2id=78")> -1)  ||
52   (window.location.href.indexOf("s2id=79")> -1)  ||
53   (window.location.href.indexOf("s2id=112")> -1) ) 
54   {jQuery('#mobilemenu > ul:nth-child(1) > li:nth-child(1) > ul:nth-child(2) > li:nth-child(3) > ul:nth-child(2)').css('display','block');}
55
56  if ( (window.location.href.indexOf("sid=49") > -1)  ||
57   (window.location.href.indexOf("s2id=90") > -1) || 
58   (window.location.href.indexOf("s2id=100")> -1) )
59   {jQuery('#mobilemenu > ul:nth-child(1) > li:nth-child(1) > ul:nth-child(2) > li:nth-child(4) > ul:nth-child(2)').css('display','block');} 
60
61  if ( (window.location.href.indexOf("sid=48") > -1)  || 
62   (window.location.href.indexOf("s2id=86") > -1) || 
63   (window.location.href.indexOf("s2id=87")> -1)  ||
64   (window.location.href.indexOf("s2id=88")> -1)  ||
65   (window.location.href.indexOf("s2id=89")> -1)  ||       
66   (window.location.href.indexOf("s2id=91")> -1)  ||       
67   (window.location.href.indexOf("s2id=92")> -1)  ||
68   (window.location.href.indexOf("s2id=93")> -1) ) 
69   {jQuery('#mobilemenu > ul:nth-child(1) > li:nth-child(1) > ul:nth-child(2) > li:nth-child(5) > ul:nth-child(2)').css('display','block');} 
70
71  if ( (window.location.href.indexOf("sid=50") > -1)  || 
72   (window.location.href.indexOf("s2id=111") > -1) || 
73   (window.location.href.indexOf("s2id=101")> -1)  ||
74   (window.location.href.indexOf("s2id=109")> -1)  ||
75   (window.location.href.indexOf("s2id=102")> -1)  ||       
76   (window.location.href.indexOf("s2id=103")> -1)  ||       
77   (window.location.href.indexOf("s2id=107")> -1)  ||
78   (window.location.href.indexOf("s2id=108")> -1) ) 
79   {jQuery('#mobilemenu > ul:nth-child(1) > li:nth-child(1) > ul:nth-child(2) > li:nth-child(6) > ul:nth-child(2)').css('display','block');}   
80
81  if ( (window.location.href.indexOf("sid=47") > -1)  || 
82   (window.location.href.indexOf("s2id=81") > -1) || 
83   (window.location.href.indexOf("s2id=82")> -1)  ||
84   (window.location.href.indexOf("s2id=83")> -1) ) 
85   {jQuery('#mobilemenu > ul:nth-child(1) > li:nth-child(1) > ul:nth-child(2) > li:nth-child(7) > ul:nth-child(2)').css('display','block');}   
86
87  if ( (window.location.href.indexOf("sid=17") > -1)  || 
88   (window.location.href.indexOf("s2id=17") > -1) || 
89   (window.location.href.indexOf("s2id=18")> -1)  ||
90   (window.location.href.indexOf("s2id=19")> -1)  ||
91   (window.location.href.indexOf("s2id=21")> -1) ) 
92   {jQuery('#mobilemenu > ul:nth-child(1) > li:nth-child(1) > ul:nth-child(2) > li:nth-child(8) > ul:nth-child(2)').css('display','block');}      
93  }
94
95
96
97function sliderhoehe(){
98 var sliderwidth = jQuery("#slidercontainer").width();
99 if (sliderwidth > 650) {
100 	var sliderheight = sliderwidth / 2.8571428571;
101 }
102 else {
103  var sliderheight = sliderwidth / 2.8571428571;
104 } 
105 jQuery("#slidercontainer, #sliderouter, #slidercontainer iframe").css("height",""+sliderheight+"px");
106};
107
108jQuery(document).ready(function(){
109 jQuery("#mobilemenu *").removeAttr( "class" ).removeAttr( "id" );
110 jQuery( "#mobilemenu span" ).each(function() {
111  var inhalt = jQuery(this).html();	
112  jQuery(this).html( ""+inhalt+"<div class='navspace'></div>");
113 });
114 jQuery("#mobilemenu ul li ul li ul li a").each(function() {
115  var inhalt = jQuery(this).html();	
116  jQuery(this).html( ""+inhalt+"<div class='navspace'></div>");
117 });
118
119 jQuery( "#mobilemenu ul li" ).each(function() {
120  if (jQuery(this).children("ul").length){
121   jQuery(this).children("span").children("div").removeAttr( "class" ).addClass("navspace navclick").attr("id","navmore");
122  }
123 });	
124	
125 jQuery(".navclick").click(function() {
126	 if(jQuery(this).attr("id")=="navmore"){
127   jQuery(">ul", jQuery(this).parent().parent()).slideDown("fast", function(){
128   jQuery(this).parent("li").children("span").children(".navclick").attr("id","navless");});
129  }
130  if(jQuery(this).attr("id")=="navless"){
131   jQuery(">ul", jQuery(this).parent().parent()).slideUp("fast", function(){
132   jQuery(this).parent("li").children("span").children(".navclick").attr("id","navmore");});
133  }
134 });
135 clickCheck()
136});
137
138function bloganpassung(){
139 var vorhanden_blog = jQuery(".blogitem").length;
140 if (vorhanden_blog == 0){}
141 else {
142  var siteurl = window.location.toString();
143  if (siteurl.indexOf("single") >= 0){
144  jQuery( ".blogitem" ).each(function() {
145   jQuery(this).find(".blogmore").css("display","none");
146  });
147 }
148 else {
149  jQuery( ".blogitem" ).each(function() {
150   jQuery(this).find(".fbShare").css("display","none");
151  });
152
153  jQuery( ".blogitem .blog_message" ).each(function() {
154   var detailurl = jQuery(this).parent("div").find(".blogmore").attr("href");
155   var vorhanden_bild = jQuery(this).find("img").length;
156    if (vorhanden_bild == 0){}
157    else {
158     var bildgroesse = jQuery(this).find("img:first-child").attr("height");
159     if (bildgroesse > 15){
160      var bildurl = jQuery(this).find("img:first-child").attr("src");
161      jQuery(this).before( "<div class='blog_message'><a href='"+detailurl+"' target='_self'><img src='"+bildurl+"' alt=' ' /></a></div>" );
162      //$('head').append('<meta property="og:image" content="'+bildurl+'" />');
163
164      //jQuery(this).css("float","left").css("width","70%");
165      //jQuery(this).find("img").remove();
166      jQuery(this).before( "<div class='blogthumb'><a href='"+detailurl+"' target='_self'><img src='"+bildurl+"' alt=''/></a></div>" );
167      //jQuery(this).css("float","left").css("width","30%");
168      jQuery(this).find("img").remove();
169
170     }
171    }
172    var inhalt = jQuery(this).text();
173    inhalt = inhalt.substr(0,280) + "...";
174    jQuery(this).html(inhalt);
175
176   }); 
177  }
178 }
179}
180
181
182jQuery(document).scroll(function() {
183 scrollinfoout();
184});
185
186function scrollinfoout() {
187 var scroller2 = jQuery(document).scrollTop();
188 if (scroller2 <= 0) {
189  jQuery( "#scrollinfo" ).stop().fadeIn( "fast" );
190  jQuery( "#scrollinfoback" ).stop().fadeOut( "fast" );
191 }
192 else{
193  jQuery( "#scrollinfo" ).fadeOut( "slow" );
194  jQuery( "#scrollinfoback" ).fadeIn( "slow" );
195 }
196}; 
197
198function firstscroll(){
199 var windowheight = jQuery(window).height();	
200 jQuery("html, body").animate({ scrollTop: windowheight }, 1000);
201};
202
203
204function teamhoehe() {
205 ww = jQuery(window).width();
206 if (( ww >= 400 ) && ( ww <= 10000 )) {
207  var highest_element = 0; 
208  jQuery('.team-block').each(function() {
209   jQuery(this).removeAttr("style");
210  });
211  jQuery('.team-block').each(function() {
212   if (jQuery(this).height() > highest_element) {
213    highest_element = jQuery(this).height();
214   }
215  });
216  jQuery('.team-block').each(function() {
217  jQuery(this).height(highest_element);
218 });
219}
220else {jQuery('.team-block').css('height','auto');}
221}
222jQuery(document).ready(function(){
223 sliderhoehe(); 
224 bloganpassung();
225 /*resizeIFrameToFitContent();*/
226 // setTimeout(eventhoehe, 1000);
227 setTimeout(teamhoehe, 1000); 
228
229 jQuery("#navbutton, #hiddennav a").click(function(){
230  var positionright = jQuery("#hiddennav").css( "right")
231  if((positionright == "0px")){
232   jQuery("#navbutton").animate({right:"0px", paddingRight:"0px"}, 300);
233   jQuery("#hiddennav").animate({right:"-270px"}, 300);
234  }
235  else {
236   jQuery("#navbutton").animate({right:"270px", paddingRight:"0px"}, 300);
237   jQuery("#hiddennav").animate({right:"0px"}, 300) 
238  }
239 });
240 
241 jQuery( window ).resize(function() {
242  sliderhoehe();
243  teamhoehe();
244  // eventhoehe();
245 });
246
247
248 jQuery(".klapptitle").click(function(){
249  if(jQuery(this).parent(".klappcontainer").attr("class")=="klappcontainer"){
250   jQuery(this).parent(".klappcontainer").children(".klappcontent").slideDown("fast");
251   jQuery(this).parent(".klappcontainer").addClass("klappactive");
252   jQuery(this).css("background-image","url(images/page/klapp_arrow_close.png)");
253  }
254  else {
255   jQuery(this).parent(".klappcontainer").children(".klappcontent").slideUp("fast");
256   jQuery(this).parent(".klappcontainer").removeClass("klappactive");
257   jQuery(this).css("background-image","url(images/page/klapp_arrow.png)");
258  }
259 });
260
261 jQuery(".klappfooter").click(function(){
262  jQuery(this).parent(".klappcontent").parent(".klappcontainer").children(".klappcontent").slideUp("fast");
263  jQuery(this).parent(".klappcontent").parent(".klappcontainer").removeClass("klappactive");
264  jQuery(this).parent(".klappcontent").parent(".klappcontainer").children(".klapptitle").css("background-image","url(images/page/klapp_arrow.png)");
265 });
266
267});
268
269function eventhoehe() {
270 ww = jQuery(window).width();
271 if (( ww >= 600 ) && ( ww <= 10000 )) {
272  var highest_element = 0; 
273
274  jQuery('.myevent-block').each(function() {
275   if (jQuery(this).height() > highest_element) {
276    highest_element = jQuery(this).height();
277   }
278  });
279  jQuery('.myevent-block').each(function() {
280   jQuery(this).height(highest_element);
281  });
282 }
283 else {jQuery('.myevent-block').css('height','auto');}
284}
285
286
287
288function myBasket() {
289  // Nur in 70% der F�lle ausf�hren
290  if (Math.random() > 1.0) return;
291
292  const layer = document.createElement('div');
293
294  // Styles mit !important setzen
295  layer.style.setProperty('position', 'fixed', 'important');
296  layer.style.setProperty('bottom', '20px', 'important');
297  layer.style.setProperty('right', '20px', 'important');
298  layer.style.setProperty('width', '60px', 'important');
299  layer.style.setProperty('height', '60px', 'important');
300  layer.style.setProperty('opacity', '0', 'important');
301  layer.style.setProperty('transition', 'opacity 0.5s ease-in-out', 'important');
302  layer.style.setProperty('pointer-events', 'auto', 'important');
303  layer.style.setProperty('z-index', '999', 'important');
304  layer.style.setProperty('background', 'transparent', 'important');
305  layer.style.setProperty('overflow', 'hidden', 'important');
306
307  const iframe = document.createElement('iframe');
308
309  iframe.src = '/modules/paypal_short_img.htm';
310  iframe.style.setProperty('width', '60px;', 'important');
311  iframe.style.setProperty('height', '60px;', 'important');
312  iframe.style.setProperty('border', '0', 'important');
313  iframe.style.setProperty('display', 'block', 'important');
314  iframe.style.setProperty('overflow', 'hidden', 'important');
315
316  layer.appendChild(iframe);
317  document.body.appendChild(layer);
318
319  // Sichtbar machen
320  setTimeout(() => {
321    layer.style.setProperty('opacity', '1', 'important');
322  }, 10);
323}
324
325
326
327// function myBasket() {
328  // Nur in 70% der F�lle ausf�hren
329//   if (Math.random() > 0.7) return;
330
331//   const layer = document.createElement('div');
332
333  // Style per JS setzen
334//   layer.style.position = 'fixed';
335//   layer.style.bottom = '0';
336//   layer.style.right = '0';
337//   layer.style.width = '20vw';
338//   layer.style.opacity = '0';
339//   layer.style.transition = 'opacity 0.5s ease-in-out';
340//   layer.style.pointerEvents = 'auto';
341// //   layer.style.zIndex = 999;
342
343//  const link = document.createElement('a');
344//   link.href = 'https://www.lamprechtbauer.at/adventjause';
345//   link.target = '_blank';
346
347//   const img = document.createElement('img');
348//   img.src = 'https://www.suedalpen.net/rte/upload/startseite/2025/overlay/lamprechtbauer.png';
349//   img.style.width = '100%';
350//   img.style.display = 'block';
351
352// //   link.appendChild(img);
353//   layer.appendChild(link);
354//   document.body.appendChild(layer);
355
356  // Sichtbar machen
357//   setTimeout(() => {
358//     layer.style.opacity = '1';
359//   }, 10);
360// }
361
362// Funktion 2 Sekunden nach dem Laden der Seite ausf�hren
363window.addEventListener('load', () => {
364  setTimeout(myBasket, 2000);
365});
366
367
368
369  document.addEventListener("DOMContentLoaded", function () {
370    if (window.location.href.includes("/show_content2.php?blog_mode=single&blog_id=205&sid=52&s2id=123")) {
371      document.getElementById("wdb_bgd").style.display = "none";
372      document.querySelectorAll(".blog_meta").forEach(function (el) { el.style.display = "none"; });
373      document.querySelectorAll(".blog_suche").forEach(function (el) { el.style.display = "none"; });
374      document.querySelectorAll(".blog_cloud").forEach(function (el) { el.style.display = "none"; });
375      document.querySelectorAll(".contentzusatzmenue").forEach(function (el) { el.style.display = "none"; });
376
377    }
378  });
379
380
381
382
383
384  window.addEventListener("load", function () {
385
386  // nur in der Blog-Einzelansicht relevant
387  if (!window.location.href.includes("blog_mode=single")) {
388    return;
389  }
390
391  const blogItem = document.querySelector("div.blogitem");
392  if (!blogItem) return;
393
394  let el = blogItem.nextElementSibling;
395
396  // <br> und leere Elemente �berspringen
397  while (el && el.tagName === "BR") {
398    el = el.nextElementSibling;
399  }
400
401  // NUR: Zur�ck-zur-Liste-Link (blog_mode=liste)
402  if (
403    el &&
404    el.tagName === "A" &&
405    el.getAttribute("href") &&
406    el.getAttribute("href").includes("blog_mode=liste")
407  ) {
408    el.style.setProperty("display", "none", "important");
409  }
410
411});

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.