PageSourceSearch

https://www.satomura.net/libscript/exec-2.1.js

js satomura.net collected 2026-10-07 14:23:58 UTC 4,655 bytes, 147 lines download raw bytes

1/* 
2/ ================================================================ 
3/	exec-2.1.js
4/	2018.02.01 初期Ver作成
5/	2023.01.12 Ver2作成
6/	2023.12.21 Ver2.0.2作成
7/	2024.01.30 調整
8/	2024.02.06 ラジオボタンのクリア処理追加など
9/	2026.04.23 Verアップデートに伴うファイル名の更新
10/	※要jquery.js
11/	フォーム用送信機能他
12/
13/ ================================================================ 
14*/
15// DOM読み込み後
16$(function(){
17	console.log('[JsLoad EXE]after_DOM');
18	// 入力画面処理
19	if( !$($return_form_id).length ){
20		
21		// 添付ファイルリセット
22		InputFileClear();
23		
24		// ループ(Formの数)内で処理
25		for( let dfi=1; dfi<=$form_df_num; dfi++ ){
26			let num = $form_id["df_"+dfi];
27			
28			setAttribute(num);
29			set_datepicker(num);
30			set_beforeunload(num);
31			
32			// 入力値リセット操作
33			let reset_btn = num + ' ' + $form_reset_btn[num];
34			$(document).on('click', reset_btn, function(){
35				$(num).find("textarea, select, [type='text'], [type='date'], [type='datetime-local'], [type='email'], [type='month'],[type='number'], [type='password'], [type='tel'], [type='time'], [type='url'], [type='week'], [type='email'], [type='file']").val("").end().find(":checked:not(#recaptcha_error_ip"+dfi+")").prop("checked", false);
36				//  特定項目の条件必須のリセット
37				if( typeof $req_click_chenge !=="undefined" && $req_click_chenge == 'ON' ){
38					if (typeof $reqCC_target[num]!== "undefined"){
39						ReqChangingEach($reqCC_target[num], num);
40					}
41				}
42				// 旧添付画像(hidden)のクリア
43				$(num).find('input[name*="FILEVIEW"]').val('');//部分一致で判断
44				$(num).find('.in_file').addClass('ip_off');//表示テキストの初期化
45				$(num).find('.in_file input + span span').text('');//表示テキストの初期化
46				// ラジオボタンのクリア処理の為の初期値の再作成
47				if( typeof $clear_radio_reset !=="undefined" && $clear_radio_reset=='ON' ){
48					if (typeof $radioTC_target[num]!== "undefined"){
49						radioToggleChanging_Clear($radioTC_target[num],num);
50					}
51				}
52			});
53			
54			//beforeunload除外
55			let login_form_btn = num + ' ' + $login_form_btn[num];
56			$(document).on('click', login_form_btn, function(){
57				//console.log("beforeunload");
58				$(window).off('beforeunload');
59			});
60			
61			// 確認画面へ遷移操作
62			let conf_btn = $to_conf_btn[num];
63			$(document).on('click', conf_btn, function(){
64				$conf_flag=1;
65				chk_form(num);
66			});
67			
68		}
69		
70	}
71	
72	
73	// 入力画面へ戻る操作
74	$(document).on('click', $return_btn, function () {
75		// ファイル名の設定
76		let page_index = '';
77		if( typeof($form_page_index)=='undefined' || $form_page_index=='' ){
78			page_index = 'index.php';
79		} else {
80			page_index = $form_page_index;
81		}
82		// 戻る動作
83		$($return_form_id).attr('action',page_index + '?recheckLink=1');
84		$($return_form_id).submit();
85	});
86	
87	
88	// 送信完了操作
89	$(document).on('click', $submit_btn, function () {
90		$conf_flag='';
91		chk_form($return_form_id);
92	});
93	
94	
95});
96
97
98// ページ内パーツ読み込み後
99window.addEventListener("load",function() {
100	console.log('[JsLoad EXE]after_AllParts');
101	$(function(){
102	//$(window).on('load', function() {
103		console.log('[JsLoad EXE]after_AllParts_JQ');
104		// 入力画面処理
105		if( !$($return_form_id).length ){
106			// 入力画面に戻った際のページ位置移動
107			CameBackPosition();
108		}
109	});
110});
111
112
113/*====================
114	function submit_form(){
115	送信処理(確認、完了)
116==========*/
117	function submit_form(temp_num){
118		// 送信処理
119		if($conf_flag==1){
120			// ファイル名の設定(確認)
121			let page_confirm = '';
122			if( typeof($form_page_confirm)=='undefined' || $form_page_confirm=='' ){
123				page_confirm = 'confirm.php';
124			} else {
125				page_confirm = $form_page_confirm;
126			}
127			// 確認画面へ
128			$(temp_num).prepend('<input type="hidden" name="conf_chk" id="conf_chk" value="1" />');
129			$(temp_num).find('[name^="beforeunload"]').attr('name', 'beforeunload');
130			$(temp_num).find('[name^="remail"]').attr('name', 'remail');
131			$(temp_num).prepend('<input type="hidden" name="form_name" id="form_name" value="'+temp_num+'" />');
132			$(temp_num).attr('action',page_confirm + '?recheckLink=1');
133			$(temp_num).submit();	
134		}else {
135			// ファイル名の設定(完了)
136			let page_rgst = '';
137			if( typeof($form_page_rgst)=='undefined' || $form_page_rgst=='' ){
138				page_rgst = 'rgst.php';
139			} else {
140				page_rgst = $form_page_rgst;
141			}
142			// 完了画面へ
143			$(temp_num).attr('action',page_rgst + '?recheckLink=1');
144			$(temp_num).submit();	
145		}
146	}
147

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.