1/* 2 * Callback that is executed when Google's reCaptcha script loads 3 * 4 */ 5pms_recaptcha_callback = function() { 6 7 "use strict"; 8 9 // Get all elements where the reCaptcha should render 10 var elements = document.getElementsByClassName( 'pms-recaptcha' ); 11 12 // Render all reCaptchas 13 if( elements.length > 0 ) { 14 for( var i = 0; i < elements.length; i++ ) { 15 16 var id = elements[i]['id']; 17 18 var site_key = elements[i]['dataset']['sitekey']; 19 var theme = elements[i]['dataset']['theme']; 20 var size = elements[i]['dataset']['size']; 21 22 if( id != '' && site_key != '' ) 23 grecaptcha.render( id, { 24 'sitekey' : site_key, 25 'theme' : theme, 26 'size' : size 27 }); 28 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.