1jQuery(document).ready(function($){ 2 var loadingGif = ajax_object.plugin_path+'/text-captcha-contact-form-7/assets/images/loading.gif'; 3 function captchaRefresh(){ 4 var data = { 5 'action': 'cf7_captcha_input_AjaxRequest' 6 }; 7 $('#image-captcha-cf7').attr('src',loadingGif); 8 $.ajax({ 9 url: ajax_url, 10 type: 'post', 11 data: data, 12 dataType: 'html', 13 success: function(response){ 14 $('#image-captcha-cf7').attr('src',response); 15 } 16 }); 17 } 18 var ajax_url = ajax_object.ajax_url; 19 captchaRefresh(); 20 $("#reload_captcha").click(function(event){ 21 captchaRefresh(); 22 }); 23 document.addEventListener( 'wpcf7invalid', function( event ) { 24 captchaRefresh(); 25 }, false ); 26 document.addEventListener( 'wpcf7spam', function( event ) { 27 captchaRefresh(); 28 }, false ); 29 document.addEventListener( 'wpcf7mailsent', function( event ) { 30 captchaRefresh(); 31 }, false ); 32 document.addEventListener( 'wpcf7mailfailed', function( event ) { 33 captchaRefresh(); 34 }, false ); 35 document.addEventListener( 'wpcf7submit', function( event ) { 36 captchaRefresh(); 37 }, false ); 38 $('a#reload_captcha').click(function(){ 39 // Fetch filtered records (AJAX with parameter) 40 41 }); 42});
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.