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

Line 82: Line 82:
 
         let logo = document.querySelector('.logo');
 
         let logo = document.querySelector('.logo');
 
         header.classList.toggle('sticky', window.scrollY > height);
 
         header.classList.toggle('sticky', window.scrollY > height);
         logo.classList.toggle('sticky', window.scrollY > height);
+
         // logo.classList.toggle('sticky', window.scrollY > height);
 
     })
 
     })
 
</script>
 
</script>
  
 
</html>
 
</html>

Revision as of 15:08, 8 July 2021