1var IAJCF = {}; 2IAJCF.Func = {}; 3 4jQuery( '.wpcf7' ).on( 'wpcf7invalid' , function(e){ 5 setTimeout(function () { 6 var misses_input = jQuery( 'input.wpcf7-image_auth_jp.wpcf7-not-valid' ); 7 IAJCF.Func.RegenerateImage( misses_input ); 8 },100) 9}); 10 11jQuery( '.wpcf7' ).on( 'wpcf7mailsent' , function(e){ 12 var target = jQuery( 'input.wpcf7-image_auth_jp' ); 13 IAJCF.Func.RegenerateImage( target ); 14}); 15 16IAJCF.Func.RegenerateImage = function( target_elements ) { 17 for( var i = 0; i < target_elements.length; ++i ) { 18 var to_ajax = {}; 19 to_ajax.target_name = jQuery( target_elements[i] ).attr( 'name' ); 20 to_ajax.slug = iajcf_slug; 21 to_ajax.action = 'RegenerateImage'; 22 23 jQuery.ajax({ 24 type : 'POST', 25 url : iajcf_ajax_url , 26 target_name : to_ajax.target_name , 27 data : to_ajax 28 }) 29 .done(function(res){ 30 var res = JSON.parse( res ); 31 var target = jQuery( '.image_auth_jp_quiz[tag-name="' + this.target_name + '"]' ); 32 33 // ç»åãé表示ã«ãã¦ããæ°ããURLãè¨å® 34 target.removeClass('loaded'); 35 jQuery( target ).attr( 'src' , res.new_url ); 36 37 // ãã¹ãç¨ï¼ããã¨404ã¨ã©ã¼ãçºçãããå ´å 38 // setTimeout(function() { 39 // console.log('ãã¹ãç¨ï¼ããã¨404ã¨ã©ã¼ãçºçããã'); 40 // jQuery( target ).attr( 'src' , 'https://example.com/nonexistent-image.jpg' ); 41 // }, 500); 42 43 // ç»åæ´æ°å¾ã«404ãã§ãã¯ãå®è¡ï¼é å»¶ä»ãï¼ 44 setTimeout(function() { 45 if (typeof IAJCF_Checker !== 'undefined' && typeof IAJCF_Checker.Func.CheckImages === 'function') { 46 IAJCF_Checker.Func.CheckImages(); 47 } 48 }, 1000); 49 }) 50 .fail(function(){ 51 }); 52 } 53} 54 55
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.