var googleScript = document.createElement('script'); googleScript.src = "https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit"; googleScript.async = ""; googleScript.defer = ""; document.head.appendChild(googleScript); var recaptchaElements = document.getElementsByClassName("ss-recaptcha"); var totalElements = recaptchaElements.length; for (var i = 0; i < recaptchaElements.length; i++) { recaptchaElements[i].id = "ss-recaptcha-" + i; } var onloadCallback = function() { for (var i = 0; i < recaptchaElements.length; i++) { grecaptcha.render('ss-recaptcha-' + i, { 'sitekey' : '6LduAeISAAAAAHc473oPayNirIuKEXD6jkv0Sz68', 'theme' : 'light' }); } }; //var googleStyle = document.createElement('style'); //googleStyle.innerHTML = ".ss-recpatcha { transform:scale(0.77);transform-origin:0;-webkit-transform:scale(0.77);transform:scale(0.77);-webkit-transform-origin:0 0;transform-origin:0 0; }"; //document.head.appendChild(googleStyle); var elemDiv = document.createElement('div'); elemDiv.innerHTML = "Secure Form Submissions Powered by SuperSubmit.co"; elemDiv.style.cssText = 'margin-top: 10px; font-size: 8pt; text-align:center;'; var forms = document.getElementsByTagName("FORM"); //form = forms[0]; for (i = 0; i < forms.length; i++) { var form = forms[i]; if (form.action == "https://supersubmit.co/submit/78c8d36ded/") { form.appendChild(elemDiv); } } //form.appendChild(elemDiv); //document.body.appendChild(elemDiv);