1jQuery(document).ready(function(){ 2 3 // refresh captcha 4 $j('img#captcha-refresh').click(function() { 5 6 change_captcha(); 7 }); 8 9 function change_captcha() 10 { 11 document.getElementById('captcha').src="https://www.neatp.org/wp-content/themes/sirens/get_captcha.php?rnd=" + Math.random(); 12 } 13 14 15 $j.validator.setDefaults({ 16 submitHandler: function() { 17 $j.ajax({ 18 type: 'GET', 19 url: 'https://www.neatp.org/wp-content/themes/sirens/get_captcha.php?check=true', 20 data: $j('#contact_form').serialize(), 21 success: function(msg){ 22 if(msg == 'true') 23 { 24 var contactData = jQuery('#contact_form').serialize(); 25 26 $j.ajax({ 27 type: 'POST', 28 url: tgAjax.ajaxurl, 29 data: contactData+'&tg_security='+tgAjax.ajax_nonce, 30 success: function(msg){ 31 $j('#contact_form').hide(); 32 $j('#reponse_msg').html('<br/>'+msg); 33 } 34 }); 35 } 36 else 37 { 38 alert(msg); 39 } 40 } 41 }); 42 43 return false; 44 } 45 }); 46 47 48 $j('#contact_form').validate({ 49 rules: { 50 your_name: "required", 51 email: { 52 required: true, 53 email: true 54 }, 55 message: "required" 56 }, 57 messages: { 58 your_name: "Please enter your name", 59 email: "Please enter a valid email address", 60 message: "Please enter some message" 61 } 62 }); 63});
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.