PageSourceSearch

https://www.jtdo.jp/wp-content/plugins/morph-extension-system/exte…age-controller_2025_08_05.js?ver=2025.08.05

js jtdo.jp collected 2026-10-04 04:41:37 UTC 1,708 bytes, 55 lines download raw bytes

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.