feat: add optional .js-scroll class for smooth anchor scrolling

This commit is contained in:
George Cushen committed 2020-08-11 23:08:40 +01:00
1 parent 35287c2391
commit be8cae3a1f
1 file changed
+1 -1
+1 -1
View File
@@ -72,7 +72,7 @@
* Add smooth scrolling to all links inside the main navbar.
* --------------------------------------------------------------------------- */
$('#navbar-main li.nav-item a.nav-link').on('click', function (event) {
$('#navbar-main li.nav-item a.nav-link, .js-scroll').on('click', function (event) {
// Store requested URL hash.
let hash = this.hash;