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

Line 2: Line 2:
 
<section class="d-flex flex-column">
 
<section class="d-flex flex-column">
 
     <header class="header_area" id="topHeader">
 
     <header class="header_area" id="topHeader">
         <a class="navbar-brand" href="index.html">
+
         <a class="navbar-brand logo" href="/Team:XJTU-China">
             <span class="logoMoving"></span>
+
             <embed src="https://static.igem.org/mediawiki/2021/4/43/T--XJTU-China--logo-svg.svg" type="image/svg+xml">
 
         </a>
 
         </a>
 
         <nav class="navbar navbar-expand-lg navbar-light">
 
         <nav class="navbar navbar-expand-lg navbar-light">
Line 84: Line 84:
 
         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>

Revision as of 15:22, 8 July 2021