Difference between revisions of "Template:XJTU-China/header"

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');

Revision as of 17:30, 11 July 2021