From: Anthony Talarico Date: Tue, 8 Oct 2019 15:19:34 +0000 (-0400) Subject: fixing mobile and desktop view display of the sticky nav bar in different view ports X-Git-Tag: v1.1.0^2~55 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=a246315dd214f019e2dae9ba589a42c132678a8e;p=WP-Themes%2Fpetoskeyarea.git fixing mobile and desktop view display of the sticky nav bar in different view ports --- diff --git a/js/app.js b/js/app.js index fc838f3..8927ddd 100644 --- a/js/app.js +++ b/js/app.js @@ -123,6 +123,7 @@ $(document).ready(function () { $(".feed").slick('unslick') } if($(window).width() > 1023){ + $("#mobile-sticky-nav").remove("show"); $(".feed").slick({ infinite: true, slidesToShow: 3, @@ -130,7 +131,7 @@ $(document).ready(function () { }); } else if($(window).width() < 1025 && $(window).width() > 639){ - + $(".feed").slick({ infinite: true, slidesToShow: 2, @@ -142,6 +143,8 @@ $(document).ready(function () { slidesToShow: 1, slidesToScroll: 1 }); + }else{ + $("#mobile-sticky-nav").addClass("show"); } } @@ -403,4 +406,5 @@ $(document).ready(function () { $("#resContent").appendTo("#reservationContent"); } $("#resContent").fadeIn(); + }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 7278624..331172b 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -114,6 +114,7 @@ $(document).ready(function () { $(".feed").slick('unslick') } if($(window).width() > 1023){ + $("#mobile-sticky-nav").remove("show"); $(".feed").slick({ infinite: true, slidesToShow: 3, @@ -121,7 +122,7 @@ $(document).ready(function () { }); } else if($(window).width() < 1025 && $(window).width() > 639){ - + $(".feed").slick({ infinite: true, slidesToShow: 2, @@ -133,6 +134,8 @@ $(document).ready(function () { slidesToShow: 1, slidesToScroll: 1 }); + }else{ + $("#mobile-sticky-nav").addClass("show"); } } @@ -394,4 +397,5 @@ $(document).ready(function () { $("#resContent").appendTo("#reservationContent"); } $("#resContent").fadeIn(); + });