Line 104: | Line 104: | ||
// }) | // }) | ||
scrollBar.on("scroll", (position) => { | scrollBar.on("scroll", (position) => { | ||
+ | var h = document.getElementById('topHeader'); | ||
+ | height = h.clientHeight; | ||
let header = document.querySelector('header'); | let header = document.querySelector('header'); | ||
let logo = document.querySelector('.logo'); | let logo = document.querySelector('.logo'); |