Line 2: | Line 2: | ||
<link href="https://2018.igem.org/Template:NUDT_CHINA/CSS?action=raw&ctype=text/css" rel="stylesheet"/> | <link href="https://2018.igem.org/Template:NUDT_CHINA/CSS?action=raw&ctype=text/css" rel="stylesheet"/> | ||
<script type="text/javascript" src="https://2018.igem.org/Template:NUDT_CHINA/JS?action=raw&ctype=text/javascript"></script> | <script type="text/javascript" src="https://2018.igem.org/Template:NUDT_CHINA/JS?action=raw&ctype=text/javascript"></script> | ||
+ | <script> | ||
+ | $(document).ready(function() { | ||
+ | //my_bar_for_igem | ||
+ | $(".igem_menu").hide(); | ||
+ | $(".igem_mobile_menu_bar").hide(); | ||
+ | hide_menu(); | ||
+ | }); | ||
+ | |||
+ | function hide_menu() { | ||
+ | //my_bar_for_igem is clicked | ||
+ | $("#my_bar_for_igem").click(function(){ | ||
+ | $(".igem_menu").toggle(); | ||
+ | $(".igem_menu").css("z-index","501"); | ||
+ | }); | ||
+ | $("#my_bar_for_igem").mouseleave(function(){ | ||
+ | $(".igem_mobile_menu_bar").toggle(); | ||
+ | $(".igem_mobile_menu_bar").css("z-index","501"); | ||
+ | }); | ||
+ | |||
+ | } | ||
+ | </script> | ||
<div class="container"> | <div class="container"> | ||
<div class="row clearfix"> | <div class="row clearfix"> | ||
Line 51: | Line 72: | ||
<ul class="nav navbar-nav navbar-right"> | <ul class="nav navbar-nav navbar-right"> | ||
<li id="my_bar_for_igem" style="margin-right:20px"> | <li id="my_bar_for_igem" style="margin-right:20px"> | ||
− | <a href="#"><img src=" | + | <a href="#"><img src="https://static.igem.org/mediawiki/2018/2/2a/T--NUDT_CHINA--bars_20.png"></a> |
</li> | </li> | ||
</ul> | </ul> |
Revision as of 17:33, 29 June 2018