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

(Undo revision 44176 by My Elliot (talk))
Line 97: Line 97:
 
<script>
 
<script>
 
     window.addEventListener('scroll', () => {
 
     window.addEventListener('scroll', () => {
         let pageHeight = $(window).height();
+
         var h = document.getElementById('topHeader');
        let headerHeight = $("header").height();
+
         height = h.clientHeight;
 
+
        // var h = document.getElementById('topHeader');
+
         // height = h.clientHeight;
+
        var height=0.7*pageHeight-headerHeight+5;
+
 
         let header = document.querySelector('header');
 
         let header = document.querySelector('header');
 
         let logoHolder = document.querySelector('.logoHolder');
 
         let logoHolder = document.querySelector('.logoHolder');

Revision as of 06:38, 6 August 2021