mirror of
https://github.com/SophiaAtkinson/steamwidgets-web.git
synced 2025-06-27 18:57:41 -07:00
#5 New base layout & doc section
This commit is contained in:
@ -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');
|
||||
}
|
||||
};
|
||||
});
|
Reference in New Issue
Block a user