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