This commit is contained in:
github-actions[bot]
2023-10-16 03:36:10 +00:00
parent c5c867a817
commit cbb3e121f4
17 changed files with 39 additions and 39 deletions
+1 -1
View File
@@ -473,6 +473,7 @@ function scrollNav() {
if (targetLink) {
const rect = targetLink.getBoundingClientRect();
document.getElementById('site-nav').scrollBy(0, rect.top - 3*rect.height);
targetLink.removeAttribute('href');
}
}
@@ -483,7 +484,6 @@ function activateNav() {
var target = navLink();
if (target) {
target.classList.toggle('active', true);
target.removeAttribute('href');
}
while (target) {
while (target && !(target.classList && target.classList.contains('nav-list-item'))) {
File diff suppressed because one or more lines are too long