mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-09-19 19:38:46 -04:00
parent
2a06c26e9f
commit
3c28b8a8b2
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@
|
||||||
anchor.addEventListener("click", function (e) {
|
anchor.addEventListener("click", function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var id = this.getAttribute("href").substr(1);
|
var id = this.getAttribute("href").substr(1);
|
||||||
document.querySelector(`[id='${id}']`).scrollIntoView({
|
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
|
||||||
behavior: "smooth"
|
behavior: "smooth"
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue