Difference between revisions of "Template:UCLA"

Line 1: Line 1:
 
<html>
 
<html>
  <head>
+
<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 -->
    > CSS is inlined into the webpage for sake of speed
+
    -->
+
  
    <!-- Banner CSS -->
+
<style>
  
    <style>
+
#content {
 +
  width: 100%;
 +
  margin: 0;
 +
  padding: 0;
 +
}
  
      body {
+
#bars_item img {
        margin: 0;
+
  max-width: none;
        margin-top: 16px;
+
}
      }
+
  
      #header-bar {
+
#top_title {
        width: 100%;
+
  display: none;
        height: 10em;
+
}
        background-color: #00004d;
+
      }
+
  
      #footer-bar {
+
#content {
        position: absolute;
+
  margin-top: -18px;
        width: 100%;
+
}
        height: 3em;
+
        bottom: 0;
+
        background-color: #00004d;
+
      }
+
  
      #footer-bar a { float: right; }
+
#sideMenu {
 +
  display: none;
 +
}
  
      #social-bar { margin-right: 3em; }
+
.ucla-scroll-down {
 +
  display: block;
 +
  margin: 10px auto;
 +
  width: 50px;
 +
}
 +
.top-bar {
 +
  width: 100%;
 +
}
  
      .social-button {
 
        padding: .25em 1.5em 0em 1.5em;
 
        width: 2.5em;
 
        height: auto;
 
      }
 
  
      #header-logo-ucla-container { float: left; }
 
  
      #header-menu {
+
</style>
        float: right;
+
<link rel="stylesheet" href="https://2016.igem.org/Team:UCLA/core/foundationcss?action=raw&amp;ctype=text/css" />
        font-family: sans-serif;
+
<link rel="stylesheet" href="https://2016.igem.org/Team:UCLA/core/customcss?action=raw&amp;ctype=text/css" />
        margin-right: 9em;
+
<div data-sticky-container>
        margin-top: 2.5em;
+
<div data-sticky class="top-bar">
        list-style-type: none;
+
  <div class="top-bar-left">
        overflow: hidden;
+
  <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>
  
      #header-logo-ucla {
+
  </ul>
        width: 10em;
+
  </div>
        height: auto;
+
</div>
        margin-left: 1.5em;
+
</div>
        margin-top: .75em;
+
      }
+
  
      .header-logo-general {
 
        width: 7em;
 
        height: auto;
 
      }
 
  
      .header-logo-general-container {
+
<!--
        position: absolute;
+
Old menu, keeping for links
        right: 1em;
+
<ul id="accordion" class="accordion">
        top: 2.9em;
+
      }
+
  
      .dropdown {
+
<li class="menu_item"> <a href="https://2016.igem.org/Team:UCLA">HOME </a> </li>
        display: inline-block;
+
        width: 11em;
+
      }
+
  
      .dropdown:hover {
 
        background-color: #001a66;
 
        border-top-right-radius: 10px;
 
        border-top-left-radius: 10px;
 
      }
 
  
      .dropdown:hover .dropdown-content {
+
<li class="menu_item"> <div class="icon plus"></div> TEAM
        background-color: #001a66;
+
<ul class="submenu">
        border-bottom-right-radius: 10px;
+
<li> <a href=" https://2016.igem.org/Team:UCLA/Team"> Team  </a> </li>
        border-bottom-left-radius: 10px;
+
<li> <a href="https://2016.igem.org/Team:UCLA/Collaborations">★  Collaborations </a> </li>
      }
+
                    </ul>
 +
                </li>
  
      .dropdown a {
+
<li class="menu_item"> <div class="icon plus"></div> PROJECT 
        display: inline-block;
+
<ul class="submenu">
        width: 100%;
+
<li> <a href="https://2016.igem.org/Team:UCLA/Description"> ★  Description </a></li>
        color: white;
+
<li> <a href="https://2016.igem.org/Team:UCLA/Design"> ★ Design </a></li>
        text-align: center;
+
<li> <a href="https://2016.igem.org/Team:UCLA/Experiments"> Experiments </a></li>
        text-decoration: none;
+
<li> <a href="https://2016.igem.org/Team:UCLA/Proof"> ★ Proof of Concept </a></li>
        font-size: 1.2em;
+
<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>
  
      .dropdown-content {
+
<li class="menu_item"> <div class="icon plus"></div> PARTS 
        display: none;
+
<ul class="submenu">
        position: absolute;
+
<li> <a href="https://2016.igem.org/Team:UCLA/Parts">Parts </a></li>
        width: 11em;
+
<li> <a href="https://2016.igem.org/Team:UCLA/Basic_Part"> ★ Basic Parts </a></li>
        background-color: #003366;
+
<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>
  
      .dropdown:hover .dropdown-content { display: block; }
 
  
      .dropdown-content a:last-child:hover {
+
<li class="menu_item"> <a href="https://2016.igem.org/Team:UCLA/Safety"> SAFETY </a> </li>
        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; }
+
<li class="menu_item"> <a href="https://2016.igem.org/Team:UCLA/Attributions">★  ATTRIBUTIONS </a></li>
  
    </style>
 
  
  </head>
+
<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>
  
  <body>
 
  
    <div id="header-bar">
+
<li class="menu_item"> <div class="icon plus"></div> AWARDS
      <div id="header-logo-ucla-container">
+
<ul class="submenu">
        <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>
+
<li><a href="https://2016.igem.org/Team:UCLA/Entrepreneurship"> ★ Entrepreneurship </a></li>
      </div>
+
<li> <a href="https://2016.igem.org/Team:UCLA/Hardware"> ★ Hardware </a></li>
      <div class="header-logo-general-container">
+
<li> <a href="https://2016.igem.org/Team:UCLA/Software">★ Software </a></li>
        <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>
+
<li> <a href="https://2016.igem.org/Team:UCLA/Measurement">★  Measurement </a></li>
      </div>
+
<li> <a href="https://2016.igem.org/Team:UCLA/Model">★ Model </a></li>
      <div id="header-menu-container">
+
        <ul id="header-menu">
+
  
          <li class="dropdown">
+
                    </ul>
            <a href="#"><h2>Projects</h1></a>
+
                </li>
            <div class="dropdown-content">
+
</ul>
              <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</h1></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</h1></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">
+
<script>
            <a href="#"><h2>Judging</h1></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">
+
// This is the jquery part of your template. Try not modify any of this code since it makes your menu work.
            <a href="#"><h2>Team</h1></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>
+
$(document).ready(function() {
      </div>
+
    </div>
+
  
    <p>PLACEHOLDER</p>
+
$("#HQ_page").attr('id','');
 +
  
    <div id="footer-bar">
+
if ( wgPageName.substring( 0,  8) == "Template")  {  // if the page is a template it displays the full name in a single line
      <div id="social-bar">
+
$("#team_name").html( wgPageName );
        <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>
+
  
  </body>
+
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&amp;ctype=text/javascript"></script>
  
 
</html>
 
</html>

Revision as of 02:26, 11 October 2016