Uitvaart

 

 

 

http://<style> iframe { width: 1px; min-width: 100%; border: none; } </style> <div id=”ardantaIframePlaceholder”></div> <script type=”text/javascript”> if (!String.prototype.startsWith) { String.prototype.startsWith = function (search, pos) { return this.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search; }; } if (!String.prototype.includes) { String.prototype.includes = function (search, start) { ‘use strict’; if (typeof start !== ‘number’) { start = 0; } if (start + search.length > this.length) { return false; } else { return this.indexOf(search, start) !== -1; } }; } var iframeUrl = ‘https://funnel.ardanta.nl/asstabe-167703’; var ardantaIframePlaceholder = document.getElementById(‘ardantaIframePlaceholder’); var ardantaIframe = document.createElement(“iframe”); ardantaIframe.setAttribute(“scrolling”, “no”); ardantaIframe.setAttribute(“onload”, “window.top.scrollTo(0,0)”); ardantaIframe.id = “ardantaIframe”; ardantaIframe.style.height = 1400 + “px”; var stickyHeaderClassName = ‘sticky_header’; window.addEventListener(‘message’, function (event) { var method, top, option, cookieBar, animationTime; method = (typeof event.data.method != “undefined”) ? event.data.method : “”; top = (typeof event.data.arg !== “undefined”) ? event.data.arg : 0; option = (typeof event.data.option !== “undefined”) ? event.data.option : “”; animationTime = (typeof event.data.animationTime !== “undefined”) ? event.data.animationTime : 250; cookieBar = $(“#cookie-bar-ardanta”); if (method == ‘scrollTop’) { // add the offset of cookiebar when visible if (top > 0 && cookieBar.is(“:visible”)) { top += cookieBar.height() + cookieBar.offset().top; } switch (option) { // only scroll when the target top is smaller than the current top case “onlyScrollUp”: if (top >= $(window).scrollTop) { top = null; } break; } // check if we need to scroll if (top !== null && $(window).scrollTop !== top) { $(“html, body”).stop().animate({ scrollTop: top }, animationTime); } } }); if (window.addEventListener) { window.addEventListener(‘scroll’, scrolled, false); } else if (window.attachEvent) { window.attachEvent(‘onclick’, scrolled); } var urlParam = window.location.href; if (window.location.search.length) { urlParam = window.location.href.substr(0, window.location.href.indexOf(window.location.search)); } iframeUrl = iframeUrl + (iframeUrl.includes(“?”) ? “&” : “?”) + “url=” + encodeURIComponent(urlParam); var proxySearchItems = “”; var searchStr = window.location.search.substr(1); if (searchStr.length > 0) { var allSearchItems = window.location.search.substr(1).split(“&”); for (var i = 0; i < allSearchItems.length; i++) { var item = allSearchItems[i]; var kv = item.split(“=”);; var key = kv[0]; if (key.startsWith(“ard_”)) { proxySearchItems += “&” + item; } } } iframeUrl = iframeUrl + proxySearchItems; ardantaIframe.src = iframeUrl; ardantaIframePlaceholder.appendChild(ardantaIframe); function scrolled() { ardantaIframe.contentWindow.postMessage(getIframeLocation(), ‘*’); } function getIframeLocation() { var stickyHeader = document.getElementsByClassName(stickyHeaderClassName); stickyHeader = stickyHeader.length ? stickyHeader[0] : null; return { scrollTop: window.pageYOffset, offsetTop: ardantaIframe.getBoundingClientRect().top – document.body.getBoundingClientRect().top, positionTop: ardantaIframe.offsetTop – window.pageYOffset, screenHeight: window.innerHeight, stickyHeaderHeight: stickyHeader != null ? stickyHeader.getBoundingClientRect().height : null } }; </script> <script src=”https://ardanta.nl/js/iframeResizer.3.6.2.min.js”></script> <script> iFrameResize({ //log: true, checkOrigin: false, heightCalculationMethod: ‘taggedElement’, resizedCallback: scrolled }, ‘#ardantaIframe’); </script>

Calculator laden...