mirror of
https://github.com/tchartron/blow
synced 2024-11-27 14:50:56 +00:00
update
This commit is contained in:
parent
61a368c46c
commit
51d1705e98
1 changed files with 2 additions and 2 deletions
|
@ -162,10 +162,10 @@ function setNextActive(entry) {
|
|||
let res = findCorrespondingTocTitle(entry.target) //First intersection entry
|
||||
console.log(res)
|
||||
res.parentElement.classList.remove('bg-blue-800');
|
||||
res.parentElement.nextSiblingElement.classList.add('bg-blue-800');
|
||||
res.parentElement.nextElementSibling.classList.add('bg-blue-800');
|
||||
}
|
||||
function setPreviousActive(entry) {
|
||||
let res = findCorrespondingTocTitle(entry.target) //First intersection entry
|
||||
res.parentElement.classList.remove('bg-blue-800');
|
||||
res.parentElement.previousSiblingElement.classList.add('bg-blue-800');
|
||||
res.parentElement.previousElementSibling.classList.add('bg-blue-800');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue