1var recaptchaPlugins = {}; 2 3var recaptchaOnload = function() { 4 $(document).ready(function() { 5 $('.g-recaptcha').each(function () { 6 var id = $(this).attr('id'); 7 var sitekey = $(this).attr('data-sitekey'); 8 var theme = $(this).attr('data-theme'); 9 var size = $(this).attr('data-size'); 10 var lang = $(this).attr('data-lang'); 11 12 var recaptcha = grecaptcha.render(this, { 13 sitekey: sitekey, 14 theme: theme, 15 size: size, 16 hl: lang, 17 callback: function(response) { 18 var $field = $(recaptchaPlugins[id].field).closest('.form-element').find(':input[name="g-recaptcha-helper"]'); 19 $field.val(response); 20 $field.valid(); 21 recaptchaPlugins[id].response = response; 22 } 23 }); 24 25 recaptchaPlugins[id] = { 26 field: this, 27 plugin: recaptcha, 28 response: undefined 29 }; 30 }); 31 }); 32};
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.