PageSourceSearch

https://lybrae.nl/wp-content/cache/min/1/wp-content/themes/lybrae/js/site.js?ver=1788429227

js lybrae.nl collected 2026-10-06 13:17:56 UTC 8,391 bytes, 29 lines download raw bytes

1jQuery(function($){const header=document.querySelector("header");window.addEventListener("scroll",function(){if(window.scrollY>50){header.classList.add("sticky")}else{header.classList.remove("sticky")}});window.slinky=$("#mobile-menu").slinky({title:!0,header:!0,});$("button.navbar-toggler").on("click",function(e){e.preventDefault();e.stopImmediatePropagation();$(".mobile-nav").toggleClass("show");$("body").toggleClass("locked")});$(".contact-widget").each(function(e){window.slinky=$(this).slinky({title:!0,header:!0,})});$("body").on("click",".vacature-item, .actueel-item",function(e){window.location=$(this).find("a.btn").attr("href")});$("body").on("click",".opleiding-item",function(e){window.location=$(this).find("a.btn").attr("href")});function getCookie(cname){var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" "){c=c.substring(1)}
2if(c.indexOf(name)==0){return c.substring(name.length,c.length)}}
3return""}
4const notice=$(".site-notice");const notice_cookie_name="lybraeNoticeHidden";let notice_cookie_expire=new Date();notice_cookie_expire.setDate(notice_cookie_expire.getDate()+1);if(notice.length>0&&getCookie(notice_cookie_name)!=="true"){showNotice()}
5function showNotice(){notice.addClass("visible");if(typeof wpforms!=="undefined"&&typeof wpforms.load==="function"){wpforms.load(window.wpforms_settings||{})}}
6function removeNotice(){notice.removeClass("visible");notice.animate({opacity:0}
6,250).css({pointerEvents:"none"})}
7$("button#site-notice__close").on("click",function(e){e.preventDefault();document.cookie=notice_cookie_name+"=true; expires="+notice_cookie_expire.toUTCString()+"; path=/";removeNotice()})});const objectsToObserveOnce=document.querySelectorAll(".observe-once");const observerOnce=new IntersectionObserver((entries)=>{entries.forEach((entry)=>{if(entry.intersectionRatio>0){entry.target.classList.add("in-view");observerOnce.unobserve(entry.target)}})},{threshold:0.25,},);objectsToObserveOnce.forEach((object)=>{observerOnce.observe(object)});const objectsToObserve=document.querySelectorAll(".observe");const observer=new IntersectionObserver((entries)=>{entries.forEach((entry)=>{if(entry.intersectionRatio>0){entry.target.classList.add("in-view")}else{entry.target.classList.remove("in-view")}})},{threshold:0.25,},);objectsToObserve.forEach((object)=>{observer.observe(object)});document.addEventListener("DOMContentLoaded",function(){if(document.body.classList.contains("lybrae-nextleaders")){const svgMarkup=`
8        <svg id="Layer_2" class="nextleaders-icon-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 514.75 683.7" style="translate: none; rotate: none; scale: none; transform: translate3d(0px, -74.3466px, 0px);">
9          <svg style="position: absolute" id="Layer_2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 514.75 683.7">
10            <defs>
11              <style>.cls-1{fill:#386eb5;stroke-width:0px;}</style>
12            </defs>
13            <g id="Laag_1">
14              <polygon class="cls-1" points="243.72 266.86 85.95 0 0 0 161.77 266.86 243.72 266.86"></polygon>
15              <polygon class="cls-1" points="352.81 266.86 514.75 0 432.74 0 274.08 266.86 352.81 266.86"></polygon>
16              <polygon class="cls-1" points="169.31 415.49 0 683.7 81.99 683.7 247.41 415.49 169.31 415.49"></polygon>
17              <polygon class="cls-1" points="266.18 415.49 428.79 683.7 514.75 683.7 347.21 415.49 266.18 415.49"></polygon>
18            </g>
19          </svg>
20        </svg>
21      `;document.body.insertAdjacentHTML("beforeend",svgMarkup)}
22function offsetAnchorScroll(){const headerOffset=200;const hash=window.location.hash;if(hash){const target=document.querySelector(hash);if(target){const elementPosition=target.getBoundingClientRect().top+window.pageYOffset;const offsetPosition=elementPosition-headerOffset;window.scrollTo({top:offsetPosition,behavior:"smooth"});window.addEventListener("scrollend",()=>{ScrollTrigger.refresh()},{once:!0},)}}}
23setTimeout(offsetAnchorScroll,10);const demoLinks=document.querySelectorAll('a[href="#aanvraagformulier"]');const callbackLinks=document.querySelectorAll('a[href="#callbackform"]');const brochureLinks=document.querySelectorAll('a[href="#brochureform"]');for(const link of demoLinks){link.addEventListener("click",function(event){event.preventDefault();const modal=bootstrap.Modal.getOrCreateInstance(document.querySelector("#requestModal"));modal.show()})}
24for(const link of callbackLinks){link.addEventListener("click",function(event){event.preventDefault();const modal=bootstrap.Modal.getOrCreateInstance(document.querySelector("#callbackModal"));modal.show()})}
25for(const link of brochureLinks){link.addEventListener("click",function(event){event.preventDefault();const modal=bootstrap.Modal.getOrCreateInstance(document.querySelector("#brochureModal"));modal.show()})}});document.addEventListener("DOMContentLoaded",function(){const parentLinks=document.querySelectorAll(".menu-item-has-children > a");const siteHeader=document.getElementById("site-header");parentLinks.forEach((link)=>{link.addEventListener("click",function(e){const dropdownMenu=this.nextElementSibling;if(dropdownMenu&&dropdownMenu.classList.contains("dropdown-menu")){e.preventDefault();window.location.href=this.href}})});function updateHeaderStyle(){if(window.scrollY>0){siteHeader.classList.add("scrolled")}else{siteHeader.classList.remove("scrolled")}}
26updateHeaderStyle();window.addEventListener("scroll",updateHeaderStyle);window.addEventListener("resize",updateHeaderStyle);const banner=document.querySelector(".sidewide_banner");const closeButton=document.querySelector(".sidewide_banner_close");const header=document.querySelector("#site-header");const cookie=document.cookie.split(";").find((c)=>c.trim().startsWith("hide_sitewide_banner="));
26const urlParams=new URLSearchParams(window.location.search);const odnParam=urlParams.get("odn");if(!cookie||odnParam==="1"){banner.classList.remove("d-none")}
27renderBannerHeight();window.addEventListener("resize",renderBannerHeight);function renderBannerHeight(){if(!banner.classList.contains("d-none")){const bannerHeight=banner.offsetHeight;header.style.marginTop=`${bannerHeight}px`;document.body.style.paddingTop=`${bannerHeight - 1}px`}
28if(banner&&closeButton){closeButton.addEventListener("click",function(){const d=new Date();d.setTime(d.getTime()+24*60*60*1000);document.cookie="hide_sitewide_banner=true; expires="+d.toUTCString()+"; path=/; SameSite=Lax";banner.remove();header.style.marginTop="0";document.body.style.paddingTop="0"})}}});document.addEventListener("DOMContentLoaded",function(){const academyForm=document.getElementById("wpforms-3670579");if(!academyForm)return;const selectIds=[4,5,6,7,8,9,10,11];const targetContainer=document.getElementById("wpforms-3670579-field_13-container");if(!targetContainer)return;function checkOtherOption(){let show=!1;selectIds.forEach((id)=>{const select=document.getElementById(`wpforms-3670579-field_${id}`);if(select&&select.value==="999999"){show=!0}});targetContainer.style.display=show?"block":"none"}
29selectIds.forEach((id)=>{const select=document.getElementById(`wpforms-3670579-field_${id}`);if(select){select.addEventListener("change",checkOtherOption)}});checkOtherOption()});document.addEventListener("DOMContentLoaded",function(){jQuery("#wpforms-3670804").on("wpformsAjaxSubmitSuccess",function(e,response){const brochureUrl=window.brochureUrl;if(!brochureUrl)return;const link=document.createElement("a");link.href=brochureUrl;link.download="";document.body.appendChild(link);link.click();document.body.removeChild(link)})});document.addEventListener("DOMContentLoaded",function(){const body=document.body;if(body.classList.contains("page-template-page-traineeships")){const ghostkitAccordions=document.querySelectorAll(".ghostkit-accordion");if(ghostkitAccordions.length){const observer=new MutationObserver((mutations)=>{let shouldRefresh=!1;mutations.forEach((mutation)=>{if(mutation.type==="attributes"&&mutation.attributeName==="aria-expanded"){shouldRefresh=!0;console.log("Accordion state changed, refreshing ScrollTrigger...")}});if(shouldRefresh){gsap.delayedCall(0.3,()=>ScrollTrigger.refresh())}});ghostkitAccordions.forEach((accordion)=>{observer.observe(accordion,{subtree:!0,attributes:!0,attributeFilter:["aria-expanded"],})})}}})

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.