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' : '6Lenbh0UAAAAAFqef306nJoQDYn3jGpY-M8oJiSB', '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);