mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-01 00:24:05 +08:00
parent
77727e7e50
commit
93147f4340
@ -6,6 +6,12 @@ class BackToTop {
|
||||
this.targetElem = document.getElementById('header');
|
||||
this.showing = false;
|
||||
this.breakPoint = 1200;
|
||||
|
||||
if (document.body.classList.contains('flexbox')) {
|
||||
this.elem.style.display = 'none';
|
||||
return;
|
||||
}
|
||||
|
||||
this.elem.addEventListener('click', this.scrollToTop.bind(this));
|
||||
window.addEventListener('scroll', this.onPageScroll.bind(this));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user