fixing reservation widget viewport checking so that it can be toggled between large...
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 8 Oct 2019 15:39:03 +0000 (11:39 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 8 Oct 2019 15:39:03 +0000 (11:39 -0400)
js/app.js
js/custom/pageSetup.js

index 8c69233..ec8d453 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -134,6 +134,7 @@ $(document).ready(function () {
         if($(window).width() > 1023){
             $("#resContent").appendTo("#reservationContent");
             $("#mobile-sticky-nav").remove("show");
+            $("#room-rates-slider").removeClass("open-form");
             $(".feed").slick({
                 infinite: true,
                 slidesToShow: 3,
@@ -141,9 +142,11 @@ $(document).ready(function () {
             });
         }else if($(window).width() < 641 ){
                 $("#mobile-sticky-nav").addClass("show");
+                $("#room-rates-slider").fadeIn();
                 $("#resContent").appendTo("#room-rates-slider");
         } else if($(window).width() < 1025 && $(window).width() > 639){
             $("#mobile-sticky-nav").addClass("show");
+            $("#room-rates-slider").fadeIn();
             $("#resContent").appendTo("#room-rates-slider");
              $(".feed").slick({
                 infinite: true,
@@ -151,6 +154,7 @@ $(document).ready(function () {
                 slidesToScroll: 1
             });
         } else if($(window).width() < 641 && $(window).width() > 319){
+            $("#room-rates-slider").fadeIn();
             $("#resContent").appendTo("#room-rates-slider");
              $(".feed").slick({
                 infinite: true,
index d1498c2..7a15d13 100644 (file)
@@ -125,6 +125,7 @@ $(document).ready(function () {
         if($(window).width() > 1023){
             $("#resContent").appendTo("#reservationContent");
             $("#mobile-sticky-nav").remove("show");
+            $("#room-rates-slider").removeClass("open-form");
             $(".feed").slick({
                 infinite: true,
                 slidesToShow: 3,
@@ -132,9 +133,11 @@ $(document).ready(function () {
             });
         }else if($(window).width() < 641 ){
                 $("#mobile-sticky-nav").addClass("show");
+                $("#room-rates-slider").fadeIn();
                 $("#resContent").appendTo("#room-rates-slider");
         } else if($(window).width() < 1025 && $(window).width() > 639){
             $("#mobile-sticky-nav").addClass("show");
+            $("#room-rates-slider").fadeIn();
             $("#resContent").appendTo("#room-rates-slider");
              $(".feed").slick({
                 infinite: true,
@@ -142,6 +145,7 @@ $(document).ready(function () {
                 slidesToScroll: 1
             });
         } else if($(window).width() < 641 && $(window).width() > 319){
+            $("#room-rates-slider").fadeIn();
             $("#resContent").appendTo("#room-rates-slider");
              $(".feed").slick({
                 infinite: true,