From 52c1a85882ee96dba01eca2e468547093bc1fde9 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 2 Dec 2015 15:21:13 -0500 Subject: [PATCH] adjusted slideshow height --- css/app.css | 2 +- js/app.js | 2 +- js/custom/pageSetup.js | 2 +- scss/_slideshow.scss | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/css/app.css b/css/app.css index b2d22b7..edacc21 100644 --- a/css/app.css +++ b/css/app.css @@ -7065,7 +7065,7 @@ main a { height: 20px !important; } #slideshow { - top: -110px; + top: -121px; position: relative; max-height: 640px; overflow: hidden; diff --git a/js/app.js b/js/app.js index 75ba48a..ede0453 100644 --- a/js/app.js +++ b/js/app.js @@ -108,7 +108,7 @@ $(document).ready(function () { if (stay < 0) { stay = 0; } else { - $("#nightsOff").val(departure - arrival); + $("#nightsOff").val(Math.ceil(departure - currentDate) / (1000 * 60 * 60 * 24)); } stay = 'stay_nights=' + (departure - arrival) + '&'; if ($("#departOff").val() < $('#departOff').attr("min")) { diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index bb29ba1..0b6970e 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -99,7 +99,7 @@ $(document).ready(function () { if (stay < 0) { stay = 0; } else { - $("#nightsOff").val(departure - arrival); + $("#nightsOff").val(Math.ceil(departure - currentDate) / (1000 * 60 * 60 * 24)); } stay = 'stay_nights=' + (departure - arrival) + '&'; if ($("#departOff").val() < $('#departOff').attr("min")) { diff --git a/scss/_slideshow.scss b/scss/_slideshow.scss index f5efb12..63f8015 100644 --- a/scss/_slideshow.scss +++ b/scss/_slideshow.scss @@ -1,5 +1,5 @@ #slideshow { - top: -110px; + top: -121px; position: relative; max-height: 640px; overflow: hidden; -- 2.17.1