PageSourceSearch

https://kobac-kashiwazaki01.com/js2/kashiwazaki_cal_set.js

js kobac-kashiwazaki01.com collected 2026-10-05 11:15:47 UTC 1,074 bytes, 41 lines download raw bytes

1// 定休曜日を選択できなくする(定休曜日を動的に対応ver)
2document.addEventListener('DOMContentLoaded', function() {
3	cal_set(3);// 水曜定休
4});
5// 定休曜日を選択できなくする
6function cal_set(yobi) {
7	$('.choice1 input').datepicker({
8		minDate: new Date(),
9		beforeShowDay: function(date) {
10			let holiday = JapaneseHolidays.isHoliday(date);
11			//祝日のとき
12			if (holiday) {
13				return [false, "ui-state-disabled"];
14			} else if(date.getDay() == yobi) {
15				// 日曜日→0 ・・・
16				return [false, 'ui-state-disabled'];
17			}
18			else {
19				// 平日
20				return [true, ''];
21			}
22		}
23	});
24	$('.choice2 input').datepicker({
25		minDate: new Date(),
26		beforeShowDay: function(date) {
27			let holiday = JapaneseHolidays.isHoliday(date);
28			//祝日のとき
29			if (holiday) {
30				return [false, "ui-state-disabled"];
31			} else if(date.getDay() == yobi) {
32				// 日曜日→0 ・・・
33				return [false, 'ui-state-disabled'];
34			}
35			else {
36				// 平日
37				return [true, ''];
38			}
39		}
40	});
41}

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.