(29 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
<section class="d-flex flex-column"> | <section class="d-flex flex-column"> | ||
− | < | + | <div class="logoHolder"> |
− | + | ||
− | + | ||
<a href="/Team:XJTU-China" class="logo"></a> | <a href="/Team:XJTU-China" class="logo"></a> | ||
+ | </div> | ||
+ | <header class="header_area" id="topHeader"> | ||
+ | <div class="spacer"></div> | ||
<nav class="navbar navbar-expand-lg navbar-light"> | <nav class="navbar navbar-expand-lg navbar-light"> | ||
<div class="container"> | <div class="container"> | ||
Line 28: | Line 29: | ||
<a class="nav-link" href="/Team:XJTU-China/Design">design</a> | <a class="nav-link" href="/Team:XJTU-China/Design">design</a> | ||
</li> | </li> | ||
+ | <li class="nav-item"><a class="nav-link" | ||
+ | href="/Team:XJTU-China/Implementation">implementation</a></li> | ||
<li class="nav-item"><a class="nav-link" href="/Team:XJTU-China/Parts">parts</a> | <li class="nav-item"><a class="nav-link" href="/Team:XJTU-China/Parts">parts</a> | ||
</li> | </li> | ||
Line 37: | Line 40: | ||
aria-hidden="true"></span></a> | aria-hidden="true"></span></a> | ||
<ul class="dropdown-menu"> | <ul class="dropdown-menu"> | ||
− | <li class="nav-item"><a class="nav-link" href=" | + | <li class="nav-item"><a class="nav-link" |
− | <li class="nav-item"><a class="nav-link" href=" | + | href="/Team:XJTU-China/Engineering">engineering</a></li> |
+ | <li class="nav-item"><a class="nav-link" href="/Team:XJTU-China/Improve">improvement</a> | ||
+ | </li> | ||
+ | <li class="nav-item"><a class="nav-link" href="/Team:XJTU-China/Proof_Of_Concept" | ||
+ | style="font-size: 0.9em;">Proof | ||
+ | of Concept</a> | ||
+ | </li> | ||
+ | <li class="nav-item"><a class="nav-link" href="/Team:XJTU-China/Protocols">protocols</a> | ||
+ | </li> | ||
</ul> | </ul> | ||
</li> | </li> | ||
Line 46: | Line 57: | ||
aria-hidden="true"></span></a> | aria-hidden="true"></span></a> | ||
<ul class="dropdown-menu"> | <ul class="dropdown-menu"> | ||
− | <li class="nav-item"><a class="nav-link" href=" | + | <li class="nav-item"><a class="nav-link" href="/Team:XJTU-China/Model">modelling</a></li> |
− | <li class="nav-item"><a class="nav-link" href=" | + | <li class="nav-item"><a class="nav-link" href="/Team:XJTU-China/protein_model" |
+ | style="font-size: 0.9em;">protein modelling</a></li> | ||
+ | <li class="nav-item"><a class="nav-link" href="/Team:XJTU-China/Hardware">hardware</a> | ||
+ | </li> | ||
</ul> | </ul> | ||
</li> | </li> | ||
− | |||
<li class="nav-item submenu dropdown"> | <li class="nav-item submenu dropdown"> | ||
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" | <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" | ||
Line 56: | Line 69: | ||
class="fa fa-caret-down" aria-hidden="true"></span></a> | class="fa fa-caret-down" aria-hidden="true"></span></a> | ||
<ul class="dropdown-menu"> | <ul class="dropdown-menu"> | ||
− | <li class="nav-item"><a class="nav-link" href=" | + | <li class="nav-item"><a class="nav-link" |
− | <li class="nav-item"><a class="nav-link" href=" | + | href="/Team:XJTU-China/Human_Practices">overview</a></li> |
+ | <li class="nav-item"><a class="nav-link" | ||
+ | href="/Team:XJTU-China/Human_Practices#inspiration">interview</a></li> | ||
+ | <li class="nav-item"><a class="nav-link" | ||
+ | href="/Team:XJTU-China/Human_Practices#point_6">visit</a></li> | ||
+ | <li class="nav-item"><a class="nav-link" | ||
+ | href="/Team:XJTU-China/Human_Practices#point_7">survey</a></li> | ||
+ | <li class="nav-item"><a class="nav-link" | ||
+ | href="/Team:XJTU-China/Communication">Communication</a> | ||
+ | </li> | ||
+ | <li class="nav-item"><a class="nav-link" href="/Team:XJTU-China/Education">Education</a> | ||
+ | </li> | ||
</ul> | </ul> | ||
</li> | </li> | ||
Line 66: | Line 90: | ||
<ul class="dropdown-menu"> | <ul class="dropdown-menu"> | ||
<li class="nav-item"><a class="nav-link" href="/Team:XJTU-China/Team">crew</a></li> | <li class="nav-item"><a class="nav-link" href="/Team:XJTU-China/Team">crew</a></li> | ||
− | <li class="nav-item"><a class="nav-link" href=" | + | <li class="nav-item"><a class="nav-link" |
− | <li class="nav-item"><a class="nav-link" href=" | + | href="/Team:XJTU-China/Attributions">attributions</a></li> |
− | <li class="nav-item"><a class="nav-link" href=" | + | <li class="nav-item"><a class="nav-link" |
+ | href="/Team:XJTU-China/Contribution">contribution</a></li> | ||
+ | <li class="nav-item"><a class="nav-link" | ||
+ | href="/Team:XJTU-China/Collaborations">collaboration</a></li> | ||
+ | <li class="nav-item"><a class="nav-link" | ||
+ | href="/Team:XJTU-China/Partnership">partnership</a></li> | ||
</ul> | </ul> | ||
</li> | </li> | ||
Line 95: | Line 124: | ||
<!--headerTransition--> | <!--headerTransition--> | ||
<script> | <script> | ||
− | + | window.addEventListener('scroll', () => { | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
var h = document.getElementById('topHeader'); | var h = document.getElementById('topHeader'); | ||
height = h.clientHeight; | height = h.clientHeight; | ||
let header = document.querySelector('header'); | let header = document.querySelector('header'); | ||
− | let | + | let logoHolder = document.querySelector('.logoHolder'); |
− | let | + | let menuBtn = document.querySelector('.navbar-toggler'); |
− | header.classList.toggle('sticky', | + | header.classList.toggle('sticky', window.scrollY > height); |
− | + | logoHolder.classList.toggle('sticky', window.scrollY > height); | |
+ | menuBtn.classList.toggle('sticky', window.scrollY > height); | ||
}); | }); | ||
+ | |||
</script> | </script> | ||
</html> | </html> |
Latest revision as of 20:49, 21 October 2021