PageSourceSearch

https://treffer.immo/wp-content/cache/min/1/wp-content/plugins/ono…/estate/js/detailview.js?ver=1790779285

js treffer.immo collected 2026-10-09 22:11:01 UTC 3,362 bytes, 14 lines download raw bytes

1const toContact=document.querySelectorAll('.toContact');function scrollToElement(id){const element=document.querySelector(id);if(element){let scrollElementPosition=getOffsetTop(element);window.scrollTo({top:scrollElementPosition,behavior:'smooth'})}}
2const getOffsetTop=element=>{let offsetTop=0;while(element){offsetTop+=element.offsetTop;element=element.offsetParent}
3return offsetTop-100}
4toContact.forEach(node=>{node.addEventListener('click',function(){const container=document.querySelector('#ExposeContact');container.style.animation='none';setTimeout(()=>{container.style.animation='vibrate 3s ease, border 3s ease'},50);scrollToElement('#ExposeContact');const googlebadge=document.querySelector('.grecaptcha-badge');if(googlebadge){googlebadge.style.display='none';setTimeout(()=>{container.style.animation='';googlebadge.style.display='block'},2000)}})});const trigger=document.querySelectorAll(".columnFloorPlans");const lightbox=document.querySelector("#lightbox");const lightboxImage=document.querySelector("#lightbox-image");const prev=document.querySelector("#prev");const next=document.querySelector("#next");const close=document.querySelector("#close");const lightboxTitle=document.querySelector("#lightbox-title");const sources=document.querySelectorAll("#lightbox-estateimages img");let currentImage=0;if(close){close.addEventListener("click",function(){lightbox.style.display="none"})}
5if(trigger){trigger.forEach((item,index)=>{item.addEventListener("click",function(){currentImage=index;lightboxImage.src=sources[currentImage].dataset&&sources[currentImage].dataset.lazySrc?sources[currentImage].dataset.lazySrc:sources[currentImage].src;lightboxImage.dataset.lazySrc=sources[currentImage].dataset&&sources[currentImage].dataset.lazySrc?sources[currentImage].dataset.lazySrc:sources[currentImage].src;lightboxTitle.innerText=sources[currentImage].getAttribute("data-title");lightbox.style.display="block";document.body.classList.add('fullScreenLightBox')}
5)})}
6function toggleLightbox(){lightbox.style.display="none";document.body.classList.remove('fullScreenLightBox')}
7function prevImage(){currentImage--;if(currentImage<0){currentImage=sources.length-1}
8lightboxImage.src=sources[currentImage].dataset&&sources[currentImage].dataset.lazySrc?sources[currentImage].dataset.lazySrc:sources[currentImage].src;lightboxImage.dataset.lazySrc=sources[currentImage].dataset&&sources[currentImage].dataset.lazySrc?sources[currentImage].dataset.lazySrc:sources[currentImage].src;lightboxTitle.innerText=sources[currentImage].getAttribute("data-title")}
9function nextImage(){currentImage++;if(currentImage>=sources.length){currentImage=0}
10lightboxImage.src=sources[currentImage].dataset&&sources[currentImage].dataset.lazySrc?sources[currentImage].dataset.lazySrc:sources[currentImage].src;lightboxImage.dataset.lazySrc=sources[currentImage].dataset&&sources[currentImage].dataset.lazySrc?sources[currentImage].dataset.lazySrc:sources[currentImage].src;lightboxTitle.innerText=sources[currentImage].getAttribute("data-title")}
11if(prev){prev.addEventListener('click',prevImage)}
12if(next){next.addEventListener('click',nextImage)}
13if(close){close.addEventListener('click',toggleLightbox)}
14document.addEventListener('keydown',e=>{if(e.key==='Escape'){toggleLightbox()}else if(e.key==='ArrowLeft'){prevImage()}else if(e.key==='ArrowRight'){nextImage()}})

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.