1function submit_email_form(input_form){ 2 3 // create hidden field 4 var input = document.createElement("input"); 5 input.setAttribute("type", "hidden"); 6 input.setAttribute("name", "do"); 7 input.setAttribute("value", "send_email"); 8 9 //append to form 10 input_form.appendChild(input); 11 12 return true; 13 14} 15 16 17var post_processed_email_forms = false; 18 19function post_process_email_forms(){ 20 21 if(post_processed_email_forms == true){ 22 return false; 23 } 24 25 // Include jQuery if not included 26 if(typeof $ == 'undefined' && typeof jQuery == 'undefined'){ 27 var oScriptElem = document.createElement("script"); 28 oScriptElem.type = "text/javascript"; 29 oScriptElem.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"; 30 document.head.insertBefore(oScriptElem, document.getElementsByTagName("script")[0]); 31 32 window.onload = post_process_email_forms; 33 34 return false; 35 } 36 37 if(typeof jQuery != 'undefined' && typeof $ == 'undefined'){ 38 $ = jQuery; 39 } 40 41 // Scroll 42 $(document).ready(function(){ 43 44 $('#email_form').append('<div id="captcha_area" class="g-recaptcha" data-sitekey="6LeWgqEUAAAAAJSUMgpv5AgKu7d7CUj_j6ZSF3Hm"></div>'); 45 46 $('#email_form input[type=submit]').wrap( '<div id="submit_div"></div>' ); 47 $('#submit_div').append('<br />'); 48 $('#submit_div').prepend($('#captcha_area')); 49 50 51 //$('<br />').insertAfter('#email_form :last-child'); 52 //$('#email_form input[type=submit]').insertAfter('#email_form :last-child'); 53 54 var captchaWidgetId = grecaptcha.render( 'captcha_area', { 55 'sitekey' : '6LeWgqEUAAAAAJSUMgpv5AgKu7d7CUj_j6ZSF3Hm', // required 56 'theme' : 'light'//, // optional 57 //'callback': 'verifyCallback' // optional 58 }); 59 60 //$('#email_form input[type=submit]').insertBefore('<div class="g-recaptcha" data-sitekey="6LfeE1UUAAAAAAd18pJ1v4TyFW_85woL18n9WpVD"></div><br />Test'); 61 62 63 if($('#email_form_complete').length > 0){ 64 65 $('html,body').animate({scrollTop: $('#email_form_complete').offset().top - 32},'slow'); 66 67 }else{ 68 69 if($('.email_error').length > 0){ 70 $('html,body').animate({scrollTop: $('.email_error').offset().top - 32},'slow'); 71 } 72 73 } 74 75 }); 76 77 post_processed_email_forms = true; 78 79}
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.