Difference between revisions of "Team:UCSC/NavBar"

Line 3: Line 3:
 
<head>
 
<head>
 
     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
 
     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
 +
    <link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">
 
</head>
 
</head>
 
<body>
 
<body>
  
<div class="topnav" id="myTopnav">
+
  <ul class="topnav" id="myTopnav">
    <a href="https://2018.igem.org/Team:UCSC" class="active">Home</a>
+
      <li><a href="https://2018.igem.org/Team:UCSC" class="active">Home</a></li>
    <div class="dropdown">
+
      <div class="dropdown">
    <button class="dropbtn"><a href="https://2018.igem.org/Team:UCSC/Team">Team</a>
+
        <li class="dropbtn"><a href="https://2018.igem.org/Team:UCSC/Team">Team</a>
      <i class="fa fa-caret-down"></i>
+
          <i class="fa fa-caret-down"></i>
    </button>
+
        </li>
         <div class="dropdown-content">
+
         <ul class="dropdown-content">
           <a href="https://2018.igem.org/Team:UCSC/Team">Meet the Team</a>
+
           <li><a href="https://2018.igem.org/Team:UCSC/Team">Meet the Team</a></li>
           <a href="#">Collaborations</a>
+
           <li><a href="#">Collaborations</a></li>
         </div>
+
         </ul>
    </div>
+
      </div>
    <div class="dropdown">
+
      <div class="dropdown">
    <button class="dropbtn"><a href="#">Project</a>
+
        <li class="dropbtn"><a href="#">Project</a>
      <i class="fa fa-caret-down"></i>
+
          <i class="fa fa-caret-down"></i>
    </button>
+
        </li>
         <div class="dropdown-content">
+
         <ul class="dropdown-content">
           <a href="#">The Project</a>
+
           <li><a href="#">The Project</a></li>
           <a href="#">Metabolic Engineering</a>
+
           <li><a href="#">Metabolic Engineering</a></li>
           <a href="#">Modeling</a>
+
           <li><a href="#">Modeling</a></li>
           <a href="#">Results</a>
+
           <li><a href="#">Results</a></li>
           <a href="#">Target Organism</a>
+
           <li><a href="#">Target Organism</a></li>
           <a href="#">Parts</a>
+
           <li><a href="#">Parts</a></li>
         </div>
+
         </ul>
    </div>
+
      </div>
    <a href="#">Parts</a>
+
      <li><a href="#">Parts</a></li>
    <a href="#">Safety</a>
+
      <li><a href="#">Safety</a></li>
    <a href="#">Human Practices</a>
+
      <li><a href="#">Human Practices</a></li>
    <a href="#">Awards</a>
+
      <li><a href="#">Awards</a></li>
    <a href="#contact">Contact</a>
+
      <li><a href="#contact">Contact</a></li>
    <a href="https://2018.igem.org/Team:UCSC/Website-PageInProgress.html">About</a>
+
      <li><a href="Website-PageInProgress.html">About</a></li>
    <a href="javascript:void(0);" class="icon" onclick="myFunction()">
+
      <li><a href="javascript:void(0);" class="icon" onclick="myFunction()">
    <i class="fa fa-bars"></i>
+
        <i class="fa fa-bars"></i>
    </a>
+
      </a></li>
</div>
+
  </ul>
  
<script type="text/javascript">
+
  <script type="text/javascript">
  
/* Toggle between adding and removing the "responsive" class to topnav when the user clicks on the icon */
+
  /* Toggle between adding and removing the "responsive" class to topnav when the user clicks on the icon */
function myFunction() {
+
  function myFunction() {
    var x = document.getElementById("myTopnav");
+
      var x = document.getElementById("myTopnav");
    if (x.className === "topnav") {
+
      if (x.className === "topnav") {
        x.className += " responsive";
+
          x.className += " responsive";
    } else {
+
      } else {
        x.className = "topnav";
+
          x.className = "topnav";
    }
+
      }
}
+
  }
</script>
+
  </script>
  
</body>
+
  </body>
</html>
+
  </html>

Revision as of 21:34, 27 June 2018