|
|
@@ -17,14 +17,10 @@ window.addEventListener('scroll', function(e) { |
|
|
|
grid.classList.add('moved'); |
|
|
|
mantlebar.style.display = "inline"; |
|
|
|
mantletitle.style.visibility = "hidden"; |
|
|
|
grid.style.display = "none"; |
|
|
|
window.scrollBy({top: mantletitle.clientHeight, behavior: 'smooth'}) |
|
|
|
} else if (gridrect.top > 21 && grid.classList.contains('moved')) { |
|
|
|
grid.classList.remove('moved'); |
|
|
|
mantletitle.style.visibility = "visible"; |
|
|
|
mantlebar.style.display = "none"; |
|
|
|
grid.style.display = "grid"; |
|
|
|
window.scroll({top: 0, behavior: 'smooth'}) |
|
|
|
} |
|
|
|
} else { |
|
|
|
let rightcolumn = document.querySelector('.rightcolumn'); |
|
|
@@ -48,7 +44,6 @@ window.addEventListener('scroll', function(e) { |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
window.addEventListener('DOMContentLoaded', (e) => { |
|
|
|
let par = document.querySelector("#TableOfContents > ol:first-child > li:first-child"); |
|
|
|
let s = document.createElement("span"); |
|
|
@@ -68,4 +63,11 @@ window.addEventListener('DOMContentLoaded', (e) => { |
|
|
|
document.body.appendChild(soundcite); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
document.querySelectorAll('#TableOfContents a').forEach(i => { |
|
|
|
i.addEventListener('click', e => { |
|
|
|
setTimeout(() => { |
|
|
|
window.scrollBy({top: document.querySelector('.header').clientHeight * -1.25, behavior: 'smooth'})}, 50); |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |