window.onscroll = function() {
var up = document.getElementById('up');
var header = document.getElementById('header');
if (header.scrollHeight - header.scrollTop === header.clientHeight) {
if( up != 'undefined') {
up.classList.remove('d-none');
}
} else {
if( up != 'undefined') {
up.classList.add('d-none');
}
}
}
window.onscroll = function() {
var up = document.getElementById('up');
var header = document.getElementById('header');
var scrolled = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
var is_header_scrolled = scrolled > header.clientHeight;
if ( is_header_scrolled == true) {
if( up != null ) {
up.classList.remove('d-none');
}
} else {
if( up != null ) {
up.classList.add('d-none');
}
}
}