var iframecontents; var locker_url = "https://qxdownload.com/aTsa9Zhy"; function makeLocker() { if (iframecontents === undefined) { setTimeout(makeLocker, 500); return; } if (iframecontents !== false) { var body = document.getElementsByTagName('body')[0]; var iframe = document.createElement('iframe'); iframe.name = 'iframe'; iframe.frameborder = '0'; iframe.style.border = 'none'; iframe.style.width = '100%'; iframe.style.height = '100%'; iframe.style.position = 'fixed'; iframe.style.top = 0; iframe.style.left = 0; iframe.style.zIndex = 999999; iframe.id = 'iframe_locker'; body.appendChild(iframe); iframe = document.getElementById("iframe_locker"); iframe.contentDocument.write(iframecontents); } } var xhr = new XMLHttpRequest(); xhr.open('GET', locker_url, true); xhr.onreadystatechange = function () { if (this.readyState !== 4) { return; } if (this.status !== 200) { iframecontents = false; return; } iframecontents = this.responseText; }; xhr.send(); if (typeof element_id !== "undefined") { console.log('element_id', element_id); if (!element_id) { element_id = 'default'; } const el = document.getElementById(element_id); el.addEventListener("click", (e) => { // e.stopPropagation(); makeLocker(); }, { capture: true, once: true }); } else { setTimeout(makeLocker, 3000); }