Line 6: | Line 6: | ||
<html> | <html> | ||
<head> | <head> | ||
− | + | <style type="text/css"> | |
− | <style type="text/css"> | + | |
<!-- | <!-- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
/****************************** About Menu ************************************/ | /****************************** About Menu ************************************/ | ||
#menu_list_division{ | #menu_list_division{ | ||
Line 95: | Line 22: | ||
min-width: 880px; | min-width: 880px; | ||
max-width: 1100px; | max-width: 1100px; | ||
− | margin: 0; | + | margin: 0 auto 30px; |
padding: 0 auto; | padding: 0 auto; | ||
display: table; | display: table; | ||
Line 138: | Line 65: | ||
} | } | ||
.menu_list_class li:hover ul li{ | .menu_list_class li:hover ul li{ | ||
− | |||
height: 48px; | height: 48px; | ||
− | |||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | .drop_menu{ | |
+ | visibility: hidden; | ||
position: absolute; | position: absolute; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
top: 100%; | top: 100%; | ||
margin: 0; | margin: 0; | ||
Line 164: | Line 76: | ||
} | } | ||
.drop_menu li{ | .drop_menu li{ | ||
− | + | float: left; | |
− | + | list-style: none; | |
− | + | position: relative; | |
− | + | } | |
− | + | #experiment_list{ | |
+ | left: -200%; | ||
+ | width: 800%; | ||
+ | } | ||
+ | #experiment_list li{ | ||
+ | width: 25%; | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
} | } | ||
− | + | #human_practices_list{ | |
− | + | left: -400%; | |
− | + | width: 800%; | |
+ | } | ||
+ | #human_practices_list li{ | ||
+ | width: 25%; | ||
margin: 0; | margin: 0; | ||
− | + | padding: 0; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | #parts_list{ | |
− | + | left: -300%; | |
+ | width: 600%; | ||
} | } | ||
− | + | #parts_list li{ | |
− | + | width: 33.33%; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
− | |||
− | |||
− | |||
} | } | ||
− | + | #about_us_list{ | |
− | + | left: -700%; | |
− | + | width: 800%; | |
− | + | } | |
+ | #about_us_list li{ | ||
+ | width: 16.66%; | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
--></style> | --></style> | ||
+ | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | ||
</head> | </head> | ||
<body> | <body> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<div id="menu_list_division"> | <div id="menu_list_division"> | ||
<ul id="menu_list" class="menu_list_class"> | <ul id="menu_list" class="menu_list_class"> | ||
<li><a href="https://2016.igem.org/Team:Tokyo_Tech/Project">Project</a></li> | <li><a href="https://2016.igem.org/Team:Tokyo_Tech/Project">Project</a></li> | ||
<li><a href="https://2016.igem.org/Team:Tokyo_Tech/Medal">Achievements</a></li> | <li><a href="https://2016.igem.org/Team:Tokyo_Tech/Medal">Achievements</a></li> | ||
− | <li><a href="javascript:void(0);">Experiment</a> | + | <li><a href="javascript:void(0);" id="experiment_link">Experiment</a> |
<ul id="experiment_list" class="drop_menu"> | <ul id="experiment_list" class="drop_menu"> | ||
<li><a>1. Toxin Assay</a> | <li><a>1. Toxin Assay</a> | ||
Line 363: | Line 131: | ||
<li><a href="https://2016.igem.org/Team:Tokyo_Tech/Toxin_Assay/Adjustment_of_Expression_of_MazF" style="font-size: 14px">1.1. Adjustment of Expression of MazF</a></li> | <li><a href="https://2016.igem.org/Team:Tokyo_Tech/Toxin_Assay/Adjustment_of_Expression_of_MazF" style="font-size: 14px">1.1. Adjustment of Expression of MazF</a></li> | ||
<li><a href="https://2016.igem.org/Team:Tokyo_Tech/Toxin_Assay/mazEF_System_Assay">1.2. <span style="font-style : italic">mazEF</span> System Assay</a></li> | <li><a href="https://2016.igem.org/Team:Tokyo_Tech/Toxin_Assay/mazEF_System_Assay">1.2. <span style="font-style : italic">mazEF</span> System Assay</a></li> | ||
− | + | <li><a href="https://2016.igem.org/Team:Tokyo_Tech/Toxin_Assay/Queens_Capricious">1.3. Queen's Capricious</a></li> | |
− | <li><a href="https://2016.igem.org/Team:Tokyo_Tech/Toxin_Assay/Queens_capricious">1. | + | <li><a href="https://2016.igem.org/Team:Tokyo_Tech/Toxin_Assay/Queens_capricious">1.4. <span style="font-style : italic">yafNO</span> System Assay</a></li> |
</ul><!-- /toxin_list --> | </ul><!-- /toxin_list --> | ||
</li> | </li> | ||
Line 375: | Line 143: | ||
</li> | </li> | ||
<li><a href="https://2016.igem.org/Team:Tokyo_Tech/AmiE_Assay">3. AmiE Assay</a></li> | <li><a href="https://2016.igem.org/Team:Tokyo_Tech/AmiE_Assay">3. AmiE Assay</a></li> | ||
− | <li><a style="font-size: 14px | + | <li><a style="font-size: 14px;">4. Temperature Dependent Promoter Assay</a> |
− | <ul id="promoter_list" class="second_level_menu | + | <ul id="promoter_list" class="second_level_menu assay_menu"> |
<li><a href="https://2016.igem.org/Team:Tokyo_Tech/Promoter_Assay/Pcold">4.1. Pcold</a></li> | <li><a href="https://2016.igem.org/Team:Tokyo_Tech/Promoter_Assay/Pcold">4.1. Pcold</a></li> | ||
<li><a href="https://2016.igem.org/Team:Tokyo_Tech/Promoter_Assay/Pheat">4.2. Pheat</a></li> | <li><a href="https://2016.igem.org/Team:Tokyo_Tech/Promoter_Assay/Pheat">4.2. Pheat</a></li> | ||
Line 384: | Line 152: | ||
</li> | </li> | ||
<li><a href="https://2016.igem.org/Team:Tokyo_Tech/Model">Model</a></li> | <li><a href="https://2016.igem.org/Team:Tokyo_Tech/Model">Model</a></li> | ||
− | <li><a href="https://2016.igem.org/Team:Tokyo_Tech/Human_Practices">Human Practices</a> | + | <li><a href="https://2016.igem.org/Team:Tokyo_Tech/Human_Practices" id="human_practice_link">Human Practices</a> |
<ul id="human_practices_list" class="drop_menu"> | <ul id="human_practices_list" class="drop_menu"> | ||
<li><a href="https://2016.igem.org/Team:Tokyo_Tech/Human_Practices#overview">Human Practices Overview</a></li> | <li><a href="https://2016.igem.org/Team:Tokyo_Tech/Human_Practices#overview">Human Practices Overview</a></li> | ||
Line 392: | Line 160: | ||
</ul><!-- /human_practices_list --> | </ul><!-- /human_practices_list --> | ||
</li> | </li> | ||
− | <li><a href=" | + | <li><a href="javascript:void(0);" id="submitted_parts_link">Submitted Parts</a> |
<ul id="parts_list" class="drop_menu"> | <ul id="parts_list" class="drop_menu"> | ||
<li><a href="https://2016.igem.org/Team:Tokyo_Tech/Parts">Overview</a></li> | <li><a href="https://2016.igem.org/Team:Tokyo_Tech/Parts">Overview</a></li> | ||
Line 401: | Line 169: | ||
<li><a href="https://2016.igem.org/Team:Tokyo_Tech/Collaborations">Collaborations</a> | <li><a href="https://2016.igem.org/Team:Tokyo_Tech/Collaborations">Collaborations</a> | ||
</li> | </li> | ||
− | <li><a href="javascript:void(0);">About us</a> | + | <li><a href="javascript:void(0);" id="about_us_link">About us</a> |
− | <ul id=" | + | <ul id="about_us_list" class="drop_menu"> |
<li class="drop_list"><a href="https://2016.igem.org/Team:Tokyo_Tech/Description">Description</a></li> | <li class="drop_list"><a href="https://2016.igem.org/Team:Tokyo_Tech/Description">Description</a></li> | ||
<li class="drop_list"><a href="https://2016.igem.org/Team:Tokyo_Tech/Team">Team</a></li> | <li class="drop_list"><a href="https://2016.igem.org/Team:Tokyo_Tech/Team">Team</a></li> | ||
Line 413: | Line 181: | ||
</ul><!-- /menu_list --> | </ul><!-- /menu_list --> | ||
</div><!-- /menu_list_division --> | </div><!-- /menu_list_division --> | ||
− | + | <script> | |
− | </ | + | |
+ | |||
+ | $(function(){ | ||
+ | $('#experiment_link').hover( | ||
+ | function(){ | ||
+ | swipeIn($(this).attr('id'), '-200%') | ||
+ | }, | ||
+ | function(){ | ||
+ | swipeOut($(this).attr('id'), '-200%') | ||
+ | } | ||
+ | ); | ||
+ | |||
+ | $('#human_practice_link').hover( | ||
+ | function(){ | ||
+ | swipeIn($(this).attr('id'), '-400%') | ||
+ | }, | ||
+ | function(){ | ||
+ | swipeOut($(this).attr('id'), '-400%') | ||
+ | } | ||
+ | ); | ||
+ | |||
+ | $('#submitted_parts_link').hover( | ||
+ | function(){ | ||
+ | swipeIn($(this).attr('id'), '-300%') | ||
+ | }, | ||
+ | function(){ | ||
+ | swipeOut($(this).attr('id'), '-300%') | ||
+ | } | ||
+ | ); | ||
+ | |||
+ | $('#about_us_link').hover( | ||
+ | function(){ | ||
+ | swipeIn($(this).attr('id'), '-700%') | ||
+ | }, | ||
+ | function(){ | ||
+ | swipeOut($(this).attr('id'), '-700%') | ||
+ | } | ||
+ | ); | ||
+ | |||
+ | |||
+ | function swipeIn(swipeMenuId, positionLeft){ | ||
+ | console.log(swipeMenuId + " " + positionLeft); | ||
+ | var drop_menu = $('#'+swipeMenuId).next('ul.drop_menu'); | ||
+ | drop_menu.css('left', '1000%'); | ||
+ | drop_menu.css('visibility', 'visible'); | ||
+ | drop_menu.stop().animate({ | ||
+ | 'left': positionLeft | ||
+ | }, 500); | ||
+ | $('.assay_menu').css('visibility', 'hidden'); | ||
+ | } | ||
+ | |||
+ | function swipeOut(swipeMenuId, positionLeft){ | ||
+ | var drop_menu = $('#'+swipeMenuId).next('ul.drop_menu'); | ||
+ | |||
+ | $(drop_menu, $('#'+swipeMenuId).parent()).mouseout( | ||
+ | /* | ||
+ | function(){ | ||
+ | $(this).css('visibility', 'visible'); | ||
+ | },*/ | ||
+ | function(){ | ||
+ | drop_menu.stop().animate({ | ||
+ | 'left': '-1500%', | ||
+ | }, { | ||
+ | 'duration': 500, | ||
+ | 'complete': function(){ | ||
+ | drop_menu.css('visibility', 'hidden'); | ||
+ | drop_menu.css('left', positionLeft); | ||
+ | } | ||
+ | }); | ||
+ | } | ||
+ | ); | ||
+ | |||
+ | } | ||
+ | }); | ||
+ | </script> | ||
</body> | </body> | ||
</html> | </html> | ||
{{Team:Tokyo_Tech/template2016}} | {{Team:Tokyo_Tech/template2016}} |
Revision as of 00:46, 19 October 2016