1//AccessMenu 2$(document).ready(function () { 3 var $body = $('body'); 4 var fontsize = localStorage.getItem('fontsize'); 5 if (fontsize != null) { $body.css('font-size', parseFloat(fontsize)); } 6 7 $('.accessMenu ul li').on('click', function (e) { 8 e.preventDefault(); 9 $this = $(this); 10 if ($this.is("li.minus")) { 11 12 if (parseFloat($body.css('font-size')) <= 11) { 13 return; 14 } 15 fontsize = parseFloat($body.css('font-size')) - 1; 16 $body.css('font-size', fontsize); 17 localStorage.setItem('fontsize', fontsize); 18 } 19 if ($this.is("li.reset")) { 20 $body.removeAttr('style'); 21 localStorage.removeItem('fontsize'); 22 } 23 if ($this.is("li.plus")) { 24 if (parseFloat($body.css('font-size')) >= 21) { 25 return; 26 } 27 fontsize = parseFloat($body.css('font-size')) + 1; 28 $body.css('font-size', parseFloat($body.css('font-size')) + 1); 29 localStorage.setItem('fontsize', fontsize); 30 } 31 }); 32}); 33 34 35 36 37//MobileMenu 38//*************************************************************************/ 39 40$(document).ready(function () { 41 42 //menu trigger action 43 $(".nav-trigger").on('click', function (event) { 44 45 event.preventDefault(); 46 47 var navIsVisible = (!$('.nav-trigger').hasClass('nav-is-visible')) ? true : false; 48 49 $('.wrapper, .menuMobile, .nav-trigger').toggleClass('nav-is-visible', navIsVisible); 50 51 if (navIsVisible) { 52 $("html, body").scrollTop(0); 53 } 54 55 }); 56 57 58 //close mobile-nav in resize 59 $(window).resize(function () { 60 61 if (window.matchMedia('(min-width: 768px)').matches) { 62 63 $('.wrapper, .menuMobile, .nav-trigger').toggleClass('nav-is-visible', false); 64 } 65 }); 66 67 //$(".menuMobile > ul > li.childMenue > a").on('click', function (e) { 68 69 // e.preventDefault(); 70 71 // var currentElm = $(this).next('div'); 72 73 // $(".menuMobile > ul > li.childMenue div").not(currentElm).slideUp(200); 74 75 // $(this).next('div').slideToggle(200); 76 77 78 //}); 79 80 81 $(".menuMobile > ul").each(function () 82 { 83 // $(this).prepend("<li class=''><a href='/' class=''>Home</a></li>"); 84 85 }); 86 //set prev-links 87 88 $(".menuMobile ul").each(function () { 89 90 var hasChildren = $(this).parent("div").parent("li.childMenue").length; 91 var link = $(this).parent("div").parent("li.childMenue").children("a"); 92 if (hasChildren) { 93 //$(this).prepend("<li><a href='" + $(link).attr("href") + "' class=''>Info</a></li>"); 94 $(this).prepend("<li class='back'><a href='#' class=''>zurück</a></li>"); 95 96 } 97 98 }); 99 100 //next link action 101 $(".menuMobile ul > li:not('.back') > a").click(function (e) { 102 103 var hasChildren = $(this).parent("li.childMenue").length; 104 105 if (hasChildren) { 106 e.preventDefault(); 107 //current ul moveout 108 $(this).parent("li").parent("ul").addClass("move-out"); 109 //sub ul visible 110 $(this).parent("li").children("div").children("ul").addClass("is-visible"); 111 } 112 113 }); 114 115 //prev link action 116 $(".menuMobile ul > li.back > a").click(function (e) 117 { 118 119 e.preventDefault(); 120 121 var currentMenu = $(this).parent("li").parent("ul"); 122 var parentMenu = $(currentMenu).parent("div").parent("li").parent("ul"); 123 124 $(parentMenu).removeClass("move-out"); 125 126 $(parentMenu).one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function () { 127 128 $(currentMenu).removeClass("is-visible"); 129 currentMenu = undefined; 130 131 }); 132 }); 133 134 135 136 $(window).load(function () { 137 138 var fixedNav = $('.mainMenueWrapper'), 139 fixedNavOffset = fixedNav.offset().top -30, 140 fixedNavHeight = fixedNav.height(), 141 header = $('.header'); 142 // console.log(fixedNavOffset); 143 $(window).on('scroll', function () { 144 145 //console.log($(window).scrollTop() + " > " + fixedNavOffset + " = " + ($(window).scrollTop() > fixedNavOffset) + " isFixed: " + fixedNav.hasClass('is-fixed')); 146 147 if ($(window).scrollTop() > fixedNavOffset) { 148 149 fixedNav.addClass('is-fixed'); 150 151 152 153 //header.css('padding-top', fixedNavHeight + 30); 154 155 } else { 156 157 fixedNav.removeClass('is-fixed'); 158 //header.removeAttr('style'); 159 } 160 161 }); 162 163 });
164 165}); 166 167$.fn.serializeObject = function () { 168 var o = {}; 169 var a = this.serializeArray(); 170 $.each(a, function () { 171 if (o[this.name] !== undefined) { 172 if (!o[this.name].push) { 173 o[this.name] = [o[this.name]]; 174 } 175 o[this.name].push(this.value || ''); 176 } else { 177 o[this.name] = this.value || ''; 178 } 179 }); 180 return o; 181}; 182//Nicht fragen 183/*************************************************************************/ 184if (navigator.userAgent.match(/IEMobile\/10\.0/)) { 185 var msViewportStyle = document.createElement("style"); 186 msViewportStyle.appendChild( 187 document.createTextNode( 188 "@-ms-viewport{width:auto!important}" 189 ) 190 ); 191 document.getElementsByTagName("head")[0]. 192 appendChild(msViewportStyle); 193} 194 195 196function equalHeight(group) { 197 if (window.matchMedia('(min-width: 768px)').matches) { 198 var tallest = 0; 199 group.each(function () { 200 $(this).height('auto'); 201 var thisHeight = $(this).height(); 202 if (thisHeight > tallest) { 203 tallest = thisHeight; 204 } 205 }); 206 group.height(tallest); 207 } else { 208 group.removeAttr('style'); 209 } 210} 211 212 213//Mobile-Check 214var isMobile = false; 215if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { 216 isMobile = true; 217} 218 219//Sucheingabe 220//$(document).ready(function () { 221 222// $('#searchQuery').keypress(function (e) { 223// if (e.which == 13) { 224// $('#searchButton').click(); 225 226// return false; 227// } 228// }); 229 230// $('#searchButton').on('click', function (e) { 231// e.preventDefault(); 232 233// var query = $('#searchQuery').val(); 234 235// if (query != "") { 236// location.href = $(this).attr('href') + query; 237// } 238// }); 239 240// $("#backLink").click(function (event) { 241// event.preventDefault(); 242// history.back(1); 243// }); 244 245//}); 246 247 248 249 250//$(document).ready(function () { 251////MobileMenu 252////*************************************************************************/ 253 254// //$(".top_holz").prepend("<div class='nav-triggerWrapper' ><a href='#' class='nav-trigger openSiteMenu icon-Icon_Menue'><span></span></a></div>"); 255// //menu trigger action 256//var lastScrollPos; 257//$(".nav-trigger").on('click', function (event) { 258 259// event.preventDefault(); 260 261// var navIsVisible = (!$('.nav-trigger').hasClass('nav-is-visible')) ? true : false; 262 263// $('form , body, .mainWrapper, .mobileMenue, .nav-trigger').toggleClass('nav-is-visible', navIsVisible); 264 265// if (navIsVisible) 266// { 267// //lastScrollPos = $(window).scrollTop(); 268// $(window).scrollTop(0); 269// //$(document.body).animate({ scrollTop: "0px" }, { easing: "swing", duration: Math.trunc(lastScrollPos / 4) }); 270// } 271// else 272// { 273 274// $(document.body).animate({ scrollTop: lastScrollPos + "px" }, { easing: "swing", duration: Math.trunc(lastScrollPos / 4) }); 275 276// $(window).scrollTop(lastScrollPos); 277// } 278 279//}); 280 281 282////close mobile-nav in resize 283//$(window).resize(function () { 284 285// if (window.matchMedia('(min-width: 768px)').matches) { 286 287// $('form, body, .mainWrapper, .mobileMenue, .nav-trigger').toggleClass('nav-is-visible', false); 288// } 289//}) 290 291//$(".mobileMenue > ul").each(function () 292//{ 293// // $(this).prepend("<li class=''><a href='/' class=''>Home</a></li>"); 294 295//}); 296// //set prev-links 297 298//$(".mobileMenue ul").each(function () { 299 300// var hasChildren = $(this).parent("div").parent("li.childMenue").length; 301// var link = $(this).parent("div").parent("li.childMenue").children("a"); 302// if (hasChildren) { 303// //$(this).prepend("<li><a href='" + $(link).attr("href") + "' class=''>Info</a></li>"); 304// $(this).prepend("<li class='back'><a href='#' class=''>zurück</a></li>"); 305 306// } 307 308//}); 309 310////next link action 311//$(".mobileMenue ul > li:not('.back') > a").click(function (e) { 312 313// var hasChildren = $(this).parent("li.childMenue").length; 314 315// if (hasChildren) { 316// e.preventDefault(); 317// //current ul moveout 318// $(this).parent("li").parent("ul").addClass("move-out"); 319// //sub ul visible 320// $(this).parent("li").children("div").children("ul").addClass("is-visible"); 321// } 322 323//}); 324 325////prev link action 326//$(".mobileMenue ul > li.back > a").click(function (e) 327//{ 328 329// e.preventDefault(); 330 331// var currentMenu = $(this).parent("li").parent("ul"); 332// var parentMenu = $(currentMenu).parent("div").parent("li").parent("ul"); 333 334// $(parentMenu).removeClass("move-out"); 335 336// $(parentMenu).one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function () { 337 338// $(currentMenu).removeClass("is-visible"); 339// currentMenu = undefined; 340 341// });
342//}); 343 344//}); 345 346 347////Mobile-Check 348//var isMobile = false; 349//if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { 350// isMobile = true; 351//} 352 353//Scroll 354$(window).load(function () { 355 356 setScrollClass(); 357 $(window).on('scroll', function () 358 { 359 360 setScrollClass(); 361 }); 362 $(window).on('resize', function () { 363 364 if ($("body").hasClass('fixed')) { 365 $(".mainMenueWrapper").css("height", "auto"); 366 $(".mainMenueWrapper").css("height", $(".mainMenueWrapper").height()); 367 } 368 else 369 { 370 $(".mainMenueWrapper").css("height", "auto"); 371 } 372 }); 373 374}); 375var offset = 0; 376function setScrollClass() 377{ 378 //var top = $(".mainMenueWrapper").offset().top; 379 //if ($(window).scrollTop() >= top && !$("body").hasClass('fixed')) 380 //{ 381 // offset = top; 382 // $(".mainMenueWrapper").css("height", $(".mainMenueWrapper").height()); 383 // $("body").addClass('fixed'); 384 //} 385 //if ($(window).scrollTop() < offset && $("body").hasClass('fixed')) 386 //{ 387 // $(".mainMenueWrapper").css("height","auto"); 388 // $("body").removeClass('fixed') 389 //} 390 391 if ($(window).scrollTop() > 1) { 392 $("body form > div.top").addClass("scrolled"); 393 } 394 else 395 { 396 $("body form > div.top").removeClass("scrolled"); 397 } 398} 399 400 401 402 403function setCookie(cname, cvalue, exdays) { 404 var d = new Date(); 405 d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); 406 var expires = "expires=" + d.toUTCString(); 407 document.cookie = cname + "=" + cvalue + "; path=/; " + expires; 408} 409 410function getCookie(cname) { 411 var name = cname + "="; 412 var ca = document.cookie.split(';'); 413 for (var i = 0; i < ca.length; i++) { 414 var c = ca[i]; 415 while (c.charAt(0) == ' ') { 416 c = c.substring(1); 417 } 418 if (c.indexOf(name) == 0) { 419 return c.substring(name.length, c.length); 420 } 421 } 422 return ""; 423} 424function removeCookie(cname) { 425 document.cookie = cname + "=; expires=Thu, 01 Jan 2000 00:00:00 UTC"; 426} 427 428$(function () { 429 //$('.listItem .ratioimage').Lazy( 430 // { 431 // visibleOnly: true 432 // }); 433 //$('.image').Lazy( 434 // { 435 // visibleOnly: true 436 // }); 437}); 438 439 440 441$(document).ready(function () { 442 443 /* Every time the window is scrolled ... */ 444 $(window).scroll(function () { 445 446 /* Check the location of each desired element */ 447 $('.hideme').each(function (i) { 448 449 var bottom_of_object = $(this).offset().top + $(this).outerHeight()/2; 450 var bottom_of_window = $(window).scrollTop() + $(window).height(); 451 var el =$(this); 452 /* If the object is completely visible in the window, fade it it */ 453 //console.log(bottom_of_window + " - " + bottom_of_object); 454 if (bottom_of_window > bottom_of_object) { 455 456 console.log(i); 457 setTimeout(function () { 458 el.addClass('showme'); 459 }, (i * 200)); 460 461 462 463 } 464 465 }); 466 467 }); 468 469});
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.