PageSourceSearch

https://www.kasuke.co.jp/Sf3Mc6ez/wp-content/themes/reform/js/tenpo.js?ver=1.1.0

js kasuke.co.jp collected 2026-09-30 19:54:06 UTC 1,153 bytes, 36 lines download raw bytes

1
2/*  来店予約
3-------------------------------------------------------*/
4$(function() {
5	// 祝日を配列で確保
6	var holidays = [ '2018-12-28','2018-12-29','2018-12-30','2018-12-31','2019-01-01','2019-01-02','2019-01-03','2019-01-04','2019-05-03','2019-05-04','2019-05-05','2019-05-06' ];
7
8	$(".kibouday").datepicker({
9		autoclose   : true,
10		minDate: '+1d',
11		dateFormat: 'yy年m月d日 (DD)',
12		dayNames: ['日', '月', '火', '水', '木', '金', '土'],
13		dayNamesMin: ['日', '月', '火', '水', '木', '金', '土'],
14		beforeShowDay: function(date) {
15			// 祝日の判定
16			for (var i = 0; i < holidays.length; i++) {
17				var htime = Date.parse(holidays[i]);    // 祝日を 'YYYY-MM-DD' から time へ変換
18				var holiday = new Date();
19				holiday.setTime(htime);                 // 上記 time を Date へ設定
20
21				// 祝日
22				if (holiday.getYear() == date.getYear() &&
23				holiday.getMonth() == date.getMonth() &&
24				holiday.getDate() == date.getDate()) {
25					return [false, 'holiday'];
26				}
27			}
28
29			// 平日
30			return [true, ''];
31		},
32		onSelect: function(dateText, inst) {
33			$("#date_val").val(dateText);
34		}
35	});
36});

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.