use correct class for quicknav

This commit is contained in:
2026-05-24 21:16:25 +02:00
parent 78c28b4734
commit 0714b0a68c
3 changed files with 11 additions and 5 deletions

View File

@@ -41,10 +41,10 @@
if (!hash) return;
var el = document.querySelector(hash);
if (!el) return;
document.querySelectorAll('.comment-highlighted').forEach(function(c) {
c.classList.remove('comment-highlighted');
document.querySelectorAll('.anchor-target').forEach(function(c) {
c.classList.remove('anchor-target');
});
el.classList.add('comment-highlighted');
el.classList.add('anchor-target');
}
function initFromHash() {