footnotes clicking back and forth
This commit is contained in:
parent
ba2a130517
commit
65923a609e
1 changed files with 1 additions and 9 deletions
|
@ -64,20 +64,12 @@ window.addEventListener('DOMContentLoaded', (e) => {
|
|||
|
||||
}
|
||||
|
||||
document.querySelectorAll('#TableOfContents a').forEach(i => {
|
||||
document.querySelectorAll('#TableOfContents a, .anchorz, .footnote-backref, .footnote-ref').forEach(i => {
|
||||
i.addEventListener('click', e => {
|
||||
setTimeout(() => {
|
||||
window.scrollBy({top: document.querySelector('.header').clientHeight * -1.25, behavior: 'smooth'})}, 50);
|
||||
})
|
||||
})
|
||||
|
||||
document.querySelectorAll('.anchorz').forEach(i => {
|
||||
i.addEventListener('click', e => {
|
||||
setTimeout(() => {
|
||||
window.scrollBy({ top: document.querySelector('.header').clientHeight * -1.25, behavior: 'smooth' })
|
||||
}, 50);
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
toggleAllLinks = function () {
|
||||
|
|
Loading…
Add table
Reference in a new issue