From: Anthony Talarico Date: Fri, 3 May 2019 21:00:09 +0000 (-0400) Subject: testing removal of js snippet for sticky header to test back button issue X-Git-Tag: v1.0.0^2~20 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=34da49097c6e556b77cdd3a80c992ebb761c91ed;p=WP-Themes%2Fuptravel.git testing removal of js snippet for sticky header to test back button issue --- diff --git a/js/app.js b/js/app.js index db6e9c1..f2de76b 100644 --- a/js/app.js +++ b/js/app.js @@ -219,14 +219,14 @@ $(document).ready(function () { },500); }); - //Smooth Scrolling Using Navigation Menu - $('a[href*="#^[a-zA-Z]*$"]').on('click', function(e){ - console.log($(this)) - $('html,body').animate({ - scrollTop: $($(this).attr('href')).offset().top - 100 - },500); - e.preventDefault(); - }); + // //Smooth Scrolling Using Navigation Menu + // $('a[href*="#^[a-zA-Z]*$"]').on('click', function(e){ + // console.log($(this)) + // $('html,body').animate({ + // scrollTop: $($(this).attr('href')).offset().top - 100 + // },500); + // e.preventDefault(); + // }); //Toggle Menu $('#menu-toggle').on('click', function() { diff --git a/js/custom/stickyHeader.js b/js/custom/stickyHeader.js index a96e1e8..af5e263 100644 --- a/js/custom/stickyHeader.js +++ b/js/custom/stickyHeader.js @@ -27,14 +27,14 @@ jQuery(function($){ },500); }); - //Smooth Scrolling Using Navigation Menu - $('a[href*="#^[a-zA-Z]*$"]').on('click', function(e){ - console.log($(this)) - $('html,body').animate({ - scrollTop: $($(this).attr('href')).offset().top - 100 - },500); - e.preventDefault(); - }); + // //Smooth Scrolling Using Navigation Menu + // $('a[href*="#^[a-zA-Z]*$"]').on('click', function(e){ + // console.log($(this)) + // $('html,body').animate({ + // scrollTop: $($(this).attr('href')).offset().top - 100 + // },500); + // e.preventDefault(); + // }); //Toggle Menu $('#menu-toggle').on('click', function() {