1var count = 0; 2var scrollTicker = null; 3var scrollReady = true; 4var scrollProgress = false; 5function initMap(){ 6 if ($("#map-canvas").length) { 7 var mapOptions = { 8 center : new google.maps.LatLng(49.192391, 8.140490), 9 zoom : 12 10 }; 11 var marker = new google.maps.Marker({ 12 position : new google.maps.LatLng(49.192391, 8.140490), 13 url : "https://www.google.de/maps/dir//Otto-Hahn-StraÃe+14,+76829+Landau+in+der+Pfalz/@49.192391,8.140490,15z", 14 title : "Leissing Druckveredelung GmbH %26 Co. KG" 15 }); 16 google.maps.event.addListener(marker, 'click', function() { 17 window.open(marker.url); 18 }); 19 var map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions); 20 marker.setMap(map); 21 } 22} 23function glossar(_letter) { 24 $('.glossar_menu a').removeClass("active"); 25 $('.glossar_menu a.m' + _letter).addClass("active"); 26 $('body.layout15 .hauptspalte .layout7').hide(); 27 $('body.layout15 .hauptspalte .layout7 h2').each(function() { 28 if ($(this).text().substr(0, 1).toUpperCase().replace('\u00d6', 'O').replace('\u00c4', 'A').replace('\u00dc', 'U') == _letter) { 29 $('body.layout15 .hauptspalte .layout7 p,body.layout15 .hauptspalte .layout7 a,body.layout15 .hauptspalte .layout7 img').stop().slideUp(); 30 $(this).parent().show(); 31 } 32 }); 33} 34 35function resizer() { 36 ww = window.innerWidth ? window.innerWidth : $(window).width(); 37 wh = height = window.innerHeight ? window.innerHeight : $(window).height(); 38 wr = ww / wh; 39 $("body.layout4 div.layout0 .csc-textpic-image img,body.layout7 div.layout0 .csc-textpic-image img,body.layout7 div.layout1 .csc-textpic-image img").each(function() { 40 ir = 2732 / 2160; 41 cntnr=$(this).parents("div.layout0, div.layout1"); 42 cw = cntnr.width(); 43 ch = cntnr.height(); 44 cr = cw / ch; 45 if (ir >= cr) { 46 $(this).attr("data-log","cw="+cw+" / "+cntnr.attr("class")); 47 $(this).removeAttr("style"); 48 $(this).css("width", ch*ir); 49 $(this).css("max-width", ch*ir); 50 $(this).css("height", ch); 51 if($(this).closest(".csc-textpic-right").length ) { 52 $(this).css("margin-left", 0); 53 } else { 54 $(this).css("margin-left", (cw - $(this).width()) / 2); 55 } 56 } else { 57 $(this).removeAttr("style"); 58 $(this).css("margin-top", (ch - $(this).height()) / 2); 59 } 60 }); 61 if($("body.layout7 div.layout1").length && ww>750){ 62 $("body.layout7 div.layout1 .csc-textpic-image img").each(function(ii){ 63 iw=$(this).width(); 64 ih=$(this).height(); 65 pw=$(this).parents(".csc-textpic-imagerow").width(); 66 ph=$(this).parents(".csc-textpic-imagerow").height(); 67 $(this).parents(".csc-textpic-imagerow").find(".punkt").each(function(ip){ 68 if($(this).attr("data-pos")!== undefined){ 69 posDot($(this),iw,ih,pw,wh); 70 } else { 71 $(this).attr("data-pos",$(this).attr("style")); 72 posDot($(this),iw,ih,pw,wh); 73 } 74 }); 75 }); 76 } 77 $("body.layout1 div.layout4 img").each(function() { 78 $(this).css("margin-top", $(this).parent().parent().parent().parent().find("h2").height()); 79 }); 80 if ($('body.default div.layout4').length && ww>960) { 81 iw = 0; 82 ix = 0; 83 $("body.default div.layout4 .csc-textpic-imagecolumn img").each(function() { 84 iw += $(this).width(); 85 ix++; 86 }); 87 if (ix > 4) { 88 $("body.default div.layout4 .csc-textpic-imagecolumn").not("body.default div.layout4 .csc-textpic-firstcol").css("margin-left", ($("body.default div.layout4").width() - iw) / ix) 89 } else { 90 $("body.default div.layout4 .csc-textpic-imagecolumn").not("body.default div.layout4 .csc-textpic-firstcol").css("margin-left", ($("body.default div.layout4").width() - iw) / ix / 5) 91 } 92 } 93 maxHeight = 0; 94 $(".imprint").detach(); 95 if($('.foot div.right').length && ww<751){ 96 $("<p class='bodytext imprint'><a href='/impressum/'>Impressum</a></p>").prependTo(".foot div.right"); 97 } 98 if ($('body.default div.layout3 .csc-textpic').length && ww>750) { 99 $('body.default div.layout3 .csc-textpic').css('height', 'auto'); 100 $('body.default div.layout3 .csc-textpic').each(function(){ 101 if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } 102 }); 103 $('body.default div.layout3 .csc-textpic').height(maxHeight); 104 } 105} 106 107function scrollClosest() { 108 if ($('body.layout7 .menu4').length) { 109 if (scrollReady) { 110 scrollReady = false;
111 scrollPos = Math.round($(window).scrollTop() / $(window).height()) * $(window).height(); 112 $('html, body').stop().animate({ 113 scrollTop : scrollPos 114 }, 'slow', function() { 115 scrollReady = true; 116 }); 117 } 118 } 119} 120 121function layer(_nm, _tl, _fn, _ml) { 122 $("body").append('<div class="layer"><div class="inner"><div class="close"></div><div class="col"><b>Ihre Anfrage an:</b><h2>' + _nm + '</h2>' + _tl + '</div><div class="col"><b> </b><br/>' + _fn + '<br/><a href="mailto:' + _ml + '">' + _ml + '</a></div>' + '<iframe src="/send.php?to=' + _ml + '" class="form"></iframe></div></div>'); 123 $(".layer,.close").bind("click", function(e) { 124 $('.layer').remove(); 125 }); 126 $(".layer .inner").click(function(e) { 127 e.stopPropagation(); 128 }); 129} 130 131function setConsent(){ 132 var ExpireDate = new Date(); 133 ExpireDate.setTime(ExpireDate.getTime() + (365 * 24 * 3600 * 1000)); 134 document.cookie = 'cookie-consent=ok; expires='+ExpireDate.toGMTString()+'; path=/'; 135 $("#cookie-consent").hide(); 136} 137 138function testConsent(){ 139 ck=document.cookie; 140 return (ck.indexOf("cookie-consent=ok")>-1); 141} 142function posDot(_dot,_iw,_ih,_pw,_ph) { 143 atr=_dot.attr("data-pos").split(";"); 144 pt=atr[1].replace(/[^\d\.\-]/g, ''); 145 pl=atr[2].replace(/[^\d\.\-]/g, ''); 146 tp=_ih/100*pt-((_ih-_ph)/2); 147 lf=_iw/100*pl-((_iw-_pw)); 148 _dot.css({"top":tp,"left":lf}); 149} 150$(document).ready(function() { 151 ww = window.innerWidth ? window.innerWidth : $(window).width(); 152 if(testConsent()){ 153 $("#cookie-consent").remove(); 154 } 155 $(".m_btn").click(function() { 156 if($(".menu3").css("display")=="block" && !($("body.layout4 div.layout0 .csc-textpic-text .bodytext").css("display")=="block" || $("body.layout7 div.layout0 .csc-textpic-text .bodytext").css("display")=="block")){ 157 $(".menu4").fadeIn("slow"); 158 } else { 159 $(".menu4").fadeOut("slow"); 160 } 161 $(".menu3").slideToggle("slow"); 162 }); 163 $("a[href$='.mp4']").click(function(e) { 164 e.preventDefault(); 165 $("body").append('<div class="layer"><div class="inner video"><div class="close"></div><div class="video"><video src="'+$(this).attr("href")+'" autoplay controls></div></div></div>'); 166 $(".layer,.close").bind("click", function(e) { 167 $('.layer').remove(); 168 }); 169 $(".layer .inner").click(function(e) { 170 e.stopPropagation(); 171 }); 172 }); 173 if(ww<751){ 174 $("body.layout7 div.slide-txt h2, body.layout7 div.layout0 .csc-textpic-text h2, body.layout4 div.layout0 .csc-textpic-text h2").bind('click', function(e) { 175 if($(".menu3").css("display")=="none"){ 176 if($(this).parent().find(".bodytext").css("display")=="block"){ 177 $(".menu4").fadeIn("slow"); 178 } else { 179 $(".menu4").fadeOut("slow"); 180 } 181 $(this).parent().find(".bodytext").slideToggle("slow"); 182 } 183 }); 184 } 185 $('.menu3 ul ul').parent().each( 186 function(){ 187 $(this).find("a:first").append("<span class='arrow'></span>"); 188 } 189 ); 190 $('.menu3 .level1 a').not('.menu3 .level2 a,.menu3 .level3 a').bind('click', function(e) { 191 e.preventDefault(); 192 sub=$(this).parent().find("ul:first"); 193 if(sub.css('display') !== 'none') { 194 location.href = $(this).attr("href"); 195 } else { 196 $(".menu3 .level1 ul").not(sub).slideUp(500); 197 $('.menu3 .level1 a').not($(this)).removeClass("expanded"); 198 $(this).addClass("expanded"); 199 sub.slideDown(500); 200 } 201 }); 202 $('.menu3 .level2 a').not('.menu3 .level3 a').bind('click', function(e) { 203 e.preventDefault(); 204 sub=$(this).parent().find("ul"); 205 if(sub.css('display') !== 'none') { 206 location.href = $(this).attr("href"); 207 } else { 208 $(".menu3 .level2 ul").not(sub).slideUp(500); 209 $('.menu3 .level2 a').not($(this)).removeClass("expanded"); 210 $(this).addClass("expanded"); 211 sub.slideDown(500); 212 } 213 }); 214 $(".menu3 .menuitem178 ul li a").attr("href", function(i, href) { 215 return href + "#i" + (i + 1); 216 }); 217 $("body.default figcaption").each(function() { 218 alt = $(this).parent().find("img").attr("alt").split(" "); 219 $(this).html($(this).html().replace("&rsaquo;", "›").replace(new RegExp("&nbsp;", "g"), " ").replace("<br/>", "<br/>").replace("<h2>", "<h2>").replace("</h2>", "</h2>").replace("<h3>", "<h3>").replace("</h3>", "</h3>")).addClass(alt[2]); 220 $(this).find("h2,h3").css("background-color", alt[1]); 221 }); 222 $("body.layout6 figcaption,body.layout10 figcaption").each(function() { 223 alt = $(this).parent().find("img").attr("alt").split(" "); 224 $(this).html($(this).html().replace("&rsaquo;", "›").replace(new RegExp("&nbsp;", "g"), " ").replace("<br/>", "<br/>").replace("<h2>", "<h2>").replace("</h2>", "</h2>").replace("<h3>", "<h3>").replace("</h3>", "</h3>")).addClass(alt[1]); 225 }); 226 $(".csc-form-element label").each(function() { 227 $(this).html($(this).html().replace(">", ">").replace("<", "<").replace(""", "\"").replace("</a>", "</a>")); 228 }); 229 if ($('body.default div.layout3 .csc-textpic').length) { 230 $('body.default div.layout3 .csc-textpic').each(function(){ 231 $(this).css({"background": "url(" + $(this).find("img").hide().attr("src") + ") no-repeat", "background-size":"cover"}); 232 }); 233 } 234 if ($('body.default div.layout1 .csc-textpic-imagewrap').length) { 235 if ($('body.default div.layout1 .csc-textpic-imagewrap .csc-textpic-imagerow:eq(1)').length) { 236 $('body.default div.layout1 .csc-textpic-imagewrap').append("<div class='cycle-prev'>prev</div><div class='cycle-next'>next</div><div class='cycle-pager'></div>"); 237 } 238 $("body.default div.layout1 figcaption").click(function() { 239 location.href = $(this).parent().find("a").attr("href"); 240 }); 241 $('body.default div.layout1 .csc-textpic-imagewrap').cycle({ 242 fx : 'scrollHorz', 243 slides : '.csc-textpic-imagerow', 244 delay : 0, 245 timeout : 10000, 246 speed : 600, 247 manualSpeed : 600, 248 pager : '.cycle-pager' 249 }); 250 } 251 if ($('body.layout6 div.layout0 .csc-textpic-imagewrap').length) { 252 if ($('body.layout6 div.layout0 .csc-textpic-imagewrap .csc-textpic-imagerow:eq(1)').length) { 253 $('body.layout6 div.layout0 .csc-textpic-imagewrap').append("<div class='cycle-prev'>prev</div><div class='cycle-next'>next</div><div class='cycle-pager'></div>"); 254 } 255 $('body.layout6 div.layout0 .csc-textpic-imagewrap').cycle({ 256 fx : 'scrollHorz', 257 slides : '.csc-textpic-imagerow', 258 timeout : 0, 259 speed : 600, 260 manualSpeed : 600, 261 pager : '.cycle-pager' 262 }); 263 } 264 if ($('body.layout14 div.layout0 .csc-textpic-imagewrap,body.layout16 div.layout0 .csc-textpic-imagewrap').length) { 265 if ($('body.layout14 div.layout0 .csc-textpic-imagewrap .csc-textpic-imagerow:eq(1),body.layout16 div.layout0 .csc-textpic-imagewrap .csc-textpic-imagerow:eq(1)').length) { 266 $('body.layout14 div.layout0 .csc-textpic-imagewrap,body.layout16 div.layout0 .csc-textpic-imagewrap').append("<div class='cycle-prev'>prev</div><div class='cycle-next'>next</div><div class='cycle-pager'></div>"); 267 } 268 $('body.layout14 div.layout0 .csc-textpic-imagewrap,body.layout16 div.layout0 .csc-textpic-imagewrap').cycle({ 269 fx : 'scrollHorz', 270 slides : '.csc-textpic-imagerow', 271 timeout : 0, 272 speed : 600, 273 manualSpeed : 600, 274 pager : '.cycle-pager' 275 }); 276 } 277 if ($('body.layout7 .menu4').length) { 278 $('body.layout7 .menu4 li').each(function(idx) { 279 $(this).attr("style", $(".hauptspalte .layout1:nth-child(" + (idx + 1) + ") h2").attr("style")); 280 }); 281 } 282 if ($('body.layout7 div.layout1 .csc-textpic-imagewrap').length) { 283 $('body.layout7 div.layout1 .csc-textpic-imagewrap').each(function(idx) { 284 white = ""; 285 if (parseInt($(".hauptspalte .layout1:nth-child(" + (idx + 1) + ") h2").attr("style").substring(18, 20), 16) > 100) { 286 white = " white"; 287 } 288 if (idx + 1 < $('body.layout7 div.layout1 .csc-textpic-imagewrap').length) { 289 $(this).append("<div class='cycle-prev" + white + "'>prev</div><div class='cycle-next" + white + "'>next</div><div class='scroll-up" + white + "'>up</div><div class='scroll-down" + white + "'>down</div><div class='cycle-pager cycle-pager" + idx + "'></div>"); 290 } else { 291 $(this).append("<div class='cycle-prev" + white + "'>prev</div><div class='cycle-next" + white + "'>next</div><div class='scroll-up" + white + "'>up</div><div class='cycle-pager cycle-pager" + idx + "'></div>"); 292 } 293 $(this).find(".scroll-up").bind("click", function(e) { 294 e.preventDefault(); 295 $('html, body').stop().animate({ 296 scrollTop : ((idx) * $(window).height()) 297 }, 'slow'); 298 }); 299 $(this).find(".scroll-down").bind("click", function(e) { 300 e.preventDefault(); 301 $('html, body').stop().animate({ 302 scrollTop : ((idx + 2) * $(window).height()) 303 }, 'slow'); 304 }); 305 $(this).cycle({ 306 fx : 'scrollHorz', 307 slides : '.csc-textpic-image', 308 timeout : 0, 309 speed : 600, 310 manualSpeed : 600, 311 pager : '.cycle-pager' + idx 312 }); 313 }); 314 $('body.layout7 div.layout1 .csc-textpic-text').each(function() { 315 section = $(this).parent(); 316 $(this).find("div.slide-txt").each(function(idx) { 317 $(this).detach().appendTo(section.find(".cycle-slide:eq(" + idx + ")")); 318 }); 319 }); 320 $('body.layout7 div.layout1 .punkt').each(function() { 321 dest = $(this).parent().parent(); 322 $(this).detach().appendTo(dest); 323 }); 324 } 325 if ($('body.layout7 .menu4').length) { 326 $('body.layout7 .menu4 a').each(function(idx) { 327 $(this).bind("click", function(e) { 328 e.preventDefault(); 329 $('html, body').stop().animate({ 330 scrollTop : ((idx + 1) * $(window).height()) 331 }, 'slow'); 332 }); 333 }); 334 } 335 $(".menu2 .menuitem178 ul li a").attr("href", function(i, href) { 336 return href + "#i" + (i + 1); 337 }); 338 $(".csc-sitemap a[title='Kreation']").parent().find("ul li a").attr("href", function(i, href) { 339 return href + "#i" + (i + 1); 340 }); 341 if ($('.menu2 .menuitem7.active').length) { 342 $('.menu2 .menuitem7.active ul li a').each(function(idx) { 343 $(this).bind("click", function(e) { 344 e.preventDefault(); 345 $('html, body').stop().animate({ 346 scrollTop : ((idx + 1) * $(window).height()) 347 }, 'slow'); 348 }); 349 }); 350 } 351 if ($('body.layout10 div.layout0 .csc-textpic-imagewrap').length) { 352 if ($('body.layout10 div.layout0 .csc-textpic-imagewrap .csc-textpic-imagerow:eq(1)').length) { 353 $('body.layout10 div.layout0 .csc-textpic-imagewrap').append("<div class='cycle-prev'>prev</div><div class='cycle-next'>next</div><div class='cycle-pager'></div>"); 354 } 355 $('body.layout10 div.layout0 .csc-textpic-imagewrap').cycle({ 356 fx : 'scrollHorz', 357 slides : '.csc-textpic-imagerow', 358 timeout : 0, 359 speed : 600, 360 manualSpeed : 600, 361 pager : '.cycle-pager' 362 }); 363 } 364 if ($('body.layout2 div.layout4').length) { 365 var count = 0; 366 var max = 6; 367 $('.layout4,.layout7').each(function(idx) { 368 if (idx > (max - 1)) { 369 $(this).hide(); 370 } 371 count++; 372 }); 373 if (count >= max) { 374 $('body.layout2 .menu4').pagination({ 375 items : count, 376 itemsOnPage : max, 377 onPageClick : function(num, e) { 378 e.preventDefault(); 379 $('.layout4,.layout7').each(function(idx) { 380 if (idx < (max * (num - 1))) { 381 $(this).hide(); 382 } else if (idx > (max * num) - 1) { 383 $(this).hide(); 384 } else { 385 $(this).show(); 386 } 387 }); 388 } 389 }); 390 } 391 } 392 if ($('body.layout12 .tx-indexedsearch-res').length) { 393 count = 0; 394 var max = 10; 395 $('.tx-indexedsearch-res>.tx-indexedsearch-res').each(function(idx) { 396 if (idx > (max - 1)) { 397 $(this).hide(); 398 } 399 count++; 400 }); 401 if (count >= max) { 402 $('body.layout12 .menu4').pagination({ 403 items : count, 404 itemsOnPage : max, 405 onPageClick : function(num, e) { 406 e.preventDefault(); 407 $('.tx-indexedsearch-res>.tx-indexedsearch-res').each(function(idx) { 408 if (idx < (max * (num - 1))) { 409 $(this).hide(); 410 } else if (idx > (max * num) - 1) { 411 $(this).hide(); 412 } else { 413 $(this).show(); 414 } 415 }); 416 if(max * num<count){ 417 $(".tx-indexedsearch-browsebox p").html((max * (num - 1)+1)+" bis "+(max * num)+" von "+count+" Suchergebnissen."); 418 } else { 419 $(".tx-indexedsearch-browsebox p").html((max * (num - 1)+1)+" bis "+count+" von "+count+" Suchergebnissen."); 420 } 421 } 422 }); 423 $(".tx-indexedsearch-browsebox p").html("1 bis "+max+" von "+count+" Suchergebnissen."); 424 } else { 425 $(".tx-indexedsearch-browsebox p").html("1 bis "+count+" von "+count+" Suchergebnissen."); 426 } 427 } 428 if ($('.player').length) { 429 $.getScript("http://www.youtube.com/player_api"); 430 $('.poster').click(function() { 431 $(this).hide(); 432 player = $(this).parent().find(".player"); 433 player.show(); 434 $(this).parent().animate({ 435 height : $(this).width() * 0.566, 436 maxHeight : $(this).width() * 0.566 437 }, 'slow'); 438 ytplayer.playVideo(); 439 }); 440 } 441 if ($('.csc-mailform form').length) { 442 if ($('.csc-mailform .csc-form-element-checkboxgroup').length) { 443 $(".csc-mailform form").validate({ 444 rules : { 445 nachname : "required", 446 vorname : "required", 447 unternehmen : "required", 448 strasse : "required", 449 plz : "required", 450 ort : "required", 451 land : "required", 452 'tx_form_form[tx_form][medium][id-4]' : {require_from_group: [1,".fieldset-subgroup input"]}, 453 'tx_form_form[tx_form][medium][id-5]' : {require_from_group: [1,".fieldset-subgroup input"]}, 454 'tx_form_form[tx_form][medium][id-6]' : {require_from_group: [1,".fieldset-subgroup input"]}, 455 'tx_form_form[tx_form][medium][id-7]' : {require_from_group: [1,".fieldset-subgroup input"]}, 456 email : { 457 required : true, 458 email : true 459 } 460 }, 461 highlight : function(element) { 462 if ($(element).is(':checkbox')) { 463 $(element).parent().parent().addClass("error"); 464 } 465 $(element).addClass("error"); 466 }, 467 unhighlight : function(element) { 468 if ($(element).is(':checkbox')) { 469 $(element).parent().parent().removeClass("error"); 470 } 471 $(element).removeClass("error"); 472 } 473 }); 474 } else { 475 $(".csc-mailform form").validate({ 476 rules : { 477 nachname : "required", 478 vorname : "required", 479 unternehmen : "required", 480 strasse : "required", 481 plz : "required", 482 ort : "required", 483 land : "required", 484 email : { 485 required : true, 486 email : true 487 } 488 } 489 }); 490 } 491 } 492 $('body.layout15 .hauptspalte .layout7 h2').click(function() { 493 $('body.layout15 .hauptspalte .layout7 h2').not($(this)).removeClass('active'); 494 $(this).toggleClass('active'); 495 $('body.layout15 .hauptspalte .layout7 p,body.layout15 .hauptspalte .layout7 a,body.layout15 .hauptspalte .layout7 img').stop().slideUp(); 496 $(this).parent().find("p,a,img").stop().slideToggle(); 497 }); 498 $('.randspalte .layout5 figcaption').each(function() { 499 $(this).parents("div.layout5").addClass("headliner") 500 }); 501 $('.menu6 span').click(function() { 502 $(this).toggleClass('active'); 503 $(this).parent().find("ul").stop().slideToggle(); 504 }); 505 initMap(); 506 resizer(); 507 $( "img" ).load(function() { 508 resizer(); 509 }); 510}); 511 512$(window).load(function() { 513 $("body.default div.layout1 figcaption.left h3").each(function() { 514 $(this).css("margin-left", $(this).parent().width() - $(this).width() - 20); 515 }); 516 if (window.location.hash.indexOf('#i') > -1) { 517 $('html, body').stop().animate({ 518 scrollTop : (parseInt(window.location.hash.substr(2, 4)) * $(window).height()) 519 }, 'slow'); 520 } 521 if ($('.glossar_menu').length) { 522 glossar("A"); 523 } 524 $(window).bind("scroll", function() { 525 if (scrollTicker) { 526 window.clearTimeout(scrollTicker); 527 scrollTicker = null; 528 } 529 scrollTicker = window.setTimeout(function() { 530 scrollClosest(); 531 }, 300); 532 }); 533 $(window).bind('scroll mousedown wheel DOMMouseScroll mousewheel keyup', function(e) { 534 if (e.which > 0 || e.type == "mousedown" || e.type == "mousewheel") { 535 $("html,body").stop(); 536 scrollReady = true; 537 } 538 }) 539 resizer(); 540 window.setTimeout(resizer, 800); 541}); 542window.onresize = resizer;
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.