X
top.itdReCaptcha = top.itdReCaptcha || []; top.itdReCaptchaLoaded = top.itdReCaptchaLoaded || false; top.onloadRecaptchaCallbackDefParams = { rSiteKey: "6LfJ1oEaAAAAAOwPsR-rjdwToq1QEa7hdwO9t23w" }; top.loadReCaptchaIfNotLoaded = function () { if (top.itdReCaptchaLoaded === true) { return false; } top.itdReCaptchaLoaded = true; let script = document.createElement("script"); script.src = "https://www.google.com/recaptcha/api.js?onload=onloadRecaptchaCallback&render=explicit"; script.async = true; document.body.append(script); return true; } top.onloadRecaptchaCallback = function (findedID) { if (typeof findedID != "undefined") { var findedInArray = false; for (i in top.itdReCaptcha) { if (top.itdReCaptcha[i] === findedID) { findedInArray = true; break; } } if (!findedInArray) { top.itdReCaptcha.push(findedID); } } if (top.loadReCaptchaIfNotLoaded()) { return; } // console.debug("findedID = " + findedID); if (typeof findedID != "undefined" && findedID !== "") { // console.debug("reinited " + findedID); grecaptcha.render("itd-g-recaptcha-" + findedID, {"sitekey": top.onloadRecaptchaCallbackDefParams.rSiteKey}); } else if (typeof top.itdReCaptcha !== "undefined") { for (var i in top.itdReCaptcha) { // console.debug("try reinit " + window.itdReCaptcha[i]); if (document.getElementById("itd-g-recaptcha-" + top.itdReCaptcha[i]) !== null && document.getElementById("itd-g-recaptcha-" + top.itdReCaptcha[i]).innerHTML.indexOf("iframe") === -1) { // console.debug("reinited " + window.itdReCaptcha[i]); grecaptcha.render("itd-g-recaptcha-" + top.itdReCaptcha[i], {"sitekey": top.onloadRecaptchaCallbackDefParams.rSiteKey}); } } } } var ajaxOrderPageTryInitRecaptcha = function () { if (top.loadReCaptchaIfNotLoaded()) { return; } if (document.getElementById("itd-g-recaptcha-ajaxorder").querySelectorAll("div").length == 0) { grecaptcha.render("itd-g-recaptcha-ajaxorder", {"sitekey": top.onloadRecaptchaCallbackDefParams.rSiteKey}); } } var ajaxOrderPageInitRecaptcha = function () { try { setTimeout(function () { ajaxOrderPageTryInitRecaptcha(); }, 1000); setTimeout(function () { ajaxOrderPageTryInitRecaptcha(); }, 3000); setTimeout(function () { ajaxOrderPageTryInitRecaptcha(); }, 5000); } catch (e) { } };