From: Anthony Talarico Date: Wed, 2 Dec 2015 20:21:13 +0000 (-0500) Subject: adjusted slideshow height X-Git-Tag: v1.0.0^2~166 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=52c1a85882ee96dba01eca2e468547093bc1fde9;p=WP-Themes%2Fstaffords.git adjusted slideshow height --- 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;