(52 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<head> | <head> | ||
− | <!--CSS is inlined into the webpage for sake of speed--> | + | <!-- |
+ | > CSS is inlined into the webpage for sake of speed | ||
+ | --> | ||
<!-- Banner CSS --> | <!-- Banner CSS --> | ||
Line 8: | Line 10: | ||
<style> | <style> | ||
− | + | ||
+ | #content { | ||
+ | width: 100%; | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | } | ||
+ | |||
+ | #bars_item img { | ||
+ | max-width: none; | ||
+ | } | ||
+ | |||
+ | #top_title { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | #content { | ||
+ | margin-top: -18px; | ||
+ | } | ||
+ | |||
+ | #sideMenu { | ||
+ | display: none; | ||
+ | } | ||
+ | |||
+ | .ucla-scroll-down { | ||
+ | display: block; | ||
+ | margin: 10px auto; | ||
+ | width: 50px; | ||
+ | } | ||
+ | .top-bar { | ||
+ | width: 100%; | ||
+ | } | ||
+ | #header-menu h2 { | ||
+ | color: white; | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | body { | ||
margin: 0; | margin: 0; | ||
margin-top: 16px; | margin-top: 16px; | ||
Line 20: | Line 60: | ||
#footer-bar { | #footer-bar { | ||
− | |||
width: 100%; | width: 100%; | ||
height: 3em; | height: 3em; | ||
− | |||
background-color: #00004d; | background-color: #00004d; | ||
+ | } | ||
+ | |||
+ | #sponsor-footer-bar { | ||
+ | width: 100%; | ||
+ | height: 3em; | ||
+ | background-color: darkgray; | ||
+ | } | ||
+ | |||
+ | #sponsor-footer-bar img { | ||
+ | display: inline-block; | ||
+ | height: 3em; | ||
+ | width: auto; | ||
} | } | ||
Line 90: | Line 140: | ||
text-decoration: none; | text-decoration: none; | ||
font-size: 1.2em; | font-size: 1.2em; | ||
+ | cursor: pointer; | ||
} | } | ||
Line 119: | Line 170: | ||
.dropdown-content a:hover { background-color: #001a33; } | .dropdown-content a:hover { background-color: #001a33; } | ||
+ | |||
+ | #project-header { | ||
+ | width: 100%; | ||
+ | height: 12em; | ||
+ | background-color: #1b1b32; | ||
+ | border-top: solid 1.5px white; | ||
+ | border-bottom: solid 1px white; | ||
+ | text-align: center; | ||
+ | } | ||
</style> | </style> | ||
Line 124: | Line 184: | ||
</head> | </head> | ||
+ | <link rel="stylesheet" href="https://2016.igem.org/Team:UCLA/core/customcss?action=raw&ctype=text/css" /> | ||
<div id="header-bar"> | <div id="header-bar"> | ||
<div id="header-logo-ucla-container"> | <div id="header-logo-ucla-container"> | ||
− | <a | + | <a href="https://2016.igem.org/Team:UCLA"><img id="header-logo-ucla" src="https://static.igem.org/mediawiki/2016/8/8f/UCLA_iGEM_Logo.png"></a> |
</div> | </div> | ||
<div class="header-logo-general-container"> | <div class="header-logo-general-container"> | ||
Line 135: | Line 196: | ||
<li class="dropdown"> | <li class="dropdown"> | ||
− | <a | + | <a><h2>Projects</h2></a> |
<div class="dropdown-content"> | <div class="dropdown-content"> | ||
<a href="https://2016.igem.org/Team:UCLA/Protein_Cages">Protein Cages</a> | <a href="https://2016.igem.org/Team:UCLA/Protein_Cages">Protein Cages</a> | ||
<a href="https://2016.igem.org/Team:UCLA/Super_Soldier_Bacteria">Super Soldier Systems</a> | <a href="https://2016.igem.org/Team:UCLA/Super_Soldier_Bacteria">Super Soldier Systems</a> | ||
− | <a href="https://2016.igem.org/Team:UCLA/ | + | <a href="https://2016.igem.org/Team:UCLA/InterLab">Interlab Study</a> |
</div> | </div> | ||
</li> | </li> | ||
<li class="dropdown"> | <li class="dropdown"> | ||
− | <a href=" | + | <a href="https://2016.igem.org/Team:UCLA/Parts"><h2>Parts</h2></a> |
<div class="dropdown-content"> | <div class="dropdown-content"> | ||
− | |||
<a href="https://2016.igem.org/Team:UCLA/Basic_Part">Basic Parts</a> | <a href="https://2016.igem.org/Team:UCLA/Basic_Part">Basic Parts</a> | ||
<a href="https://2016.igem.org/Team:UCLA/Composite_Part">Composite Parts</a> | <a href="https://2016.igem.org/Team:UCLA/Composite_Part">Composite Parts</a> | ||
Line 154: | Line 214: | ||
<li class="dropdown"> | <li class="dropdown"> | ||
− | <a | + | <a><h2>Outreach</h2></a> |
<div class="dropdown-content"> | <div class="dropdown-content"> | ||
− | <a href="https://2016.igem.org/Team:UCLA/ | + | <a href="https://2016.igem.org/Team:UCLA/HP/Silver">Human Practices</a> |
<a href="https://2016.igem.org/Team:UCLA/Collaborations">Collaborations</a> | <a href="https://2016.igem.org/Team:UCLA/Collaborations">Collaborations</a> | ||
</div> | </div> | ||
Line 162: | Line 222: | ||
<li class="dropdown"> | <li class="dropdown"> | ||
− | <a | + | <a><h2>Judging</h2></a> |
<div class="dropdown-content"> | <div class="dropdown-content"> | ||
<a href="https://2016.igem.org/Team:UCLA/Medal_Requirements">Medal Requirements</a> | <a href="https://2016.igem.org/Team:UCLA/Medal_Requirements">Medal Requirements</a> | ||
Line 170: | Line 230: | ||
<li class="dropdown"> | <li class="dropdown"> | ||
− | <a | + | <a><h2>Team</h2></a> |
<div class="dropdown-content"> | <div class="dropdown-content"> | ||
− | <a href="https://2016.igem.org/Team:UCLA/ | + | <a href="https://2016.igem.org/Team:UCLA/Team">Meet the Team</a> |
− | <a href="https://2016.igem.org/Team:UCLA/ | + | <a href="https://2016.igem.org/Team:UCLA/Attributions">Attributions</a> |
− | + | ||
</div> | </div> | ||
</li> | </li> | ||
Line 182: | Line 241: | ||
</div> | </div> | ||
− | + | <script> | |
+ | // This is the jquery part of your template. Try not modify any of this code since it makes your menu work. | ||
− | + | $(document).ready(function() { | |
− | + | ||
− | + | $("#HQ_page").attr('id',''); | |
− | + | ||
− | + | ||
− | + | if ( wgPageName.substring( 0, 8) == "Template") { // if the page is a template it displays the full name in a single line | |
− | + | $("#team_name").html( wgPageName ); | |
+ | } | ||
+ | |||
+ | else if ( ( (wgPageName.match(/\//g) || []).length ) == 0 ) { // if it is the home page , just print the team's name | ||
+ | $("#team_name").html( wgPageName.substring( 5, wgPageName.length ) ); | ||
+ | } | ||
+ | |||
+ | else { | ||
+ | // this adds the team's name as an h1 | ||
+ | $("#team_name").html( wgPageName.substring( 5 , wgPageName.indexOf("/") ) ); | ||
+ | |||
+ | // this adds the page's title as an h4 | ||
+ | $("#page_name").html ( ( wgPageName.substring( wgPageName.indexOf("/") + 1, wgPageName.length ) ).replace( /\/|_/g , " ") ); | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | $('#accordion').find('.menu_item').click(function(){ | ||
+ | |||
+ | //Expand or collapse this panel | ||
+ | submenu = $(this).find('.submenu'); | ||
+ | submenu.toggle(); | ||
+ | |||
+ | icon = $(this).find('.icon'); | ||
+ | |||
+ | if ( !$( submenu ).is(':visible') ) { | ||
+ | icon.removeClass("less").addClass("plus"); | ||
+ | } | ||
+ | else { | ||
+ | icon.removeClass("plus").addClass("less"); | ||
+ | } | ||
+ | |||
+ | //Hide the other panels | ||
+ | $(".submenu").not(submenu).hide(); | ||
+ | $(".icon").not(icon).removeClass("less").addClass("plus"); | ||
+ | }); | ||
+ | |||
+ | |||
+ | $(".collapsable_menu_control").click(function() { | ||
+ | $(".menu_item").toggle(); | ||
+ | }); | ||
+ | |||
+ | $( window ).resize(function() { | ||
+ | $(".menu_item").show(); | ||
+ | }); | ||
+ | |||
+ | |||
+ | }); | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | </script> | ||
</html> | </html> |
Latest revision as of 03:54, 20 October 2016