(32 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
− | + | <section class="d-flex flex-column"> | |
− | + | <div class="logoHolder"> | |
− | + | <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"> | |
− | + | <div class="container"> | |
− | + | <!-- Brand and toggle get grouped for better mobile display --> | |
− | + | <button class="navbar-toggler" type="button" data-toggle="collapse" | |
− | + | data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" | |
− | + | aria-label="Toggle navigation">MENU | |
− | + | <span class="fa fa-bars" aria-hidden="true"></span> | |
− | + | </button> | |
− | + | <!-- Collect the nav links, forms, and other content for toggling --> | |
− | + | <div class="collapse navbar-collapse offset" id="navbarSupportedContent"> | |
− | + | <ul class="nav navbar-nav menu_nav ml-auto"> | |
− | + | <li class="nav-item"><a class="nav-link" href="/Team:XJTU-China">home</a></li> | |
− | + | <li class="nav-item submenu dropdown"> | |
− | + | <a href="/Team:XJTU-China/Description" class="nav-link dropdown-toggle" | |
− | + | data-toggle="dropdown" role="button" aria-haspopup="true" | |
− | + | aria-expanded="false">Project <span class="fa fa-caret-down" | |
− | + | aria-hidden="true"></span></a> | |
− | + | <ul class="dropdown-menu"> | |
− | + | <li class="nav-item"><a class="nav-link" | |
− | + | href="/Team:XJTU-China/Description">description</a></li> | |
− | + | <li class="nav-item"> | |
− | + | <a class="nav-link" href="/Team:XJTU-China/Design">design</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> | |
− | + | </li> | |
− | + | <li class="nav-item submenu dropdown"> | |
− | + | <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" | |
− | + | aria-haspopup="true" aria-expanded="false">wetlab <span class="fa fa-caret-down" | |
− | + | aria-hidden="true"></span></a> | |
− | </ | + | <ul class="dropdown-menu"> |
− | + | <li class="nav-item"><a class="nav-link" | |
− | <li class="nav-item submenu dropdown"> | + | 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> | |
− | <li class="nav-item submenu dropdown"> | + | </li> |
− | + | <li class="nav-item submenu dropdown"> | |
− | + | <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" | |
− | + | aria-haspopup="true" aria-expanded="false">drylab <span class="fa fa-caret-down" | |
− | + | aria-hidden="true"></span></a> | |
− | + | <ul class="dropdown-menu"> | |
− | + | <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="/Team:XJTU-China/protein_model" |
− | + | style="font-size: 0.9em;">protein modelling</a></li> | |
− | <li class="nav-item submenu dropdown end"> | + | <li class="nav-item"><a class="nav-link" href="/Team:XJTU-China/Hardware">hardware</a> |
− | + | </li> | |
− | + | </ul> | |
− | + | </li> | |
− | + | <li class="nav-item submenu dropdown"> | |
− | + | <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" | |
− | + | aria-haspopup="true" aria-expanded="false">Human Practices <span | |
− | + | class="fa fa-caret-down" aria-hidden="true"></span></a> | |
− | + | <ul class="dropdown-menu"> | |
− | </ | + | <li class="nav-item"><a class="nav-link" |
− | </ | + | 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> | ||
+ | </li> | ||
+ | <li class="nav-item submenu dropdown end"> | ||
+ | <a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown" role="button" | ||
+ | aria-haspopup="true" aria-expanded="false">Team <span class="fa fa-caret-down" | ||
+ | aria-hidden="true"></span></a> | ||
+ | <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/Attributions">attributions</a></li> | ||
+ | <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> | ||
+ | </li> | ||
+ | </ul> | ||
</div> | </div> | ||
− | </ | + | </div> |
− | </ | + | </nav> |
− | </section> | + | </header> |
+ | </section> | ||
− | + | <!--movingLogo--> | |
− | + | <script> | |
− | + | var logo = $('.logo'); | |
− | + | var animData = { | |
− | + | container: logo[0], // the dom element that will contain the animation | |
− | + | renderer: 'svg', | |
− | + | loop: true, | |
− | + | autoplay: false, | |
− | + | path: 'https://static.igem.org/mediawiki/2021/c/c5/T--XJTU-China--logoMoving.txt' // the path to the animation json | |
− | + | } | |
− | + | var logoAnim = lottie.loadAnimation(animData); | |
− | + | logoAnim.setSpeed(1.5); | |
− | + | $(logo).hover(function () { logoAnim.play(); }, | |
− | + | function () { logoAnim.pause(); }) | |
− | + | </script> | |
− | + | <!--headerTransition--> | |
− | + | <script> | |
− | + | window.addEventListener('scroll', () => { | |
− | + | var h = document.getElementById('topHeader'); | |
− | + | height = h.clientHeight; | |
− | + | let header = document.querySelector('header'); | |
− | + | let logoHolder = document.querySelector('.logoHolder'); | |
− | + | let menuBtn = document.querySelector('.navbar-toggler'); | |
− | + | header.classList.toggle('sticky', window.scrollY > height); | |
− | + | logoHolder.classList.toggle('sticky', window.scrollY > height); | |
− | </script> | + | menuBtn.classList.toggle('sticky', window.scrollY > height); |
+ | }); | ||
+ | |||
+ | </script> | ||
</html> | </html> |
Latest revision as of 20:49, 21 October 2021