https://www.novacura-zahnaerzte.de/site/assets/pwpc/pwpc-716ae5eb52c2a96b0288c8cc8c5bfbc9c63ddadd.js
1var Support=Support||{};Support={classes:{body:[],html:[]},init:function(){var me=this;document.addEventListener('DOMContentLoaded',me.onReady(event));document.addEventListener('load',me.onLoad(event))},onReady:function(event){var me=this;me.svg();me.touch();me.browser()},onLoad:function(event){var me=this},addClasses:function(scope){var me=this;for(i=0;i<me.classes[scope].length;i++){document.getElementsByTagName(scope)[0].classList.add(me.classes[scope][i])}},svg:function(){var me=this;if(typeof SVGRect!=='undefined'){me.classes.html.push('svg')} 2else{me.classes.html.push('no--svg')}},browser:function(){var me=this;var isOpera=(!!window.opr&&!!opr.addons)||!!window.opera||navigator.userAgent.indexOf(' OPR/')>=0;if(isOpera){me.classes.html.push('is--opera')} 3var isFirefox=typeof InstallTrigger!=='undefined';if(isFirefox){me.classes.html.push('is--firefox')} 4var isSafari=/constructor/i.test(window.HTMLElement)||(function(p){return p.toString()==="[object SafariRemoteNotification]"})(!window.safari||(typeof safari!=='undefined'&&safari.pushNotification));if(isSafari){me.classes.html.push('is--safari')} 5var isIE=!1||!!document.documentMode;if(isIE){me.classes.html.push('is--ie')} 6var isEdge=!isIE&&!!window.StyleMedia;if(isEdge){me.classes.html.push('is--edge')} 7var isChrome=!!window.chrome&&!!window.chrome.webstore;if(isChrome){me.classes.html.push('is--chrome')} 8var isBlink=(isChrome||isOpera)&&!!window.CSS;if(isBlink){me.classes.html.push('is--blink')}},touch:function(){var me=this;var isTouchDevice=function(){return 'ontouchstart' in document.documentElement};if(isTouchDevice()){me.classes.html.push('touch')}else{me.classes.html.push('no--touch')}}};Support.init();Support.addClasses('html');Support.addClasses('body');(function(root,factory){'use strict';if(typeof define==='function'&&define.amd){define(factory)}else if(typeof exports==='object'){module.exports=factory()}else{root.baguetteBox=factory()}}(this,function(){'use strict';var leftArrow='<svg width="44" height="60">'+'<polyline points="30 10 10 30 30 50" stroke="rgba(255,255,255,1)" stroke-width="4"'+'stroke-linecap="butt" fill="none" stroke-linejoin="round"/>'+'</svg>',rightArrow='<svg width="44" height="60">'+'<polyline points="14 10 34 30 14 50" stroke="rgba(255,255,255,1)" stroke-width="4"'+'stroke-linecap="butt" fill="none" stroke-linejoin="round"/>'+'</svg>',closeX='<svg width="30" height="30">'+'<g stroke="rgb(255,255,255)" stroke-width="4">'+'<line x1="5" y1="5" x2="25" y2="25"/>'+'<line x1="5" y1="25" x2="25" y2="5"/>'+'</g></svg>';var options={},defaults={captions:!0,buttons:'auto',fullScreen:!1,noScrollbars:!1,bodyClass:'baguetteBox-open',titleTag:!1,async:!1,preload:2,animation:'slideIn',afterShow:null,afterHide:null,onChange:null,overlayBackgroundColor:'rgba(0,0,0,.8)'};var supports={};var overlay,slider,previousButton,nextButton,closeButton;var currentGallery=[];var currentIndex=0;var touch={};var touchFlag=!1;var regex=/.+\.(gif|jpe?g|png|webp)/i;var data={};var imagesElements=[];var documentLastFocus=null;var overlayClickHandler=function(event){if(event.target.id.indexOf('baguette-img')!==-1){hideOverlay()}};var previousButtonClickHandler=function(event){event.stopPropagation?event.stopPropagation():event.cancelBubble=!0;showPreviousImage()};var nextButtonClickHandler=function(event){event.stopPropagation?event.stopPropagation():event.cancelBubble=!0;showNextImage()};var closeButtonClickHandler=function(event){event.stopPropagation?event.stopPropagation():event.cancelBubble=!0;hideOverlay()};var touchstartHandler=function(event){touch.count++;if(touch.count>1){touch.multitouch=!0} 9touch.startX=event.changedTouches[0].pageX;touch.startY=event.changedTouches[0].pageY};var touchmoveHandler=function(event){if(touchFlag||touch.multitouch){return} 10event.preventDefault?event.preventDefault():event.returnValue=!1;var touchEvent=event.touches[0]||event.changedTouches[0];if(touchEvent.pageX-touch.startX>40){touchFlag=!0;showPreviousImage()}else if(touchEvent.pageX-touch.startX<-40){touchFlag=!0;showNextImage()}else if(touch.startY-touchEvent.pageY>100){hideOverlay()}};var touchendHandler=function(){touch.count--;if(touch.count<=0){touch.multitouch=!1} 11touchFlag=!1};var contextmenuHandler=function(){touchendHandler()};var trapFocusInsideOverlay=function(event){if(overlay.style.display==='block'&&(overlay.contains&&!overlay.contains(event.target))){event.stopPropagation();initFocus()}};if(![].forEach){Array.prototype.forEach=function(callback,thisArg){for(var i=0;i<this.length;i++){callback.call(thisArg,this[i],i,this)}}} 12if(![].filter){Array.prototype.filter=function(a,b,c,d,e){c=this;d=[];for(e=0;e<c.length;e++) 13a.call(b,c[e],e,c)&&d.push(c[e]);return d}} 14function run(selector,userOptions){supports.transforms=testTransformsSupport();supports.svg=testSVGSupport();buildOverlay();removeFromCache(selector);bindImageClickListeners(selector,userOptions)} 15function bindImageClickListeners(selector,userOptions){var galleryNodeList=document.querySelectorAll(selector);var selectorData={galleries:[],nodeList:galleryNodeList};data[selector]=selectorData;[].forEach.call(galleryNodeList,function(galleryElement){if(userOptions&&userOptions.filter){regex=userOptions.filter} 16var tagsNodeList=[];
16if(galleryElement.tagName==='A'){tagsNodeList=[galleryElement]}else{tagsNodeList=galleryElement.getElementsByTagName('a')} 17tagsNodeList=[].filter.call(tagsNodeList,function(element){if(element.className.indexOf(userOptions&&userOptions.ignoreClass)===-1){return regex.test(element.href)}});if(tagsNodeList.length===0){return} 18var gallery=[];[].forEach.call(tagsNodeList,function(imageElement,imageIndex){var imageElementClickHandler=function(event){event.preventDefault?event.preventDefault():event.returnValue=!1;prepareOverlay(gallery,userOptions);showOverlay(imageIndex)};var imageItem={eventHandler:imageElementClickHandler,imageElement:imageElement};bind(imageElement,'click',imageElementClickHandler);gallery.push(imageItem)});selectorData.galleries.push(gallery)})} 19function clearCachedData(){for(var selector in data){if(data.hasOwnProperty(selector)){removeFromCache(selector)}}} 20function removeFromCache(selector){if(!data.hasOwnProperty(selector)){return} 21var galleries=data[selector].galleries;[].forEach.call(galleries,function(gallery){[].forEach.call(gallery,function(imageItem){unbind(imageItem.imageElement,'click',imageItem.eventHandler)});if(currentGallery===gallery){currentGallery=[]}});delete data[selector]} 22function buildOverlay(){overlay=getByID('baguetteBox-overlay');if(overlay){slider=getByID('baguetteBox-slider');previousButton=getByID('previous-button');nextButton=getByID('next-button');closeButton=getByID('close-button');return} 23overlay=create('div');overlay.setAttribute('role','dialog');overlay.id='baguetteBox-overlay';document.getElementsByTagName('body')[0].appendChild(overlay);slider=create('div');slider.id='baguetteBox-slider';overlay.appendChild(slider);previousButton=create('button');previousButton.setAttribute('type','button');previousButton.id='previous-button';previousButton.setAttribute('aria-label','Previous');previousButton.innerHTML=supports.svg?leftArrow:'<';overlay.appendChild(previousButton);nextButton=create('button');nextButton.setAttribute('type','button');nextButton.id='next-button';nextButton.setAttribute('aria-label','Next');nextButton.innerHTML=supports.svg?rightArrow:'>';overlay.appendChild(nextButton);closeButton=create('button');closeButton.setAttribute('type','button');closeButton.id='close-button';closeButton.setAttribute('aria-label','Close');closeButton.innerHTML=supports.svg?closeX:'×';overlay.appendChild(closeButton);previousButton.className=nextButton.className=closeButton.className='baguetteBox-button';bindEvents()} 24function keyDownHandler(event){switch(event.keyCode){case 37:showPreviousImage();break;case 39:showNextImage();break;case 27:hideOverlay();break}} 25function bindEvents(){bind(overlay,'click',overlayClickHandler);bind(previousButton,'click',previousButtonClickHandler);bind(nextButton,'click',nextButtonClickHandler);bind(closeButton,'click',closeButtonClickHandler);bind(slider,'contextmenu',contextmenuHandler);bind(overlay,'touchstart',touchstartHandler);bind(overlay,'touchmove',touchmoveHandler);bind(overlay,'touchend',touchendHandler);
25bind(document,'focus',trapFocusInsideOverlay,!0)} 26function unbindEvents(){unbind(overlay,'click',overlayClickHandler);unbind(previousButton,'click',previousButtonClickHandler);unbind(nextButton,'click',nextButtonClickHandler);unbind(closeButton,'click',closeButtonClickHandler);unbind(slider,'contextmenu',contextmenuHandler);unbind(overlay,'touchstart',touchstartHandler);unbind(overlay,'touchmove',touchmoveHandler);unbind(overlay,'touchend',touchendHandler);unbind(document,'focus',trapFocusInsideOverlay,!0)} 27function prepareOverlay(gallery,userOptions){if(currentGallery===gallery){return} 28currentGallery=gallery;setOptions(userOptions);while(slider.firstChild){slider.removeChild(slider.firstChild)} 29imagesElements.length=0;var imagesFiguresIds=[];var imagesCaptionsIds=[];for(var i=0,fullImage;i<gallery.length;i++){fullImage=create('div');fullImage.className='full-image';fullImage.id='baguette-img-'+i;imagesElements.push(fullImage);imagesFiguresIds.push('baguetteBox-figure-'+i);imagesCaptionsIds.push('baguetteBox-figcaption-'+i);slider.appendChild(imagesElements[i])} 30overlay.setAttribute('aria-labelledby',imagesFiguresIds.join(' '));overlay.setAttribute('aria-describedby',imagesCaptionsIds.join(' '))} 31function setOptions(newOptions){if(!newOptions){newOptions={}} 32for(var item in defaults){options[item]=defaults[item];if(typeof newOptions[item]!=='undefined'){options[item]=newOptions[item]}} 33slider.style.transition=slider.style.webkitTransition=(options.animation==='fadeIn'?'opacity .4s ease':options.animation==='slideIn'?'':'none');if(options.buttons==='auto'&&('ontouchstart' in window||currentGallery.length===1)){options.buttons=!1} 34previousButton.style.display=nextButton.style.display=(options.buttons?'':'none');try{overlay.style.backgroundColor=options.overlayBackgroundColor}catch(e){}} 35function showOverlay(chosenImageIndex){if(options.noScrollbars){document.documentElement.style.overflowY='hidden';document.body.style.overflowY='scroll'} 36if(overlay.style.display==='block'){return} 37bind(document,'keydown',keyDownHandler);currentIndex=chosenImageIndex;touch={count:0,startX:null,startY:null};loadImage(currentIndex,function(){preloadNext(currentIndex);preloadPrev(currentIndex)});updateOffset();overlay.style.display='block';if(options.fullScreen){enterFullScreen()} 38setTimeout(function(){overlay.className='visible';if(options.bodyClass&&document.body.classList){document.body.classList.add(options.bodyClass)} 39if(options.afterShow){options.afterShow()}},50);if(options.onChange){options.onChange(currentIndex,imagesElements.length)} 40documentLastFocus=document.activeElement;initFocus()} 41function initFocus(){if(options.buttons){previousButton.focus()}else{closeButton.focus()}} 42function enterFullScreen(){if(overlay.requestFullscreen){overlay.requestFullscreen()}else if(overlay.webkitRequestFullscreen){overlay.webkitRequestFullscreen()}else if(overlay.mozRequestFullScreen){overlay.mozRequestFullScreen()}} 43function exitFullscreen(){if(document.exitFullscreen){document.exitFullscreen()}else if(document.mozCancelFullScreen){document.mozCancelFullScreen()}else if(document.webkitExitFullscreen){document.webkitExitFullscreen()}} 44function hideOverlay(){if(options.noScrollbars){document.documentElement.style.overflowY='auto';document.body.style.overflowY='auto'} 45if(overlay.style.display==='none'){return} 46unbind(document,'keydown',keyDownHandler);overlay.className='';setTimeout(function(){overlay.style.display='none';exitFullscreen();if(options.bodyClass&&document.body.classList){document.body.classList.remove(options.bodyClass)} 47if(options.afterHide){options.afterHide()} 48documentLastFocus&&documentLastFocus.focus()},500)} 49function loadImage(index,callback){var imageContainer=imagesElements[index];var galleryItem=currentGallery[index];if(typeof imageContainer==='undefined'||typeof galleryItem==='undefined'){return} 50if(imageContainer.getElementsByTagName('img')[0]){if(callback){callback()} 51return} 52var imageElement=galleryItem.imageElement;var thumbnailElement=imageElement.getElementsByTagName('img')[0];var imageCaption=typeof options.captions==='function'?options.captions.call(currentGallery,imageElement):imageElement.getAttribute('data-caption')||imageElement.title;var imageSrc=getImageSrc(imageElement);var figure=create('figure');figure.id='baguetteBox-figure-'+index;figure.innerHTML='<div class="baguetteBox-spinner">'+'<div class="baguetteBox-double-bounce1"></div>'+'<div class="baguetteBox-double-bounce2"></div>'+'</div>';if(options.captions&&imageCaption){var figcaption=create('figcaption');figcaption.id='baguetteBox-figcaption-'+index;figcaption.innerHTML=imageCaption;figure.appendChild(figcaption)} 53imageContainer.appendChild(figure);var image=create('img');image.onload=function(){var spinner=document.querySelector('#baguette-img-'+index+' .baguetteBox-spinner');figure.removeChild(spinner);
53if(!options.async&&callback){callback()}};image.setAttribute('src',imageSrc);image.alt=thumbnailElement?thumbnailElement.alt||'':'';if(options.titleTag&&imageCaption){image.title=imageCaption} 54figure.appendChild(image);if(options.async&&callback){callback()}} 55function getImageSrc(image){var result=image.href;if(image.dataset){var srcs=[];for(var item in image.dataset){if(item.substring(0,3)==='at-'&&!isNaN(item.substring(3))){srcs[item.replace('at-','')]=image.dataset[item]}} 56var keys=Object.keys(srcs).sort(function(a,b){return parseInt(a,10)<parseInt(b,10)?-1:1});var width=window.innerWidth*window.devicePixelRatio;var i=0;while(i<keys.length-1&&keys[i]<width){i++} 57result=srcs[keys[i]]||result} 58return result} 59function showNextImage(){var returnValue;if(currentIndex<=imagesElements.length-2){currentIndex++;updateOffset();preloadNext(currentIndex);returnValue=!0}else if(options.animation){slider.className='bounce-from-right';setTimeout(function(){slider.className=''},400);returnValue=!1} 60if(options.onChange){options.onChange(currentIndex,imagesElements.length)} 61return returnValue} 62function showPreviousImage(){var returnValue;if(currentIndex>=1){currentIndex--;updateOffset();preloadPrev(currentIndex);returnValue=!0}else if(options.animation){slider.className='bounce-from-left';setTimeout(function(){slider.className=''},400);returnValue=!1} 63if(options.onChange){options.onChange(currentIndex,imagesElements.length)} 64return returnValue} 65function updateOffset(){var offset=-currentIndex*100+'%';if(options.animation==='fadeIn'){slider.style.opacity=0;setTimeout(function(){supports.transforms?slider.style.transform=slider.style.webkitTransform='translate3d('+offset+',0,0)':slider.style.left=offset;slider.style.opacity=1},400)}else{supports.transforms?slider.style.transform=slider.style.webkitTransform='translate3d('+offset+',0,0)':slider.style.left=offset}} 66function testTransformsSupport(){var div=create('div');return typeof div.style.perspective!=='undefined'||typeof div.style.webkitPerspective!=='undefined'} 67function testSVGSupport(){var div=create('div');div.innerHTML='<svg/>';return(div.firstChild&&div.firstChild.namespaceURI)==='http://www.w3.org/2000/svg'} 68function preloadNext(index){if(index-currentIndex>=options.preload){return} 69loadImage(index+1,function(){preloadNext(index+1)})} 70function preloadPrev(index){if(currentIndex-index>=options.preload){return} 71loadImage(index-1,function(){preloadPrev(index-1)})} 72function bind(element,event,callback,useCapture){if(element.addEventListener){element.addEventListener(event,callback,useCapture)}else{element.attachEvent('on'+event,function(event){event=event||window.event;event.target=event.target||event.srcElement;callback(event)})}} 73function unbind(element,event,callback,useCapture){if(element.removeEventListener){element.removeEventListener(event,callback,useCapture)}else{element.detachEvent('on'+event,callback)}} 74function getByID(id){return document.getElementById(id)} 75function create(element){return document.createElement(element)} 76function destroyPlugin(){unbindEvents();clearCachedData();unbind(document,'keydown',keyDownHandler);document.getElementsByTagName('body')[0].removeChild(document.getElementById('baguetteBox-overlay'));data={};currentGallery=[];currentIndex=0} 77return{run:run,showNext:showNextImage,showPrevious:showPreviousImage,destroy:destroyPlugin}}));var $conversionTelLinks=document.querySelectorAll('[href^="tel:"]');if($conversionTelLinks){for(var i=0;i<$conversionTelLinks.length;i++){$conversionTelLinks[i].addEventListener('click',function(e){gtag('event','Klick',{'event_category':'Textlink','event_label':'Anruf'});fbq('trackCustom','Telefonnummer angeklickt')})}} 78var $conversionMailLinks=document.querySelectorAll('[href^="mailto:"]');if($conversionMailLinks){for(var i=0;i<$conversionMailLinks.length;i++){$conversionMailLinks[i].addEventListener('click',function(e){gtag('event','Klick',{'event_category':'Textlink','event_label':'E-Mail'});fbq('trackCustom','EMail-Adresse angeklickt')})}} 79var $conversionFormLinks=document.querySelectorAll('[href*="maps.google.com"]');if($conversionFormLinks){for(var i=0;i<$conversionFormLinks.length;i++){$conversionFormLinks[i].addEventListener('click',function(e){gtag('event','Klick',{'event_category':'Textlink','event_label':'GoogleMaps'});fbq('trackCustom','GoogleMaps aufgerufen')})}} 80var $conversionFormLinks=document.querySelectorAll('[href*="/kontakt/"]');if($conversionFormLinks){for(var i=0;i<$conversionFormLinks.length;i++){$conversionFormLinks[i].addEventListener('click',function(e){gtag('event','Klick',{'event_category':'Textlink','event_label':'Kontaktformular'});fbq('trackCustom','Kontaktformular aufgerufen')})}} 81var $conversionAppointmentLinks=document.querySelectorAll('[href*="termin.dampsoft.net"]');if($conversionAppointmentLinks){for(var i=0;i<$conversionAppointmentLinks.length;i++){$conversionAppointmentLinks[i].addEventListener('click',function(e){gtag('event','Klick',{'event_category':'Textlink','event_label':'Terminvereinbarung'});fbq('trackCustom','Terminvereinbarung angeklickt');var $html=document.getElementsByTagName('html')[0];var $isOverlay=$html.classList.contains('no--touch');var $url=this.getAttribute('href');if($isOverlay){window.open($url,"appointmentWindow",'width=800,height=600');return !1}else{window.open($url,'_blank')} 82return !1})}};baguetteBox.run('.gallery');baguetteBox.run('.slider--items.has--lightbox');baguetteBox.run('.text--image.has--lightbox');var $scrollPosition=window.scrollY;
82var $navigationInitialHeight=60;let windowWidth=document.body.clientWidth;window.addEventListener('resize',function(e){if(windowWidth===document.body.clientWidth){return} 83document.querySelectorAll('.main-navigation--list-wrapper[style]').forEach(function(el){el.style=''})});document.addEventListener('click',function(e){if(!isMobileViewport()){return} 84const matchesLink=e.target.matches('.main-navigation--link.has--children');if(matchesLink&&e.target.getAttribute('href')==='#'){e.preventDefault();e.target.parentElement.querySelector('.main-navigation--list-wrapper').slideToggle();return !1} 85const matchesToggleIcon=e.target.matches('.main-navigation--link .toggle-arrow');if(matchesToggleIcon){e.preventDefault();e.target.parentElement.parentElement.querySelector('.main-navigation--list-wrapper').slideToggle();return !1}});function isMobileViewport(){return document.querySelector('.navigation-toggle--close').getClientRects().length!==0} 86var $forms=document.querySelectorAll('form');for(var i=0;i<$forms.length;i++){$forms[i].addEventListener('submit',function(e){var $fields=this.querySelectorAll('.field--required');for(var j=0;j<$fields.length;j++){if($fields[j].value==''){e.preventDefault();alert('Bitte füllen Sie alle Pflichtfelder aus.');return !1}}})} 87var $sliderSelector='.is--slider';var $slider=document.querySelectorAll($sliderSelector);var $isIE=!1||!!document.documentMode;if(($slider.length>0)&&(!$isIE)){for(var i=0;i<$slider.length;i++){if($slider[i].id){if($slider[i].classList.contains('references--wrapper')){var slider=tns({container:'#'+$slider[i].id,items:$slider[i].length,slideBy:'page',autoplay:!0,autoplayButtonOutput:!1,controls:!1,navContainer:'.for--'+$slider[i].id})} 88if($slider[i].classList.contains('header--images')){var slider=tns({container:'#'+$slider[i].id,items:$slider[i].length,slideBy:'page',autoplay:!0,autoHeight:!1,autoplayButtonOutput:!1,controls:!1,mouseDrag:!0,nav:!1,speed:2000,autoplayTimeout:8000,mode:'gallery'})} 89if($slider[i].classList.contains('slider--items')){var slider=tns({container:'#'+$slider[i].id,items:$slider[i].length,slideBy:'page',autoplay:!0,autoplayButtonOutput:!1,controls:!0,nav:!1,speed:2000,autoplayTimeout:8000,mode:'gallery'})} 90if($slider[i].classList.contains('content-slider--wrapper')||$slider[i].classList.contains('doctor-slider--wrapper')){var slider=tns({container:'#'+$slider[i].id,items:1,slideBy:'page',autoplay:!1,autoplayButtonOutput:!1,controls:!0,mouseDrag:!0,speed:2000,autoplayTimeout:8000,nav:!1})}}}} 91var setTeamHeight=function(){var $teamListSelector='.is--team-big .team--list';var $teamTextSelector='.team--text';var $teamNameSelector='.team--name-position';var $teamLists=document.querySelectorAll($teamListSelector);if($teamLists){for(var i=0;i<$teamLists.length;i++){var $teamTexts=$teamLists[i].querySelectorAll($teamTextSelector);var $teamNames=$teamLists[i].querySelectorAll($teamNameSelector);var $maxHeightTexts=0;var $maxHeightNames=0;var $textHeightsDifferent=!1;var $nameHeightsDifferent=!1;if($teamTexts){for(var j=0;j<$teamTexts.length;j++){$teamTexts[j].style.height='auto';if(($maxHeightTexts>0)&&($teamTexts[j].offsetHeight!=$maxHeightTexts)){$textHeightsDifferent=!0} 92$maxHeightTexts=($teamTexts[j].offsetHeight>$maxHeightTexts)?$teamTexts[j].offsetHeight:$maxHeightTexts}} 93if($teamNames){for(var j=0;j<$teamNames.length;j++){$teamNames[j].style.height='auto';if(($maxHeightNames>0)&&($teamNames[j].offsetHeight!=$maxHeightNames)){$nameHeightsDifferent=!0} 94$maxHeightNames=($teamNames[j].offsetHeight>$maxHeightNames)?$teamNames[j].offsetHeight:$maxHeightNames}} 95if(($maxHeightTexts>0)&&($textHeightsDifferent)){for(var j=0;j<$teamTexts.length;j++){$teamTexts[j].style.height=$maxHeightTexts+'px'}} 96if(($maxHeightNames>0)&&($nameHeightsDifferent)){for(var j=0;j<$teamNames.length;j++){$teamNames[j].style.height=$maxHeightNames+'px'}}}}} 97var $ajaxForms=document.querySelectorAll('.is--ajax-form');if($ajaxForms){for(var i=0;i<$ajaxForms.length;i++){$ajaxForms[i].addEventListener('submit',function(e){e.preventDefault();var $form=this;var $action=$form.getAttribute('action');var $email=this.email.value;var $email2=this.email2.value;$form.classList.add('is--loading');var xhr=new XMLHttpRequest();xhr.open("POST",$action,!0);xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xhr.setRequestHeader('X-Requested-With','XMLHttpRequest');xhr.onreadystatechange=function(){var DONE=4;var OK=200;if(xhr.readyState===DONE){if(xhr.status===OK){$form.classList.remove('is--loading');var $popup=document.querySelector('#popup');var $popupHeadline=$popup.querySelector('.popup--headline');var $popupText=$popup.querySelector('.popup--text');var $response=JSON.parse(xhr.responseText);var $feedback=$response.feedback;var $msg=$response.msg;if($feedback=='success'){$popupHeadline.innerHTML='Super!';$form.querySelector('[name="email"]').value=''}else if($feedback=='error'){$popupHeadline.innerHTML='Fehler'} 98$popupText.innerHTML=$msg;window.location.hash='popup'}}};xhr.send('email='+$email+'&email2='+$email2);return !1})}} 99if(document.querySelector("#file--input")){var $fileContainer=document.querySelector("#file--input");function createContainer(){while(document.querySelectorAll(".selected--file").length>0){var $children=document.querySelectorAll(".selected--file");document.querySelector(".upload--container").removeChild($children[0])} 100for(var i=0;i<$fileContainer.files.length;i++){var $div=document.createElement("div");var $value=$fileContainer.files[i].name;$div.classList.add('selected--file');$div.innerHTML=$value;document.querySelector(".upload--container").appendChild($div)}} 101function checkInput(){if($fileContainer.files.length===0&&document.querySelectorAll(".selected--file").length>0){var $divs=document.querySelectorAll(".selected--file");for(var i=0;i<$divs.length;i++){document.querySelector(".label--upload").removeChild($divs[i])}} 102else if($fileContainer.files.length!==0&&document.querySelectorAll(".selected--file").length===0){for(var i=0;i<$fileContainer.files.length;i++){var $div=document.createElement("div");var $value=$fileContainer.files[i].name;$div.classList.add('selected--file');$div.innerHTML=$value;document.querySelector(".upload--container").appendChild($div)}}} 103checkInput();$fileContainer.addEventListener('input',createContainer);$fileContainer.addEventListener('change',checkInput)}(function(){window.addEventListener('resize',function(){document.querySelectorAll('[data-sli
103de-height]').forEach(function(el){el.dataset.slideHeight=''})});HTMLElement.prototype.slideToggle=function(){if(this.clientHeight===0){_s(this,!0)}else{_s(this)}};HTMLElement.prototype.slideUp=function(){_s(this)};HTMLElement.prototype.slideDown=function(){_s(this,!0)};function _s(el,isDown){if(typeof isDown==='undefined'){isDown=!1} 104if(!el.dataset.slideHeight){el.style.transition="none";el.style.overflow="hidden";el.style.display="block";el.style.height="auto";el.dataset.slideHeight=el.getBoundingClientRect().height;el.style.display='';el.style.height='';el.style.transition=''} 105function toggle(){el.removeEventListener('transitionend',openFinish);if(isDown){el.addEventListener('transitionend',openFinish,{once:!0});el.style.height=el.dataset.slideHeight+"px"}else{el.style.height=el.dataset.slideHeight+"px";window.requestAnimationFrame(function(){el.style.height=0+"px"})}} 106function openFinish(){if(el.style.height!=='0px'&&el.style.height!==''){el.style.height='auto'}} 107setTimeout(()=>{window.requestAnimationFrame(toggle)},10)} 108const add_class_on_scroll=()=>{document.querySelector('body').classList.add("visual-effect-scroll")} 109const remove_class_on_scroll=()=>{document.querySelector('body').classList.remove("visual-effect-scroll")} 110const checkHeaderPosition=()=>{if(document.body.scrollTop>20||document.documentElement.scrollTop>20){add_class_on_scroll()}else{remove_class_on_scroll()}} 111checkHeaderPosition();window.addEventListener('scroll',checkHeaderPosition)})();window.addEventListener("load",()=>{const checkJamedaWidget=()=>{const widgets=document.querySelectorAll('.jameda-widget');let clone=null;widgets.forEach((widget,index)=>{const isLoaded=widget.querySelector('span');if(isLoaded){clone=widget}}) 112if(clone!==null){widgets.forEach((widget,index)=>{const replaceTo=clone.cloneNode(!0);replaceTo.id=`${replaceTo.id}-elem-${index}`;widget.replaceWith(replaceTo)}) 113stopCheckingJamedaWidget()}} 114const stopCheckingJamedaWidget=()=>{clearInterval(jamedaInterval)} 115const jamedaInterval=setInterval(checkJamedaWidget,500)})
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.