let pmfCcpFrameWrapper = document.getElementById('pmfCcpFrame'); const {dataset} = pmfCcpFrameWrapper; const thankYouPageQuery = dataset?.thankYouPageUrl ? `thankYouPageUrl=${encodeURIComponent(dataset.thankYouPageUrl)}` : undefined; let iframe = document.createElement('iframe'); iframe.src = `https://apply.myrmapp.com/ccp?mode=iframe&origin=${window.location.href}&${thankYouPageQuery}`; iframe.width = '100%'; iframe.height = '100%'; iframe.style.border = '0'; iframe.style.borderRadius = '3px'; iframe.name = 'pmfCcpFrame'; iframe.allow = 'clipboard-read; clipboard-write' pmfCcpFrameWrapper.appendChild(iframe);