From: Anthony Talarico Date: Thu, 9 Nov 2017 14:48:26 +0000 (-0500) Subject: js to scroll to top of page when off canvas btn is clicked X-Git-Tag: v1.0.0^2~28 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=c504db205db703db18352459128734c3a902b5e0;p=WP-Themes%2Fmeetingsmichigan.git js to scroll to top of page when off canvas btn is clicked fixing the off canvas action item grid and adding js that will scroll the page to the top when the oc btn is clicked --- diff --git a/js/app.js b/js/app.js index ef8bb46..ec8fa66 100644 --- a/js/app.js +++ b/js/app.js @@ -49,5 +49,7 @@ $(document).ready(function () { if(/venues/.test(loc)) { $('#dropdown-venues > li').addClass('active'); } - + $('section.left-small').on("click", function(){ + window.scrollTo(0, 0); + }) }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index f0c1a69..baefe6b 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -40,5 +40,7 @@ $(document).ready(function () { if(/venues/.test(loc)) { $('#dropdown-venues > li').addClass('active'); } - + $('section.left-small').on("click", function(){ + window.scrollTo(0, 0); + }) }); diff --git a/sections/off-canvas.php b/sections/off-canvas.php index 0b3b961..b99e422 100644 --- a/sections/off-canvas.php +++ b/sections/off-canvas.php @@ -34,7 +34,7 @@
-