|
|
Line 1: |
Line 1: |
− | <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>
| |
− |
| |
− |
| |
− | <style>
| |
− |
| |
− | body {
| |
− | margin: 0;
| |
− | margin-top: 16px;
| |
− | }
| |
− |
| |
− | #header-bar {
| |
− | width: 100%;
| |
− | height: 10em;
| |
− | background-color: #00004d;
| |
− | }
| |
− |
| |
− | #footer-bar {
| |
− | position: absolute;
| |
− | width: 100%;
| |
− | height: 3em;
| |
− | bottom: 0;
| |
− | background-color: #00004d;
| |
− | }
| |
− |
| |
− | #footer-bar a { float: right; }
| |
− |
| |
− | #social-bar { margin-right: 3em; }
| |
− |
| |
− | .social-button {
| |
− | padding: .25em 1.5em 0em 1.5em;
| |
− | width: 2.5em;
| |
− | height: auto;
| |
− | }
| |
− |
| |
− | #header-logo-ucla-container { float: left; }
| |
− |
| |
− | #header-menu {
| |
− | float: right;
| |
− | font-family: sans-serif;
| |
− | margin-right: 9em;
| |
− | margin-top: 2.5em;
| |
− | list-style-type: none;
| |
− | overflow: hidden;
| |
− | }
| |
− |
| |
− | #header-logo-ucla {
| |
− | width: 10em;
| |
− | height: auto;
| |
− | margin-left: 1.5em;
| |
− | margin-top: .75em;
| |
− | }
| |
− |
| |
− | .header-logo-general {
| |
− | width: 7em;
| |
− | height: auto;
| |
− | }
| |
− |
| |
− | .header-logo-general-container {
| |
− | position: absolute;
| |
− | right: 1em;
| |
− | top: 2.9em;
| |
− | }
| |
− |
| |
− | .dropdown {
| |
− | display: inline-block;
| |
− | width: 11em;
| |
− | }
| |
− |
| |
− | .dropdown:hover {
| |
− | background-color: #001a66;
| |
− | border-top-right-radius: 10px;
| |
− | border-top-left-radius: 10px;
| |
− | }
| |
− |
| |
− | .dropdown:hover .dropdown-content {
| |
− | background-color: #001a66;
| |
− | border-bottom-right-radius: 10px;
| |
− | border-bottom-left-radius: 10px;
| |
− | }
| |
− |
| |
− | .dropdown a {
| |
− | display: inline-block;
| |
− | width: 100%;
| |
− | color: white;
| |
− | text-align: center;
| |
− | text-decoration: none;
| |
− | font-size: 1.2em;
| |
− | }
| |
− |
| |
− | .dropdown-content {
| |
− | display: none;
| |
− | position: absolute;
| |
− | width: 11em;
| |
− | background-color: #003366;
| |
− | }
| |
− |
| |
− | .dropdown:hover .dropdown-content { display: block; }
| |
− |
| |
− | .dropdown-content a:last-child:hover {
| |
− | border-bottom-left-radius: 10px;
| |
− | border-bottom-right-radius: 10px;
| |
− | }
| |
− |
| |
− | .dropdown-content a {
| |
− | color: white;
| |
− | padding-top: .7em;
| |
− | padding-bottom: .7em;
| |
− | text-align: center;
| |
− | text-decoration: none;
| |
− | display: block;
| |
− | border-top-style: solid;
| |
− | border-top-color: white;
| |
− | border-top-width: 2px;
| |
− | }
| |
− |
| |
− | .dropdown-content a:hover { background-color: #001a33; }
| |
− |
| |
− | </style>
| |
− |
| |
− |
| |
− | <div id="header-bar">
| |
− | <div id="header-logo-ucla-container">
| |
− | <a target="_blank" 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 class="header-logo-general-container">
| |
− | <a target="_blank" href="https://2016.igem.org"><img class="header-logo-general" src="https://static.igem.org/mediawiki/2016/b/b2/T--UCLA--logowhite.png"></a>
| |
− | </div>
| |
− | <div id="header-menu-container">
| |
− | <ul id="header-menu">
| |
− |
| |
− | <li class="dropdown">
| |
− | <a href="#"><h2>Projects</h2></a>
| |
− | <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/Super_Soldier_Bacteria">Super Soldier Systems</a>
| |
− | <a href="https://2016.igem.org/Team:UCLA/2016_Interlab_Study">Interlab Study</a>
| |
− | </div>
| |
− | </li>
| |
− |
| |
− | <li class="dropdown">
| |
− | <a href="#"><h2>Parts</h2></a>
| |
− | <div class="dropdown-content">
| |
− | <a href="https://2016.igem.org/Team:UCLA/Parts">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/Part_Collection">Part Collection</a>
| |
− | </div>
| |
− | </li>
| |
− |
| |
− | <li class="dropdown">
| |
− | <a href="#"><h2>Outreach</h2></a>
| |
− | <div class="dropdown-content">
| |
− | <a href="https://2016.igem.org/Team:UCLA/Human_Practices">Human Practices</a>
| |
− | <a href="https://2016.igem.org/Team:UCLA/Collaborations">Collaborations</a>
| |
− | </div>
| |
− | </li>
| |
− |
| |
− | <li class="dropdown">
| |
− | <a href="#"><h2>Judging</h2></a>
| |
− | <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/Safety">Safety</a>
| |
− | </div>
| |
− | </li>
| |
− |
| |
− | <li class="dropdown">
| |
− | <a href="#"><h2>Team</h2></a>
| |
− | <div class="dropdown-content">
| |
− | <a href="https://2016.igem.org/Team:UCLA/Meet_the_Team">Meet the Team</a>
| |
− | <a href="https://2016.igem.org/Team:UCLA/Advisors">Advisors</a>
| |
− | <a href="https://2016.igem.org/Team:UCLA/Contributions">Contributions</a>
| |
− | </div>
| |
− | </li>
| |
− |
| |
− | </ul>
| |
− | </div>
| |
− | </div>
| |
− |
| |
− | <p>PLACEHOLDER</p>
| |
− |
| |
− | <div id="footer-bar">
| |
− | <div id="social-bar">
| |
− | <a target="_top" href="mailto:igemucla@gmail.com"><img class="social-button" src="https://static.igem.org/mediawiki/2016/4/4d/T--UCLA--File_email.png"></a>
| |
− | <a target="_blank" href="https://www.twitter.com/UCLAiGEM"><img class="social-button" src="https://static.igem.org/mediawiki/2016/0/02/T--UCLA--File_twitter.png"></a>
| |
− | <a target="_blank" href="https://www.facebook.com/UCLAiGEM"><img class="social-button" src="https://static.igem.org/mediawiki/2016/d/d3/T--UCLA--File_fb.png"></a>
| |
− | </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>
| |