adjusted slideshow height
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 2 Dec 2015 20:21:13 +0000 (15:21 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 2 Dec 2015 20:21:13 +0000 (15:21 -0500)
css/app.css
js/app.js
js/custom/pageSetup.js
scss/_slideshow.scss

index b2d22b7..edacc21 100644 (file)
@@ -7065,7 +7065,7 @@ main a {
   height: 20px !important; }
 
 #slideshow {
-  top: -110px;
+  top: -121px;
   position: relative;
   max-height: 640px;
   overflow: hidden;
index 75ba48a..ede0453 100644 (file)
--- 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")) {
index bb29ba1..0b6970e 100644 (file)
@@ -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")) {
index f5efb12..63f8015 100644 (file)
@@ -1,5 +1,5 @@
 #slideshow {
-    top: -110px;
+    top: -121px;
     position: relative;
     max-height: 640px;
     overflow: hidden;