Maak een afspraak in één van onze kijkwoningen

var onloadCallback_3fa = function () { var windowwidth = window.innerWidth; if (windowwidth < 520) { grecaptcha.render('html_element_@(recaptchaId)', { 'size': 'compact', 'sitekey': '6LczI5IbAAAAAJcIv3jusS9h2E4L1CFa4qc6QgiF', 'theme': 'light' }); } else { grecaptcha.render('html_element_3fa', { 'size': 'normal', 'sitekey': '6LczI5IbAAAAAJcIv3jusS9h2E4L1CFa4qc6QgiF', 'theme': 'light' }); } }; let recaptcha_3fa = null let parent_3fa = null let oldWidth__3fa = null function loadCaptcha() { recaptcha_3fa = document.getElementById("html_element_3fa"); parent_3fa = recaptcha_3fa.parentNode; oldWidth = window.innerWidth; } function resizeCaptcha() { var width = window.innerWidth; if (width <= 520 && oldWidth_3fa > 520) { parent_3fa.removeChild(recaptcha_3fa); let html_element = document.createElement('div'); html_element.id = "html_element_3fa"; parent_3fa.appendChild(html_element); recaptcha_3fa = html_element; grecaptcha.render('html_element_3fa', { 'size': 'compact', 'sitekey': '6LczI5IbAAAAAJcIv3jusS9h2E4L1CFa4qc6QgiF', 'theme': 'light' }); } else if (width > 520 && oldWidth_3fa <= 520) { parent_3fa.removeChild(recaptcha_3fa); let html_element = document.createElement('div'); html_element.id = "html_element_3fa"; parent_3fa.appendChild(html_element); recaptcha_3fa = html_element; grecaptcha.render('html_element_3fa', { 'size': 'normal', 'sitekey': '6LczI5IbAAAAAJcIv3jusS9h2E4L1CFa4qc6QgiF', 'theme': 'light' }); } oldWidth_3fa = width; } window.addEventListener('DOMContentLoaded', loadCaptcha); window.addEventListener('resize', resizeCaptcha);