(function () { const retourlink = new URLSearchParams(window.location.search).get('retourlink'); const customHeight = false; const formattedParams = ''; let iframeUrl = 'https://acn.cfg.test.mtest.nl/'; if (formattedParams) { iframeUrl += '?' + formattedParams; } if (retourlink) { iframeUrl += (formattedParams ? '&' : '?') + 'retourlink=' + encodeURIComponent(retourlink); } var iframe = document.createElement('iframe'); iframe.src = iframeUrl; iframe.style = 'width: 100%; border: none; display: block;'; var configuratorDiv = document.getElementById('configurator'); if (!configuratorDiv) return; var existingIframe = configuratorDiv.querySelector('iframe'); if (existingIframe) { existingIframe.remove(); } if (customHeight) { configuratorDiv.style.height = '100%'; iframe.style.height = '100%'; } else { iframe.style.height = '80vh'; } configuratorDiv.appendChild(iframe); })();