From: Anthony Talarico Date: Tue, 8 Oct 2019 15:23:40 +0000 (-0400) Subject: fixing screen resize functionality for the mobile sticky nav hide and show styles X-Git-Tag: v1.1.0^2~54 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=80306e875185d4fb3fd57093ece488f81ce4a404;p=WP-Themes%2Fpetoskeyarea.git fixing screen resize functionality for the mobile sticky nav hide and show styles --- diff --git a/js/app.js b/js/app.js index 8927ddd..9efed5f 100644 --- a/js/app.js +++ b/js/app.js @@ -129,7 +129,9 @@ $(document).ready(function () { slidesToShow: 3, slidesToScroll: 1 }); - + }else if($(window).width() < 641 ){ + $("#mobile-sticky-nav").addClass("show"); + } else if($(window).width() < 1025 && $(window).width() > 639){ $(".feed").slick({ @@ -143,8 +145,6 @@ $(document).ready(function () { slidesToShow: 1, slidesToScroll: 1 }); - }else{ - $("#mobile-sticky-nav").addClass("show"); } } diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 331172b..576624c 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -120,7 +120,9 @@ $(document).ready(function () { slidesToShow: 3, slidesToScroll: 1 }); - + }else if($(window).width() < 641 ){ + $("#mobile-sticky-nav").addClass("show"); + } else if($(window).width() < 1025 && $(window).width() > 639){ $(".feed").slick({ @@ -134,8 +136,6 @@ $(document).ready(function () { slidesToShow: 1, slidesToScroll: 1 }); - }else{ - $("#mobile-sticky-nav").addClass("show"); } }