PageSourceSearch

https://hjweb.jp/wp-content/themes/hobbyjapan/js/form.js?ver=1753668726

js hjweb.jp collected 2026-10-02 05:24:56 UTC 2,023 bytes, 52 lines download raw bytes

1// 
2
3$(function(){
4	if ($('#blastform').length){
5		$('button[name=regist]').on('click',function(){
6			var errMSG = new Object();
7			$('#blast-error').removeClass('open');
8			$('#blast-error ul').children().remove();
9			$('#blastform .attention').remove();
10			if ($('#i-name').val().length == 0){
11				errMSG['#i-name'] = 'お名前が入力されていません。';
12			} else if ($('#i-name').val().length > 100) {
13				errMSG['#i-name'] = 'お名前は100文字以内で入力してください。';
14			}
15			if ($('#i-email').val().length == 0){
16				errMSG['#i-email'] = 'メールアドレスが入力されていません。';
17			} else if(!$('#i-email').val().match(/^([a-zA-Z0-9])+([a-zA-Z0-9\._-])*@([a-zA-Z0-9_-])+([a-zA-Z0-9\._-]+)+$/)){
18				errMSG['#i-email'] = 'メールアドレスの形式が正しくありません。';
19			}
20			if ($('#i-state').val().length == 0){
21				errMSG['#i-state'] = 'お住まいの地域が選択されていません。';
22			}
23			if ($('#i-date').val().length == 0){
24				errMSG['#i-date'] = '日が選択されていません。';
25			}
26			if ($('#i-month').val().length == 0){
27				errMSG['#i-month'] = '月が選択されていません。';
28			}
29			if ($('#i-year').val().length == 0){
30				errMSG['#i-year'] = '年が選択されていません。';
31			}
32			if ($('#i-privacy').prop("checked") != true){
33				errMSG['#i-privacy'] = '個人情報保護方針をご確認の上ご利用ください。';
34			}
35			if ($('#i-thanks').val() != '送信予約がある場合は送る'){
36				errMSG['#i-thanks'] = 'お礼メールを送付できません。';
37			}
38			if (!isEmpty(errMSG)){
39				$('#blast-error').addClass('open');
40				$('#blast-error ul').append('<li class="fc-red">エラーが発生しました。</li>');
41				$.each(errMSG, function(key, val) {
42					$(key).parents('dd').prepend('<p class="attention">'+val+'</p>');
43				})
44				return false;
45			}
46		});
47	}
48});
49
50function isEmpty(obj){
51	return !Object.keys(obj).length;
52}

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.