From c9eed4f2410e98eab2152f03fbee70280b94a3bf Mon Sep 17 00:00:00 2001 From: Ahmed Chouihi Date: Wed, 20 May 2020 22:35:22 +0100 Subject: [PATCH] Update selector of href I have changed the selector of href as with this recent version of jquery , this line causes problem --- components/scripts/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/scripts/script.js b/components/scripts/script.js index 5648ff6..ac5b012 100755 --- a/components/scripts/script.js +++ b/components/scripts/script.js @@ -16,7 +16,7 @@ $(function() { // Animated Scrolling - $('a[href*=#]:not([href=#])').click(function() { + $('a[href*=\\#]:not([href=\\#])').click(function() { if (location.pathname.replace(/^\//,'') === this.pathname.replace(/^\//,'') && location.hostname === this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); @@ -181,4 +181,4 @@ $(function() { offset: -topoffset }).setTween(attractionstween) .addTo(controller); -}); //on load \ No newline at end of file +}); //on load