Line 1: | Line 1: | ||
<html> | <html> | ||
<script> | <script> | ||
− | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | + | //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
− | + | $(document).ready(function () { | |
− | + | $("#HQ_page").attr('id', ''); | |
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | //highlight current page on the menu | ||
+ | highlight_current_page_menu(); | ||
− | + | //accessing submenus | |
− | + | $(".menu_item").click(function () { | |
− | + | $(".submenu_control_icon", this).toggleClass("open"); | |
− | + | $(this).next(".submenu").fadeToggle(400); | |
− | + | }); | |
− | + | ||
− | + | //mobile menu access | |
− | + | $(".igem_2018_team_mobile_bar").click(function () { | |
− | + | $(this).next().toggleClass("displaying_menu"); | |
− | + | }); | |
− | + | ||
− | + | }); | |
− | + | ||
− | + | ||
− | + | function highlight_current_page_menu() { | |
+ | |||
+ | var page_url = "https://2018.igem.org/"; | ||
+ | page_url = page_url + wgPageName; | ||
+ | $("a[href$='" + page_url + "']").children().addClass("current_page"); | ||
+ | |||
+ | //if the page is in a submenu, open the submenu and make the appropiate changes | ||
+ | if ($(".current_page").hasClass("submenu_item")) { | ||
+ | |||
+ | $(".current_page").parent().parent().fadeToggle(400); | ||
+ | $(".current_page").parent().parent().prev().addClass("current_page"); | ||
+ | $(".menu_item.current_page > .submenu_control_icon").toggleClass("open"); | ||
+ | |||
+ | } | ||
+ | } | ||
Line 47: | Line 47: | ||
<style> | <style> | ||
− | /**************************************************************************************************************************************************************************************************/ | + | /**************************************************************************************************************************************************************************************************/ |
Line 506: | Line 506: | ||
<!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | <!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | ||
− | <head> | + | <head> |
− | + | <meta charset="utf-8"> | |
− | + | <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
− | + | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
− | + | <title>Title Page</title> | |
− | + | <!-- Bootstrap CSS --> | |
− | + | <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> | |
− | + | <script src="https://cdn.bootcss.com/jquery/2.2.1/jquery.min.js"></script> | |
− | + | <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</head> | </head> | ||
Line 529: | Line 523: | ||
<!--- Menu ---> | <!--- Menu ---> | ||
<!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | <!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | ||
− | |||
− | |||
− | |||
<div class="igem_2018_team_mobile_bar"> | <div class="igem_2018_team_mobile_bar"> | ||
− | |||
− | |||
− | |||
− | |||
+ | <div class="igem_logo_mobile"> | ||
+ | <img src="https://static.igem.org/mediawiki/2018/4/4f/2018_igem_mobile_menu_logo.svg"> | ||
+ | </div> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | <div class="igem_menu_control_mobile"> | ||
+ | <img id="menu_control_image" src="https://static.igem.org/mediawiki/igem.org/3/3b/Menu_icon.svg"> | ||
+ | </div> | ||
+ | </div> | ||
<!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | <!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | ||
<!--- Content of the page ---> | <!--- Content of the page ---> | ||
<!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | <!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | ||
− | + | <style> | |
− | + | .bs-docs-nav { | |
− | + | background-color: #f8f8f8; | |
− | + | border-color: #e7e7e7; | |
− | + | } | |
− | + | .nav .navbar-nav>li .dropdown-menu {margin:0;} | |
− | + | .nav .navbar-nav>li:hover .dropdown-menu{display:block;} | |
− | + | .navbar .nav > li .dropdown-menu {margin: 0;} | |
− | + | .navbar .nav > li:hover .dropdown-menu {display: block;} | |
− | + | .rightbottom{position:fixed;bottom:50px;right:50px;} | |
− | + | </style> | |
− | + | <header class="navbar navbar-static-top bs-docs-nav" style="margin-top: 15px" id="top"> | |
− | + | <div class="container"> | |
− | + | <div class="navbar-header"> | |
− | + | <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#bs-navbar" | |
− | + | aria-controls="bs-navbar" aria-expanded="false"> | |
− | + | <span class="sr-only">Toggle navigation</span> | |
− | + | <span class="icon-bar"></span> | |
− | + | <span class="icon-bar"></span> | |
− | + | <span class="icon-bar"></span> | |
− | + | </button> | |
− | + | <a href="/" class="navbar-brand">NEU_China_B</a> | |
− | + | </div> | |
− | + | <nav id="bs-navbar" class="collapse navbar-collapse"> | |
− | + | <ul class="nav navbar-nav"> | |
− | + | <li class="dropdown"> | |
− | + | <a href="#">Project<span class="caret"></span></a> | |
− | + | <ul class="dropdown-menu"> | |
− | + | <li><a href="#">background</a></li> | |
− | + | <li> | |
− | + | <a href="https://2018.igem.org/Team:NEU_China_B/Description"> | |
− | + | Description | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | <li><a href="#"> | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</a> | </a> | ||
− | + | </li> | |
− | <a href="https://2018.igem.org/Team:NEU_China_B/ | + | <li> |
− | + | <a href="https://2018.igem.org/Team:NEU_China_B/Design"> | |
− | + | Design | |
− | + | ||
</a> | </a> | ||
− | + | </li> | |
− | <a href="https://2018.igem.org/Team:NEU_China_B/ | + | <li><a href="#">application</a></li> |
− | + | <li> | |
− | + | <a href="https://2018.igem.org/Team:NEU_China_B/Results"> | |
− | + | Results | |
</a> | </a> | ||
− | + | </li> | |
− | <a href="https://2018.igem.org/Team:NEU_China_B/ | + | <li> |
− | + | <a href="https://2018.igem.org/Team:NEU_China_B/Improve"> | |
− | + | Improvement | |
− | + | ||
</a> | </a> | ||
− | + | </li> | |
+ | <li> | ||
<a href="https://2018.igem.org/Team:NEU_China_B/Model"> | <a href="https://2018.igem.org/Team:NEU_China_B/Model"> | ||
− | + | Models | |
− | + | ||
− | + | ||
</a> | </a> | ||
− | + | </li> | |
− | <a href="https://2018.igem.org/Team:NEU_China_B/ | + | </ul> |
− | + | </li> | |
− | + | <li class="dropdown"> | |
− | + | <a href="#">Lab<span class="caret"></span></a> | |
+ | <ul class="dropdown-menu"> | ||
+ | <li> | ||
+ | <a href="https://2018.igem.org/Team:NEU_China_B/InterLab"> | ||
+ | InterLab | ||
</a> | </a> | ||
− | + | </li> | |
− | + | <li><a href="#">workflow</a></li> | |
− | <a href="https://2018.igem.org/Team:NEU_China_B/ | + | <li><a href="#">protocols</a></li> |
− | + | <li> | |
− | + | <a href="https://2018.igem.org/Team:NEU_China_B/Notebook"> | |
− | + | Notebook | |
</a> | </a> | ||
− | + | </li> | |
+ | <li><a href="#">material&equipment</a></li> | ||
+ | <li><a href="https://2018.igem.org/Team:NEU_China_B/Safety">SAFETY</a></li> | ||
+ | |||
</ul> | </ul> | ||
− | + | </li> | |
− | + | <li class="dropdown"> | |
− | < | + | <a href="#">Parts<span class="caret"></span></a> |
+ | <ul class="dropdown-menu"> | ||
+ | <li> | ||
+ | <a href="https://2018.igem.org/Team:NEU_China_B/Basic_Part"> | ||
+ | Basic Parts | ||
+ | </a> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a href="https://2018.igem.org/Team:NEU_China_B/Composite_Part"> | ||
+ | Composite Parts | ||
+ | </a> | ||
+ | </li> | ||
+ | <li><a href="#">characterization</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="dropdown"> | ||
+ | <a href="#">Human practice<span class="caret"></span></a> | ||
+ | <ul class="dropdown-menu"> | ||
+ | <li><a href="#">human practice for sliver</a></li> | ||
+ | <li><a href="#">integrated human practice for gold collaboration</a></li> | ||
+ | <li><a href="#">characterization</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="dropdown"> | ||
+ | <a href="#">Tram<span class="caret"></span></a> | ||
+ | <ul class="dropdown-menu"> | ||
+ | <li><a href="#">membership</a></li> | ||
+ | <li> | ||
+ | <a href="https://2018.igem.org/Team:NEU_China_B/Attributions"> | ||
+ | Attributions | ||
+ | </a> | ||
+ | </li> | ||
+ | <li><a href="#">medal</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | </ul> | ||
+ | <ul class="nav navbar-nav navbar-right"> | ||
+ | <!-- <li><a href="http://www.bootcss.com/" onclick="_hmt.push(['_trackEvent', 'docv3-navbar', 'click', 'V3导航-Bootstrap中文网'])" target="_blank">Bootstrap中文网</a></li> --> | ||
+ | </ul> | ||
+ | </nav> | ||
+ | </div> | ||
+ | </header> | ||
+ | <div class="rightbottom"> | ||
+ | <a class="btn btn-default" href="#top" role="button">got to top</a> | ||
+ | </div> | ||
+ | <div class="container" style="margin-top: 70px"> |
Revision as of 08:38, 4 October 2018