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.