PageSourceSearch

https://raymondinnaha.com/wp-content/themes/switch_tcd063/caljs/module.js

js raymondinnaha.com collected 2026-10-04 13:22:09 UTC 3,024 bytes, 84 lines download raw bytes

1function set_CheckDate(argDate){
2var yy, mm, dd;
3var ddate, tmdate;
4
5    if(argDate != null){
6    ddate = argDate;
7    selectCombo(document.getElementById('y'), ddate.getFullYear());
8    selectCombo(document.getElementById('m'), ddate.getMonth()+1);
9    selectCombo(document.getElementById('d'), ddate.getDate());
10    }else{
11    yy = parseInt(document.getElementById('y').value);
12    mm = parseInt(document.getElementById('m').value);
13    dd = parseInt(document.getElementById('d').value);
14    ddate = createDate(yy, mm, dd);
15    }
16    document.getElementById('datepicker').value = Strformat_Date(ddate, '/');
17
18var nights = $('[name=nights] option:selected').val();
19tmdate = addDay(ddate, nights);
20set_CheckoutDate(tmdate);
21}
22
23function set_CheckoutDate(argDate){
24selectCombo(document.getElementById('y_out'), argDate.getFullYear());
25selectCombo(document.getElementById('m_out'), argDate.getMonth()+1);
26selectCombo(document.getElementById('d_out'), argDate.getDate());
27document.getElementById('datepicker_out').value = Strformat_Date(argDate, '/');
28}
29
30window.onload = function(){
31  var sdate = addDay(new Date(), 1);  //当日+1日
32  set_CheckDate(sdate);
33};
34
35
36
37$(function(){
38    var tdate = addDay(new Date(), 0);
39    var ldate = addYear_EndDay(new Date(), 1);
40
41    $("#datepicker").datepicker();
42    $("#datepicker").datepicker("option", "minDate", 0);
43    $('#datepicker').bind("change", function() { setDatePulldown_in($(this).val()); });
44    $('#y').bind("change", function() { set_CheckDate(); });
45    $('#m').bind("change", function() { set_CheckDate(); });
46    $('#d').bind("change", function() { set_CheckDate(); });
47
48    //チェックアウト
49    $("#datepicker_out").datepicker();
50    $("#datepicker_out").datepicker("option", "minDate", tdate);
51    $("#datepicker_out").datepicker("option", "maxDate", ldate);
52    $('#datepicker_out').bind("change", function() { setDatePulldown_out($(this).val()); });
53    $('#y_out').bind("change", function() { set_CheckoutDate(); });
54    $('#m_out').bind("change", function() { set_CheckoutDate(); });
55    $('#d_out').bind("change", function() { set_CheckoutDate(); });
56
57    $('#nights').bind("change", function() { set_CheckDate(); });
58});
59
60function setDatePulldown_in(date) {
61var ts = createDate_str(date, '/');
62set_CheckDate(ts);
63}
64
65// 489ban  2025/03/19 追加
66
67// <!-- 子ども検索用 -->
68
69$(function() {
70  $('.guests_input.child_count').click(function() {
71    $(this).closest('#search_489ban').find('.inbox_489ban.child_input').slideToggle();
72  });
73  $('.close_child_input').on('click', function() {
74      $(this).closest('#search_489ban').find('.inbox_489ban.child_input').slideUp();
75      return false;
76  });
77  $('.inbox_489ban.child_input select').on('change', function() {
78      var childCount = 0;
79      $(this).closest('#search_489ban').find('.inbox_489ban.child_input select').each(function () {
80          childCount += Number($(this).val());
81      });
82      $(this).closest('#search_489ban').find('.guests_input.child_count').val(childCount);
83  });
84});

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.