Difference between revisions of "Template:UCLA"

 
(54 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!DOCTYPE html>
 
 
<html>
 
<html>
 
   <head>
 
   <head>
Line 11: Line 10:
 
     <style>
 
     <style>
  
      body {
+
 
 +
#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 23: Line 60:
  
 
       #footer-bar {
 
       #footer-bar {
        position: absolute;
 
 
         width: 100%;
 
         width: 100%;
 
         height: 3em;
 
         height: 3em;
        bottom: 0;
 
 
         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 93: Line 140:
 
         text-decoration: none;
 
         text-decoration: none;
 
         font-size: 1.2em;
 
         font-size: 1.2em;
 +
        cursor: pointer;
 
       }
 
       }
  
Line 122: 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 127: Line 184:
 
   </head>
 
   </head>
  
  <body>
+
<link rel="stylesheet" href="https://2016.igem.org/Team:UCLA/core/customcss?action=raw&amp;ctype=text/css" />
 
+
 
     <div id="header-bar">
 
     <div id="header-bar">
 
       <div id="header-logo-ucla-container">
 
       <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>
+
         <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 140: Line 196:
  
 
           <li class="dropdown">
 
           <li class="dropdown">
             <a href="#"><h2>Projects</h1></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/2016_Interlab_Study">Interlab Study</a>
+
               <a href="https://2016.igem.org/Team:UCLA/InterLab">Interlab Study</a>
 
             </div>
 
             </div>
 
           </li>
 
           </li>
  
 
           <li class="dropdown">
 
           <li class="dropdown">
             <a href="#"><h2>Parts</h1></a>
+
             <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/Parts">Parts</a>
 
 
               <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 159: Line 214:
  
 
           <li class="dropdown">
 
           <li class="dropdown">
             <a href="#"><h2>Outreach</h1></a>
+
             <a><h2>Outreach</h2></a>
 
             <div class="dropdown-content">
 
             <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/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 167: Line 222:
  
 
           <li class="dropdown">
 
           <li class="dropdown">
             <a href="#"><h2>Judging</h1></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 175: Line 230:
  
 
           <li class="dropdown">
 
           <li class="dropdown">
             <a href="#"><h2>Team</h1></a>
+
             <a><h2>Team</h2></a>
 
             <div class="dropdown-content">
 
             <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/Team">Meet the Team</a>
               <a href="https://2016.igem.org/Team:UCLA/Advisors">Advisors</a>
+
               <a href="https://2016.igem.org/Team:UCLA/Attributions">Attributions</a>
              <a href="https://2016.igem.org/Team:UCLA/Contributions">Contributions</a>
+
 
             </div>
 
             </div>
 
           </li>
 
           </li>
Line 187: Line 241:
 
     </div>
 
     </div>
  
    <p>PLACEHOLDER</p>
+
<script>
 +
// This is the jquery part of your template.  Try not modify any of this code since it makes your menu work.
  
    <div id="footer-bar">
+
$(document).ready(function() {
      <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>
+
$("#HQ_page").attr('id','');
        <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>
+
if ( wgPageName.substring( 0,  8) == "Template")  {  // if the page is a template it displays the full name in a single line
    </div>
+
$("#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>
  
  </body>
 
  
 
</html>
 
</html>

Latest revision as of 03:54, 20 October 2016