1var queuedRecaptchas = [] // used incase renderRecaptcha is called before recaptchaOnloadCallback 2var recaptchaWidgets = [] 3var recaptchaLoaded = false 4 5var renderRecaptcha = function(id) { 6 var recaptchaWidget = grecaptcha.render(id, { 7 'sitekey' : recaptchaSiteKey, 8 'theme' : 'light' 9 }) 10 recaptchaWidgets[id] = recaptchaWidget 11} 12 13var resetRecaptcha = function(id) { 14 if(recaptchaWidgets[id] != undefined) grecaptcha.reset(recaptchaWidgets[id]) 15} 16 17var initiateRecaptcha = function(id) { 18 if (recaptchaLoaded) renderRecaptcha(id) 19 else queuedRecaptchas.push(id) 20} 21 22var recaptchaOnloadCallback = function() { 23 recaptchaLoaded = true 24 for (var i = 0; i < queuedRecaptchas.length; i++) { 25 renderRecaptcha(queuedRecaptchas[i]) 26 } 27 queuedRecaptchas = [] 28}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.