PageSourceSearch

https://denkigas-info.jp/wp-content/themes/electric/assets/js/form-validation.js?ver=1781515159

js denkigas-info.jp collected 2026-10-04 12:11:16 UTC 797 bytes, 19 lines download raw bytes

1/*WEB受付フォーム用のバリデーション*/
2window.addEventListener('DOMContentLoaded', function () {
3	var startDate = document.getElementById('start-date');
4	if (startDate) {
5		startDate.min = new Date().toISOString().split('T')[0];
6	}
7	document.querySelectorAll('#entry-form .zenhankaku').forEach(function (input) {
8		input.addEventListener('change', function () {
9			this.value = this.value.replace(/[A-Za-z0-9-!”#$%&'()=<>,.?_[]{}@^~¥]/g, function (ch) {
10				return String.fromCharCode(ch.charCodeAt(0) - 65248);
11			});
12		});
13	});
14	document.querySelectorAll('#entry-form .removeHyphen').forEach(function (input) {
15		input.addEventListener('change', function () {
16			this.value = this.value.replace(/-/g, '');
17		});
18	});
19});

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.