mirror of
https://github.com/quantum5/correcthorsebatterystaple.git
synced 2025-04-24 10:11:57 -04:00
14 lines
324 B
JavaScript
14 lines
324 B
JavaScript
import $ from 'jquery/dist/jquery'
|
|
import 'bootstrap/js/dist/util'
|
|
import 'bootstrap/js/dist/scrollspy'
|
|
|
|
$(() => {
|
|
$('#nav-anchors').find('a.nav-link').click(function () {
|
|
const $dest = $($(this).attr('href'))
|
|
$('html, body').animate({
|
|
scrollTop: $dest.offset().top - 72
|
|
}, 500)
|
|
return false
|
|
})
|
|
})
|