(40 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> | ||
+ | </div> | ||
<header class="header_area" id="topHeader"> | <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 16: | Line 17: | ||
<div class="collapse navbar-collapse offset" id="navbarSupportedContent"> | <div class="collapse navbar-collapse offset" id="navbarSupportedContent"> | ||
<ul class="nav navbar-nav menu_nav ml-auto"> | <ul class="nav navbar-nav menu_nav ml-auto"> | ||
− | <li class="nav-item | + | <li class="nav-item"><a class="nav-link" href="/Team:XJTU-China">home</a></li> |
<li class="nav-item submenu dropdown"> | <li class="nav-item submenu dropdown"> | ||
<a href="/Team:XJTU-China/Description" class="nav-link dropdown-toggle" | <a href="/Team:XJTU-China/Description" class="nav-link dropdown-toggle" | ||
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/Parts">parts</a></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> | ||
</ul> | </ul> | ||
</li> | </li> | ||
Line 36: | 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 45: | 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 55: | 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 64: | Line 89: | ||
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/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 76: | Line 106: | ||
</header> | </header> | ||
</section> | </section> | ||
− | + | ||
− | + | <!--movingLogo--> | |
− | <!-- | + | |
<script> | <script> | ||
var logo = $('.logo'); | var logo = $('.logo'); | ||
Line 88: | Line 117: | ||
path: 'https://static.igem.org/mediawiki/2021/c/c5/T--XJTU-China--logoMoving.txt' // the path to the animation json | path: 'https://static.igem.org/mediawiki/2021/c/c5/T--XJTU-China--logoMoving.txt' // the path to the animation json | ||
} | } | ||
− | var | + | var logoAnim = lottie.loadAnimation(animData); |
− | + | logoAnim.setSpeed(1.5); | |
− | $(logo).hover(function () { | + | $(logo).hover(function () { logoAnim.play(); }, |
− | function () { | + | function () { logoAnim.pause(); }) |
</script> | </script> | ||
− | + | <!--headerTransition--> | |
− | <!-- | + | |
<script> | <script> | ||
window.addEventListener('scroll', () => { | window.addEventListener('scroll', () => { | ||
Line 100: | Line 128: | ||
height = h.clientHeight; | height = h.clientHeight; | ||
let header = document.querySelector('header'); | let header = document.querySelector('header'); | ||
− | let | + | let logoHolder = document.querySelector('.logoHolder'); |
+ | let menuBtn = document.querySelector('.navbar-toggler'); | ||
header.classList.toggle('sticky', window.scrollY > height); | 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