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

This commit is contained in:
George Cushen 2020-08-11 23:08:40 +01:00
commit be8cae3a1f

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;