mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-22 17:15:07 +01:00
parent
2a06c26e9f
commit
3c28b8a8b2
@ -31,7 +31,7 @@
|
||||
anchor.addEventListener("click", function (e) {
|
||||
e.preventDefault();
|
||||
var id = this.getAttribute("href").substr(1);
|
||||
document.querySelector(`[id='${id}']`).scrollIntoView({
|
||||
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
|
||||
behavior: "smooth"
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user