Line 1: | Line 1: | ||
<html> | <html> | ||
− | + | <head> | |
+ | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
+ | <link href="https://fonts.googleapis.com/css?family=Lato:300,300i,400,400i,700,700i|Open+Sans:300,300i,400,400i,700,700i|Roboto-Slab:400,700" rel="stylesheet"> | ||
+ | </head> | ||
− | + | <!-- Global CSS --> | |
− | + | ||
− | + | ||
− | + | <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%; | ||
+ | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | </style> | |
− | + | <link rel="stylesheet" href="https://2016.igem.org/Team:UCLA/core/foundationcss?action=raw&ctype=text/css" /> | |
− | + | <link rel="stylesheet" href="https://2016.igem.org/Team:UCLA/core/customcss?action=raw&ctype=text/css" /> | |
− | + | <div data-sticky-container> | |
− | + | <div data-sticky class="top-bar"> | |
− | + | <div class="top-bar-left"> | |
− | + | <a href="//2016.igem.org/Team:UCLA"><img class="navbar-logo" src="https://static.igem.org/mediawiki/2016/8/8f/UCLA_iGEM_Logo.png"></a> | |
− | + | </div> | |
+ | <div class="top-bar-right"> | ||
+ | <ul class="dropdown menu align-right" data-dropdown-menu> | ||
+ | <li class="navbar-blue-bg"> | ||
+ | <a href="#">Project</a> | ||
+ | <ul class="menu vertical"> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Description">Description </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Design">Design </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Experiments"> Experiments </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Proof">Proof of Concept </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Demonstrate">Demonstrate </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Results"> Results </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Notebook"> Notebook </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/InterLab"> InterLab </a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="navbar-blue-bg"> | ||
+ | <a href="#">Parts</a> | ||
+ | <ul class="menu vertical"> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Parts">Parts </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Basic_Part">Basic Parts </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Composite_Part">Composite Parts </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Part_Collection">Part Collection </a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="navbar-blue-bg"> | ||
+ | <a href="#">Human Practices</a> | ||
+ | <ul class="menu vertical"> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Human_Practices"> Human Practices </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/HP/Silver">Silver </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/HP/Gold">Gold </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Integrated_Practices">Integrated Practices </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Engagement">Engagement </a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="navbar-blue-bg"> | ||
+ | <a href="#">Awards</a> | ||
+ | <ul class="menu vertical"> | ||
+ | <li><a href="https://2016.igem.org/Team:UCLA/Entrepreneurship">Entrepreneurship </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Hardware">Hardware </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Software">Software </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Measurement">Measurement </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Model">Model </a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="navbar-blue-bg"> | ||
+ | <a href="https://2016.igem.org/Team:UCLA/Team">Team</a> | ||
+ | </li> | ||
− | + | </ul> | |
− | + | </div> | |
− | + | </div> | |
− | + | </div> | |
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | + | <!-- | |
− | + | Old menu, keeping for links | |
− | + | <ul id="accordion" class="accordion"> | |
− | + | ||
− | + | ||
− | + | <li class="menu_item"> <a href="https://2016.igem.org/Team:UCLA">HOME </a> </li> | |
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | <li class="menu_item"> <div class="icon plus"></div> TEAM | |
− | + | <ul class="submenu"> | |
− | + | <li> <a href=" https://2016.igem.org/Team:UCLA/Team"> Team </a> </li> | |
− | + | <li> <a href="https://2016.igem.org/Team:UCLA/Collaborations">★ Collaborations </a> </li> | |
− | + | </ul> | |
+ | </li> | ||
− | + | <li class="menu_item"> <div class="icon plus"></div> PROJECT | |
− | + | <ul class="submenu"> | |
− | + | <li> <a href="https://2016.igem.org/Team:UCLA/Description"> ★ Description </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:UCLA/Design"> ★ Design </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:UCLA/Experiments"> Experiments </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:UCLA/Proof"> ★ Proof of Concept </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:UCLA/Demonstrate"> ★ Demonstrate </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:UCLA/Results"> Results </a></li> | |
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Notebook"> Notebook </a></li> | ||
+ | </ul> | ||
+ | </li> | ||
− | + | <li class="menu_item"> <div class="icon plus"></div> PARTS | |
− | + | <ul class="submenu"> | |
− | + | <li> <a href="https://2016.igem.org/Team:UCLA/Parts">Parts </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:UCLA/Basic_Part"> ★ Basic Parts </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:UCLA/Composite_Part"> ★ Composite Parts </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:UCLA/Part_Collection"> ★ Part Collection </a></li> | |
+ | </ul> | ||
+ | </li> | ||
− | |||
− | + | <li class="menu_item"> <a href="https://2016.igem.org/Team:UCLA/Safety"> SAFETY </a> </li> | |
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | <li class="menu_item"> <a href="https://2016.igem.org/Team:UCLA/Attributions">★ ATTRIBUTIONS </a></li> | |
− | |||
− | + | <li class="menu_item"> <div class="icon plus"></div> HUMAN PRACTICES | |
+ | <ul class="submenu"> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Human_Practices"> Human Practices </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/HP/Silver">★ Silver </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/HP/Gold">★ Gold </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Integrated_Practices"> ★ Integrated Practices </a></li> | ||
+ | <li> <a href="https://2016.igem.org/Team:UCLA/Engagement">★ Engagement </a></li> | ||
+ | </ul> | ||
+ | </li> | ||
− | |||
− | + | <li class="menu_item"> <div class="icon plus"></div> AWARDS | |
− | + | <ul class="submenu"> | |
− | + | <li><a href="https://2016.igem.org/Team:UCLA/Entrepreneurship"> ★ Entrepreneurship </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:UCLA/Hardware"> ★ Hardware </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:UCLA/Software">★ Software </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:UCLA/Measurement">★ Measurement </a></li> | |
− | + | <li> <a href="https://2016.igem.org/Team:UCLA/Model">★ Model </a></li> | |
− | + | ||
− | + | ||
− | + | </ul> | |
− | + | </li> | |
− | + | </ul> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | --> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | <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> | ||
+ | |||
+ | <script src="https://2016.igem.org/Team:UCLA/core/foundationjs?action=raw&ctype=text/javascript"></script> | ||
</html> | </html> |
Revision as of 02:26, 11 October 2016