width: 245px;
height: 40px;
border-left: 2px solid #FFFFFF;
- border-right: 2px solid #FFFFFF; }
+ border-right: 2px solid #FFFFFF;
+ box-shadow: 0px -7px 10px -9px rgba(0, 0, 0, 0.5) inset; }
#properties .top-bar .top-bar-section ul#menu-properties li a {
color: #6c4f53;
text-transform: uppercase;
kids,
perry = 'RtXm7mjas4tWRxEAkt8ienQMPRR5EbsZGSOalE8V63s%3d&';
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
///////off canvas date picker logic //////////////////////////////////////////////
// restrict arrival date ////////////////////////////////
+ $("#arriveOff").val("Arrival Date");
+ $("#departOff").val("Departure Date");
$(document).on('change', '#arriveOff', function () {
currentDate = $("#arriveOff").val();
currentDate = new Date(currentDate);
currentDate = new Date(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate());
currentDate.setDate(currentDate.getDate());
+ console.log(currentDate);
d = currentDate.getDate();
dd = currentDate.getDate() + 1;
if (d <= 9) {
}
y = currentDate.getFullYear();
requiredDate = y + '-' + m + '-' + d;
- arrival = d + '-' + m + '-' + y;
- arrival.toString();
- arrival = arrival.replace(/\//g, "");
- arrival = parseInt(arrival, 10);
+
minDays = y + '-' + m + '-' + dd;
$("#departOff").attr("min", minDays);
start = "arrival_date=" + y + '-' + m + '-' + d + '&';
currentDate2 = new Date(currentDate2);
currentDate2 = new Date(currentDate2.getUTCFullYear(), currentDate2.getUTCMonth(), currentDate2.getUTCDate());
currentDate2.setDate(currentDate2.getDate());
- dd = currentDate2.getDate() + 1;
- if (dd <= 9) {
- dd = '0' + dd;
+ console.log(currentDate2);
+ $("#nightsOff").val(Math.ceil(currentDate2 - currentDate) / (1000 * 60 * 60 * 24));
+ if ($("#nightsOff").val() <= 0) {
+ $("#departOff").val("Minimum 1 Night");
+ $("#nightsOff").val("");
}
- d = currentDate2.getDate();
+ console.log($("#nightsOff").val());
+
+ d = currentDate2.getDate() + 1;
if (d <= 9) {
d = '0' + d;
}
y = currentDate2.getFullYear();
requiredDate1 = y + '-' + m + '-' + dd;
departure = d + '-' + m + '-' + y;
- departure.toString();
- departure = departure.replace(/\//g, "");
- departure = parseInt(departure, 10);
- stay = (departure - arrival);
- if (stay < 0) {
- stay = 0;
- } else {
- $("#nightsOff").val(Math.ceil(departure - currentDate) / (1000 * 60 * 60 * 24));
- }
- stay = 'stay_nights=' + (departure - arrival) + '&';
+ stay = 'stay_nights=' + $('#nightsOff').val() + '&';
if ($("#departOff").val() < $('#departOff').attr("min")) {
// $("#departOff").val(requiredDate);
}
});
///// end of canvas datepicker logic ^ //////////////////////////////////////////////
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
/// top bar reservation form dropdown logic ////////////////////////////
$("#arrive").datepicker({
stay = 'stay_nights=' + $('#nights').val() + '&';
}
- });
+ });
$("#arriveCal").click(function () {
$("#arrive").datepicker("show");
});
kids,
perry = 'RtXm7mjas4tWRxEAkt8ienQMPRR5EbsZGSOalE8V63s%3d&';
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
///////off canvas date picker logic //////////////////////////////////////////////
// restrict arrival date ////////////////////////////////
+ $("#arriveOff").val("Arrival Date");
+ $("#departOff").val("Departure Date");
$(document).on('change', '#arriveOff', function () {
currentDate = $("#arriveOff").val();
currentDate = new Date(currentDate);
currentDate = new Date(currentDate.getUTCFullYear(), currentDate.getUTCMonth(), currentDate.getUTCDate());
currentDate.setDate(currentDate.getDate());
+ console.log(currentDate);
d = currentDate.getDate();
dd = currentDate.getDate() + 1;
if (d <= 9) {
}
y = currentDate.getFullYear();
requiredDate = y + '-' + m + '-' + d;
- arrival = d + '-' + m + '-' + y;
- arrival.toString();
- arrival = arrival.replace(/\//g, "");
- arrival = parseInt(arrival, 10);
+
minDays = y + '-' + m + '-' + dd;
$("#departOff").attr("min", minDays);
start = "arrival_date=" + y + '-' + m + '-' + d + '&';
currentDate2 = new Date(currentDate2);
currentDate2 = new Date(currentDate2.getUTCFullYear(), currentDate2.getUTCMonth(), currentDate2.getUTCDate());
currentDate2.setDate(currentDate2.getDate());
- dd = currentDate2.getDate() + 1;
- if (dd <= 9) {
- dd = '0' + dd;
+ console.log(currentDate2);
+ $("#nightsOff").val(Math.ceil(currentDate2 - currentDate) / (1000 * 60 * 60 * 24));
+ if ($("#nightsOff").val() <= 0) {
+ $("#departOff").val("Minimum 1 Night");
+ $("#nightsOff").val("");
}
- d = currentDate2.getDate();
+ console.log($("#nightsOff").val());
+
+ d = currentDate2.getDate() + 1;
if (d <= 9) {
d = '0' + d;
}
y = currentDate2.getFullYear();
requiredDate1 = y + '-' + m + '-' + dd;
departure = d + '-' + m + '-' + y;
- departure.toString();
- departure = departure.replace(/\//g, "");
- departure = parseInt(departure, 10);
- stay = (departure - arrival);
- if (stay < 0) {
- stay = 0;
- } else {
- $("#nightsOff").val(Math.ceil(departure - currentDate) / (1000 * 60 * 60 * 24));
- }
- stay = 'stay_nights=' + (departure - arrival) + '&';
+ stay = 'stay_nights=' + $('#nightsOff').val() + '&';
if ($("#departOff").val() < $('#departOff').attr("min")) {
// $("#departOff").val(requiredDate);
}
});
///// end of canvas datepicker logic ^ //////////////////////////////////////////////
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
/// top bar reservation form dropdown logic ////////////////////////////
$("#arrive").datepicker({
stay = 'stay_nights=' + $('#nights').val() + '&';
}
- });
+ });
$("#arriveCal").click(function () {
$("#arrive").datepicker("show");
});
height: 40px;
border-left: 2px solid $white;
border-right: 2px solid $white;
+ box-shadow: 0px -7px 10px -9px rgba(0, 0, 0, 0.5) inset;
a {
color: $purple;
text-transform: uppercase;