PageSourceSearch

https://thegrandhotelginowan.com/wp/wp-content/themes/tgh-ginowan/caljs/module.js

js thegrandhotelginowan.com collected 2026-10-05 03:32:15 UTC 2,234 bytes, 61 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(){
31set_CheckDate(new Date());
32};
33
34
35$(function(){
36    var tdate = addDay(new Date(), 0);
37    var ldate = addYear_EndDay(new Date(), 1);
38
39    $("#datepicker").datepicker();
40    $("#datepicker").datepicker("option", "minDate", 0);
41    $('#datepicker').bind("change", function() { setDatePulldown_in($(this).val()); });
42    $('#y').bind("change", function() { set_CheckDate(); });
43    $('#m').bind("change", function() { set_CheckDate(); });
44    $('#d').bind("change", function() { set_CheckDate(); });
45
46    //チェックアウト
47    $("#datepicker_out").datepicker();
48    $("#datepicker_out").datepicker("option", "minDate", tdate);
49    $("#datepicker_out").datepicker("option", "maxDate", ldate);
50    $('#datepicker_out').bind("change", function() { setDatePulldown_out($(this).val()); });
51    $('#y_out').bind("change", function() { set_CheckoutDate(); });
52    $('#m_out').bind("change", function() { set_CheckoutDate(); });
53    $('#d_out').bind("change", function() { set_CheckoutDate(); });
54
55    $('#nights').bind("change", function() { set_CheckDate(); });
56});
57
58function setDatePulldown_in(date) {
59var ts = createDate_str(date, '/');
60set_CheckDate(ts);
61}

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.