border-left: 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:hover {
+ box-shadow: none; }
#properties .top-bar .top-bar-section ul#menu-properties li a {
color: #6c4f53;
text-transform: uppercase;
adults,
kids,
perry = 'RtXm7mjas4tWRxEAkt8ienQMPRR5EbsZGSOalE8V63s%3d&';
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
///////off canvas date picker logic //////////////////////////////////////////////
- // restrict arrival date ////////////////////////////////
+ // Set inputs to default values ///////
+ $("#propertyNameOff").val("");
$("#arriveOff").val("Arrival Date");
$("#departOff").val("Departure Date");
+ $("#nightsOff").val("");
+ $("#adultsOff").val("");
+ $("#kidsOff").val("");
+
$(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) {
d = '0' + d;
}
m = '0' + m;
}
y = currentDate.getFullYear();
- requiredDate = y + '-' + m + '-' + d;
-
- minDays = y + '-' + m + '-' + dd;
- $("#departOff").attr("min", minDays);
start = "arrival_date=" + y + '-' + m + '-' + d + '&';
- if (requiredDate < $('#arriveOff').attr("min")) {
- minDays = $('#arriveOff').attr("min");
- $("#arriveOff").val(minDays);
- //$("#departOff")//.attr("min"));
- } else {
- d = currentDate.getDate() + 1;
- if (d <= 9) {
- d = '0' + d;
- }
- m = currentDate.getMonth() + 1;
- if (m <= 9) {
- m = '0' + m;
- }
- y = currentDate.getFullYear();
- requiredDate = y + '-' + m + '-' + d;
- //$("#departOff").val(requiredDate);
- }
- requiredDate = y + '-' + m + '-' + dd;
+ console.log(currentDate);
});
// restrict departure date ///////////////////////////////
$(document).on('change', '#departOff', function () {
$("#departOff").val("Minimum 1 Night");
$("#nightsOff").val("");
}
- console.log($("#nightsOff").val());
-
- d = currentDate2.getDate() + 1;
- if (d <= 9) {
- d = '0' + d;
- }
- m = currentDate2.getMonth() + 1;
- if (m <= 9) {
- m = '0' + m;
- }
- y = currentDate2.getFullYear();
- requiredDate1 = y + '-' + m + '-' + dd;
- departure = d + '-' + m + '-' + y;
stay = 'stay_nights=' + $('#nightsOff').val() + '&';
- if ($("#departOff").val() < $('#departOff').attr("min")) {
- // $("#departOff").val(requiredDate);
- }
+ console.log(stay);
});
///// end of canvas datepicker logic ^ //////////////////////////////////////////////
adults,
kids,
perry = 'RtXm7mjas4tWRxEAkt8ienQMPRR5EbsZGSOalE8V63s%3d&';
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
///////off canvas date picker logic //////////////////////////////////////////////
- // restrict arrival date ////////////////////////////////
+ // Set inputs to default values ///////
+ $("#propertyNameOff").val("");
$("#arriveOff").val("Arrival Date");
$("#departOff").val("Departure Date");
+ $("#nightsOff").val("");
+ $("#adultsOff").val("");
+ $("#kidsOff").val("");
+
$(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) {
d = '0' + d;
}
m = '0' + m;
}
y = currentDate.getFullYear();
- requiredDate = y + '-' + m + '-' + d;
-
- minDays = y + '-' + m + '-' + dd;
- $("#departOff").attr("min", minDays);
start = "arrival_date=" + y + '-' + m + '-' + d + '&';
- if (requiredDate < $('#arriveOff').attr("min")) {
- minDays = $('#arriveOff').attr("min");
- $("#arriveOff").val(minDays);
- //$("#departOff")//.attr("min"));
- } else {
- d = currentDate.getDate() + 1;
- if (d <= 9) {
- d = '0' + d;
- }
- m = currentDate.getMonth() + 1;
- if (m <= 9) {
- m = '0' + m;
- }
- y = currentDate.getFullYear();
- requiredDate = y + '-' + m + '-' + d;
- //$("#departOff").val(requiredDate);
- }
- requiredDate = y + '-' + m + '-' + dd;
+ console.log(currentDate);
});
// restrict departure date ///////////////////////////////
$(document).on('change', '#departOff', function () {
$("#departOff").val("Minimum 1 Night");
$("#nightsOff").val("");
}
- console.log($("#nightsOff").val());
-
- d = currentDate2.getDate() + 1;
- if (d <= 9) {
- d = '0' + d;
- }
- m = currentDate2.getMonth() + 1;
- if (m <= 9) {
- m = '0' + m;
- }
- y = currentDate2.getFullYear();
- requiredDate1 = y + '-' + m + '-' + dd;
- departure = d + '-' + m + '-' + y;
stay = 'stay_nights=' + $('#nightsOff').val() + '&';
- if ($("#departOff").val() < $('#departOff').attr("min")) {
- // $("#departOff").val(requiredDate);
- }
+ console.log(stay);
});
///// end of canvas datepicker logic ^ //////////////////////////////////////////////
</select>
</div>
<div class="small-6 small-centered columns resBtnOff">
- <input class="res-buttonOff" type="submit" value="Book Now">
+ <input class="res-buttonOff" type="button" value="Book Now">
</div>
</div>
</form>
\ No newline at end of file
border-left: 2px solid $white;
border-right: 2px solid $white;
box-shadow: 0px -7px 10px -9px rgba(0, 0, 0, 0.5) inset;
+ &:hover{
+ box-shadow: none;
+ }
a {
color: $purple;
text-transform: uppercase;
font-size: rem-calc(18);
letter-spacing: 2px;
&:hover {
+
color: $red;
z-index: 99;
// padding-bottom: 10px;