#5 New base layout & doc section

This commit is contained in:
Daniel Brendel
2023-03-22 15:53:32 +01:00
parent 5c31b3e581
commit 01f9530645
10 changed files with 1024 additions and 892 deletions

View File

@ -227,4 +227,12 @@ window.hljs = hljs;
document.addEventListener('DOMContentLoaded', function(){
window.hljs.highlightAll();
window.onscroll = function() {
if ((document.body.scrollTop > document.getElementsByClassName('navbar')[0].offsetHeight + 100) || (document.documentElement.scrollTop > document.getElementsByClassName('navbar')[0].offsetHeight + 100)) {
document.getElementsByClassName('navbar')[0].classList.add('navbar-background-show');
} else {
document.getElementsByClassName('navbar')[0].classList.remove('navbar-background-show');
}
};
});