(43 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{CSU_CHINA/Base}} | |
− | + | {{CSU_CHINA/PageBase}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | <html> | ||
<style> | <style> | ||
− | |||
− | |||
#HQ_page div.container{ | #HQ_page div.container{ | ||
padding-top:55px; | padding-top:55px; | ||
Line 140: | Line 78: | ||
min-width: 160px; | min-width: 160px; | ||
} | } | ||
+ | </style> | ||
+ | <script> | ||
+ | $(document).ready(function() | ||
+ | { | ||
+ | |||
+ | let navibar = $('ul.navigation-bar'); | ||
− | + | let navbuttonItems = $('ul.navigation-bar > li'); | |
− | + | navbuttonItems.mouseenter(function() | |
− | + | { | |
+ | var submenu = $(this).children('ul.sub-menu'); | ||
+ | submenu.stop(true,false); | ||
+ | submenu.slideDown(); | ||
+ | }); | ||
+ | navbuttonItems.mouseleave(function() | ||
+ | { | ||
+ | var submenu = $(this).children('ul.sub-menu'); | ||
+ | submenu.stop(true,false); | ||
+ | submenu.slideUp(); | ||
+ | }); | ||
− | + | ||
− | + | ||
− | + | //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"); | ||
+ | |||
+ | } | ||
+ | } | ||
− | |||
− | / | + | </script> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | <style> | ||
+ | /**************************************************************************************************************************************************************************************************/ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | /**************************************************************************************************************************************************************************************************/ | |
− | + | /* DEFAULT WIKI SETTINGS */ | |
− | + | /**************************************************************************************************************************************************************************************************/ | |
− | + | #home_logo, #sideMenu { display:none; } | |
− | + | #sideMenu, #top_title, .patrollink {display:none;} | |
− | + | #content { margin-left:0px; margin-top:-7px; padding:0px; width:100%;} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | /* body {background-color:white; } */ | |
− | + | body {background-image: url("https://static.igem.org/mediawiki/2018/8/8e/T--CSU_CHINA--template_1.jpg"); } | |
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | + | #bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; } | |
− | + | ||
− | + | ||
− | + | ||
− | + | .judges-will-not-evaluate { border: 4px solid #e4dede; padding: 2% !important; width: 92%!important;} | |
− | . | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
/**************************************************************************************************************************************************************************************************/ | /**************************************************************************************************************************************************************************************************/ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 621: | Line 466: | ||
<!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | <!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------> | ||
− | + | <!-- | |
Line 637: | Line 482: | ||
</div> | </div> | ||
− | + | --> | |
Line 649: | Line 494: | ||
<li> | <li> | ||
− | <a href='https:// | + | <a href='https://2018.igem.org/Team:CSU_CHINA/Description'> Project </a> |
<ul class="sub-menu"> | <ul class="sub-menu"> | ||
<li><a href='https://2018.igem.org/Team:CSU_CHINA/Description'>Description</a></li> | <li><a href='https://2018.igem.org/Team:CSU_CHINA/Description'>Description</a></li> | ||
<li><a href='https://2018.igem.org/Team:CSU_CHINA/Design'>Design</a></li> | <li><a href='https://2018.igem.org/Team:CSU_CHINA/Design'>Design</a></li> | ||
+ | <li><a href='https://2018.igem.org/Team:CSU_CHINA/Experiments'>Experiments</a></li> | ||
<li><a href='https://2018.igem.org/Team:CSU_CHINA/Notebook'>Notebook</a></li> | <li><a href='https://2018.igem.org/Team:CSU_CHINA/Notebook'>Notebook</a></li> | ||
− | |||
</ul> | </ul> | ||
</li> | </li> | ||
Line 681: | Line 526: | ||
<li class="long"><a href='https://2018.igem.org/Team:CSU_CHINA/Human_Practices'>Human Practices</a></li> | <li class="long"><a href='https://2018.igem.org/Team:CSU_CHINA/Human_Practices'>Human Practices</a></li> | ||
<li class="long"><a href='https://2018.igem.org/Team:CSU_CHINA/Public_Engagement'>Education & Engagement</a></li> | <li class="long"><a href='https://2018.igem.org/Team:CSU_CHINA/Public_Engagement'>Education & Engagement</a></li> | ||
+ | <li class="long"><a href='https://2018.igem.org/Team:CSU_CHINA/Collaborations'>Collaborations</a></li> | ||
</ul> | </ul> | ||
</li> | </li> | ||
Line 688: | Line 534: | ||
<ul class="sub-menu"> | <ul class="sub-menu"> | ||
<li><a href='https://2018.igem.org/Team:CSU_CHINA/Team'>Team Members</a></li> | <li><a href='https://2018.igem.org/Team:CSU_CHINA/Team'>Team Members</a></li> | ||
− | |||
<li><a href='https://2018.igem.org/Team:CSU_CHINA/Attributions'>Attributions</a></li> | <li><a href='https://2018.igem.org/Team:CSU_CHINA/Attributions'>Attributions</a></li> | ||
</ul> | </ul> |
Latest revision as of 02:04, 18 October 2018