Difference between revisions of "Template:East Chapel Hill"

 
(67 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<html>
 
<html>
 +
<head>
 +
<meta charset="utf-8">
 +
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
 +
 +
<meta name="viewport" content="width=device-width, initial-scale=1.0">
 +
 +
<!-- icons -->
 +
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
 +
 +
<!--Fonts-->
 +
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans" rel="stylesheet">
 +
 +
 +
<!--W3 School Stylesheet -->
 +
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
 +
 +
<!--Bootstrap-->
 +
<!-- Latest compiled and minified CSS -->
 +
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
 +
 +
<!-- Optional theme -->
 +
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
 +
 +
<!-- Latest compiled and minified JavaScript -->
 +
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
 +
 +
<!--Mathjax-->
 +
<script type="text/javascript" async
 +
  src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML">
 +
</script>
 +
 +
<!--jquery-->
 +
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
 +
 
<style>
 
<style>
        body {
+
/***************************************************** DEFAULT WIKI SETTINGS  ****************************************************/
            margin: 0;
+
            background-color: ##6D30F0!important;
+
/* Clear the default wiki settings */
            font: x-small sans-serif;
+
        }
+
#home_logo, #sideMenu { display:none; }
 +
#sideMenu, #top_title, .patrollink  {display:none;}
 +
#content { width:100%; padding:0px;  margin-top:50px; margin-left:0px;}
 +
body {background-color:#ffffff; }
 +
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
  
        .firstHeading, .logo_2017 {
 
            display: none;
 
        }
 
  
        #sideMenu{
+
/********************************* DEFAULT WIKI SETTINGS  ********************************/
            display: none;
+
body {
        }
+
  background-color: #ffffff;
        #content {
+
  width: 100%;
            margin-left: auto;
+
}
            align-self: center;
+
        }
+
  
        .navdiv-wrapper {
+
#bodyContent h1,
            height: 40px;
+
#bodyContent h2,
            background: rgb(126, 115, 183);
+
#bodyContent h3,
        }
+
#bodyContent h4,
 +
#bodyContent h5 {
 +
  margin-bottom: 0px;
 +
}
 +
</style>
  
        .navdiv-cover {
+
<style>
            height: 40px;
+
.description{
            position: absolute;
+
color: #7C7D7D !important;  
            background: rgb(0, 0, 0)
+
font-family: 'Josefin Sans', sans-serif;
            width: 200vw;
+
padding-left: 10%;
            left: -100vw;
+
padding-right: 10%;
 +
margin: 0 auto;
 +
position: relative;
 +
max-width: 100em;
 +
}
  
        }
+
</style>
       
+
<style>
        #content .navdiv {
+
img {
            float: none;
+
    max-width: 100%;
            margin: 0 auto;
+
    height: auto;
            left: 0;
+
    width: auto\9; /* ie8 */
        }
+
}
       
+
</style>
        #content .navdiv>a {
+
<style>
            position: relative;
+
@charset "UTF-8";
        }
+
.navigation {
 +
  height: 61px;
 +
  margin-top:10px;
 +
  padding:0;
 +
  font-size: 80%;
 +
background:white;
  
        #content .navdiv ul{
+
}
            width: 100%;
+
            height: 40px;
+
            background: rgb(126, 111, 183);
+
            line-height: 20px;
+
            color: white;
+
            margin-right: 15px;
+
            margin-top: 40px;
+
            margin-left: 0px;
+
            text-align: center;
+
           
+
        }
+
       
+
        #content .navdiv ul li a {
+
            text-decoration: none;
+
            color: white;
+
            cursor: pointer;
+
        }
+
       
+
        #content .navdiv ul li a:hover{
+
            text-decoration: none;
+
            color: white;
+
            background:rgb(150, 160, 221);
+
            -webkit-transition: all 0.3s ease;
+
            -moz-transition: all 0.3s ease;
+
            -ms-transition: all 0.3s ease;
+
            -o-transition: all 0.3s ease;
+
            transition: all 0.3s ease;
+
        }
+
       
+
        #content .navdiv ul li{
+
            list-style-type: none;
+
            display: inline-block;
+
            position: relative;
+
            color: white;
+
            padding-bottom: 10px;
+
            padding-top: 10px;
+
            padding-left: 20px;
+
            padding-right: 20px;
+
            cursor: pointer;
+
        }
+
       
+
        #content .navdiv ul li:hover{
+
            background: rgb(65, 21, 178);
+
            color: white;
+
            -webkit-transition: all 0.3s ease;
+
            -moz-transition: all 0.3s ease;
+
            -ms-transition: all 0.3s ease;
+
            -o-transition: all 0.3s ease;
+
            transition: all 0.3s ease;
+
       
+
        }
+
       
+
        .navdiv h1{
+
            width: 300px;
+
            float: left;
+
            cursor: pointer;
+
            margin-left: 15px;
+
        }
+
       
+
        .navdiv .logo-wrapper {
+
            position: absolute;
+
            top: -30px;
+
            background: white;
+
            height: 40px;
+
            border: 10px solidrgb (126, 111, 183);;
+
            height: 100px;
+
            border-radius: 100px;
+
        }
+
       
+
        .navdiv .logo-wrapper img {
+
            height: 100px;
+
            width: 100px;
+
            padding: 0px 0px 0px 0px;
+
        }
+
  
        .navdiv .logo-wrapper#team-logo {
+
.brand {
            left: -95px;
+
  position: absolute;
        }
+
  float: left;
       
+
  padding-left:2%;
        .navdiv .logo-wrapper#main-logo {
+
  line-height: 70px;
            left: 920px;
+
  text-transform: uppercase;
        }
+
  font-size: 1.4em;
 +
}
  
        /*.navdiv .logo-wrapper#main-logo {
+
.brand a,
            height: 66px;
+
.brand a:visited{
            left: -134px;
+
  color: #8B8D8E;
            border-width: 7px;
+
   text-decoration: none;
            top: -22px;
+
   font-family: 'Josefin Sans', sans-serif;
        }*/
+
   font-size: 100%;
       
+
        /*.navdiv .logo-wrapper#main-logo img {
+
            height: 56px;
+
        }*/
+
       
+
        #content .submenu {
+
            display: none;
+
            position: absolute;
+
            left: 0;
+
            top: 40px;
+
        }
+
       
+
        #content .submenu a {
+
            color: black;
+
            background: rgb(65, 21, 178);
+
            text-decoration: none;
+
            text-align: left;
+
            display: block;
+
            padding: 10px;
+
        }
+
       
+
        #content .submenu a:hover{
+
            color: white;
+
            background: rgb(65, 21, 178);
+
            border: none;
+
        }
+
       
+
        #content .navdiv ul li:hover .submenu {
+
            display: block;
+
        }
+
       
+
        /********************************* CONTENT OF THE PAGE ********************************/
+
ul.img-list {
+
   list-style-type: none;
+
   margin: 0;
+
   padding: 0;
+
  text-align: center;
+
     
+
 
}
 
}
  
ul.img-list li {
+
.nav-container {
   display: inline-block;
+
   max-width: 1500px;
  height: 150px;
+
   margin: 0 auto;
   margin: 0 0 5px 0;
+
  border: solid 2px;
+
  position: relative;
+
  width: 150px;
+
  width: calc(33% - 6px);
+
 
}
 
}
  
ul.img-list img {
+
nav {
   width: 100%;
+
   float: right;
   height: 100%
+
   background: none;
 
}
 
}
  
ul.img-home {
+
/* spacing between box in small window */
   list-style-type: none;
+
nav ul {
 +
   list-style: none;
 
   margin: 0;
 
   margin: 0;
 
   padding: 0;
 
   padding: 0;
   text-align: center;
+
   background: #FFFFFF;
   width: 950px
+
    
     
+
 
}
 
}
 
+
nav ul li {
ul.img-home li {
+
   float: left;
   display: inline-block;
+
   position: relative;
   margin: 5px 0 0 0;
+
    
   border: 0px;
+
  position: relative
+
 
}
 
}
  
ul.img-home img {
+
/* text inside navbar before */
   width: 100%;
+
nav ul li a,
   height: 100%
+
nav ul li a:visited {
 +
   display: block;
 +
   height: 56px;
 +
  padding: 0 20px;
 +
  background: #FFFFFF;
 +
  line-height: 60px;
 +
  color: #8B8D8E;
 +
  text-decoration: none;
 +
  font-family: 'Josefin Sans', sans-serif;
 +
  font-size: 120%;
 +
}
 +
nav ul li a:hover,
 +
nav ul li a:visited:hover {
 +
  background: #B3D8F5;
 +
  color: #FFFFFF;
 +
  text-decoration: none;
 +
}
 +
nav ul li a:not(:only-child):after,
 +
nav ul li a:visited:not(:only-child):after {
 +
  padding-left: 4px;
 +
  content: '▾';
 +
  text-decoration: none;
 
}
 
}
  
ul.header a {
+
nav ul li ul {
  color: #96a0dd;
+
  height: 5px;
 
}
 
}
  
ul.header a:hover {
+
 
   color: #96a0dd;
+
nav ul li ul li {
 +
  min-width: 150px;
 +
  height: 40px;
 +
  width: 100%;
 +
  //text-align: center;
 +
 
 +
 
 +
  /* make dropdown stick to top */
 +
  top: -13px;
 +
}
 +
nav ul li ul li a {
 +
   padding: 15px;
 +
  line-height: 50%;
 +
  margin: 0px;
 +
  text-decoration: none;
 +
 
 
}
 
}
  
span.text-content {
+
.nav-dropdown {
   background: #96a0dd;
+
   position: absolute;
   color: black;
+
   display: none;
   font-size: 16px;  
+
   left: -23px;
   font-family: San-serif !important;
+
   top: 65px;
   cursor: pointer;
+
   z-index: 1;
   display: table;
+
   box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
 
   height: 100%;
 
   height: 100%;
   left: 0;
+
}
 +
 
 +
/* Mobile navigation */
 +
.nav-mobile {
 +
   float:right;
 +
  display: none;
 
   position: absolute;
 
   position: absolute;
  vertical-align: middle;
 
 
   top: 0;
 
   top: 0;
   width: 100%;
+
   right: 0;
  opacity: 0;
+
   height: 20px;
   -webkit-transition: opacity 500ms;
+
   width: 70px;
   -moz-transition: opacity 500ms;
+
   background: #FFFFFF;
   -o-transition: opacity 500ms;
+
 
  transition: opacity 500ms;
+
}   
+
span.text-content span {
+
  display: table-cell;
+
  text-align: center;
+
  vertical-align: middle;
+
}
+
ul.img-list li:hover span.text-content {
+
  opacity: 1;
+
}
+
ul.img-home li:hover span.text-content {
+
  opacity: 1;
+
 
}
 
}
  
 +
@media only screen and (max-width: 950px) {
 +
  .nav-mobile {
 +
    display: block;
 +
  }
  
/*STYLING */
+
  nav {
 +
    width: 100%;
 +
    padding: 0 0 0;
 +
  }
  
/* styling for the titles */
+
  /* background of mobile dropdown */
.content_wrapper h1, .content_wrapper h2 {
+
  nav ul {
padding:5px 15px;
+
    display: none;
border-bottom:0px;
+
color:#67c0e0;
+
                font family: georgia;
+
  
}
+
    /* width of dropdown */
.content_wrapper h3, .content_wrapper h4, .content_wrapper h5, .content_wrapper h6 {
+
    position: fixed;
padding:5px 15px;  
+
    width: 180px;
border-bottom:0px;  
+
    height: auto;
color: #626566;
+
   
}
+
    top: 65px;
 +
    right: 0px;
 +
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  
 +
  }
 +
  nav ul li {
 +
    float: none;
 +
    text-align: center;
 +
  }
 +
  nav ul li a {
 +
    padding: 15px;
 +
    line-height: 20px;
 +
   
 +
  }
 +
  nav ul li ul{
 +
    float: right;
 +
 
 +
  }
  
/* font and text */
+
  /* second toggle dropdown */
.content_wrapper p {  
+
  .nav-dropdown {
padding:0px 15px;  
+
  position:absolute;
font-size: 13px;
+
 
font-family: 'Raleway', sans-serif;
+
  top: 9px;
                /*font-family: 'Helvetica', sans-serif;*/
+
  left: -212px;
}
+
  width: 190px;
 +
  height: auto;
 +
 
 +
  }
  
/* Links */
 
.content_wrapper a {
 
font-weight: bold;
 
text-decoration: underline;
 
text-decoration-color:#72c9b6;
 
color: #72c9b6;
 
-webkit-transition: all 0.4s ease;
 
-moz-transition: all 0.4s ease;
 
-ms-transition: all 0.4s ease;
 
-o-transition: all 0.4s ease;
 
transition: all 0.4s ease;
 
}
 
  
/* hover for the links */
+
  .brand{
.content_wrapper a:hover {  
+
    padding-left: 15px;
text-decoration:none;
+
    font-size: 120%;
color:#000000;
+
  }
}
+
}
  
/* non numbered lists */
 
.content_wrapper ul {
 
padding:0px 20px;
 
font-size: 13px;
 
font-family: 'Raleway', sans-serif;
 
}
 
  
/* numbered lists */
+
/* background of toggle (mobile) */
.content_wrapper ol {
+
#nav-toggle {
padding:0px;  
+
  position: absolute;
font-size: 13px;
+
  left: 5px;
font-family: 'Raleway', sans-serif;
+
  top: 22px;
}
+
  cursor: pointer;
 +
  padding: 10px 35px 16px 0px;
 +
  background: #FFFFFF;
 +
}
  
/* Table */
+
/* toggle button (mobile) */
.content_wrapper table {  
+
#nav-toggle span,
width: 97%;  
+
#nav-toggle span:before,
margin:15px 10px;  
+
#nav-toggle span:after {
border: 1px solid #d3d3d3;  
+
  cursor: pointer;
border-collapse: collapse;  
+
  border-radius: 1px;
}
+
  height: 5px;
 +
  width: 35px;
 +
  background: #8B8D8E;
 +
  position: absolute;
 +
  display: block;
 +
  content: '';
 +
  transition: all 300ms ease-in-out;
 +
}
 +
#nav-toggle span:before {
 +
  top: -10px;
 +
}
 +
#nav-toggle span:after {
 +
  bottom: -10px;
 +
}
 +
#nav-toggle.active span {
 +
  background-color: transparent;
 +
}
 +
#nav-toggle.active span:before, #nav-toggle.active span:after {
 +
  top: 0;
 +
}
 +
#nav-toggle.active span:before {
 +
  transform: rotate(45deg);
 +
}
 +
#nav-toggle.active span:after {
 +
  transform: rotate(-45deg);
 +
}
  
/* table cells */
+
h1 {
.content_wrapper  td {  
+
text-align: center;
padding: 10px;
+
font-family: 'Josefin Sans', sans-serif !important;
vertical-align: text-top;  
+
color: #7C7D7D;
border: 1px solid #d3d3d3;
+
}
border-collapse: collapse;  
+
}
+
  
/* table headers */
+
.panel-body {
.content_wrapper th {  
+
font-family: 'Arial';
padding: 10px;
+
font-size: small;
vertical-align: text-top;
+
}
border: 1px solid #d3d3d3;
+
border-collapse: collapse;  
+
background-color:#f2f2f2;  
+
}
+
  
/* Button class */
+
ul {
.button_click {  
+
    list-style-type: disc;
margin: 10px auto;
+
}
padding: 15px; width:12%; 
+
text-align:center;
+
font-weight:bold;
+
background-color: #72c9b6;
+
cursor:pointer; 
+
-webkit-transition: all 0.4s ease;
+
-moz-transition: all 0.4s ease;
+
-ms-transition: all 0.4s ease;
+
-o-transition: all 0.4s ease;
+
transition: all 0.4s ease;  
+
}
+
  
/* button class on hover */
+
.centerImage
.button_click:hover {
+
{
background-color:#000000;  
+
text-align:center;
color:#72c9b6;
+
display:block;
}
+
margin: auto;
 +
width: 80%;
 +
}
  
/* Wrapper for the content */
+
</style>
.content_wrapper {
+
<style>
width: 85%;
+
.gallery {
margin-left:150px;
+
    margin: 5px;
padding:10px 0px;  
+
    border: 1px solid #ccc;
float:left;  
+
    float: left;
background-color:white;  
+
    width: 180px;
}
+
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
 +
}
  
/*LAYOUT */
+
.gallery:hover {
.column  {  
+
    border: 1px solid #777;
padding: 10px 0px;
+
}
float:left;
+
background-color:white;  
+
}
+
  
.full_size {
+
.gallery img {
width:100%;  
+
    width: 100%;
}
+
    height: auto;
  
.full_size img {
+
}
padding: 10px 15px;
+
width:96.5%;
+
}
+
  
.half_size {
+
.imagegallery{
width: 50%;
+
overflow: hidden
}
+
}
.half_size img {
+
padding: 10px 15px;
+
width: 93%;
+
}
+
  
 +
.desc {
 +
    padding: 15px;
 +
    text-align: center;
 +
}
  
.clear {
+
#HomeImage1{
clear:both;
+
  max-width: 100%;
}
+
  margin-bottom: 0px;
 +
        margin-left: 0px;
 +
  z-index: 0;
  
.highlight {  
+
#HomeImage{
width: 90%;  
+
  max-width: 100%;
margin: auto;  
+
  margin-bottom: 0px;
padding: 15px 5px;
+
        margin-left: 0px;
background-color: #96a0dd;  
+
  z-index: 0;
}
+
position: fixed;
 +
    bottom: 0;
 +
}
  
.judges-will-not-evaluate {
+
</style>
border: 4px solid #72c9b6;
+
<style>
display: block;
+
margin: 5px 15px;
+
width: 95%;
+
font-weight:bold;
+
}
+
  
 +
div.polaroid {
 +
  width: 80%;
 +
  background-color: #d7dfed;
 +
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
 +
  margin-bottom: 25px;
 +
  display: inline-block;
 +
}
  
 +
div.pocontainer {
 +
  text-align: center;
 +
  padding: 10px 20px;
 +
}
 
</style>
 
</style>
<!-- HTML -->
 
 
 
    <div class="navdiv-wrapper">
 
        <div class="navdiv-cover"></div>
 
            <div class="navdiv">
 
                <ul>
 
                    <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Team">ABOUT US</a>
 
                        <div class="submenu">
 
                            <a href="https://2018.igem.org/Team:East_Chapel_Hill/Team">Team</a>
 
                            <a href="https://2018.igem.org/Team:East_Chapel_Hill/Attributions">Attributions</a>
 
                        </div>
 
                    </li>
 
  
                    <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Description">PROJECT</a>
+
<section class="navigation navbar-fixed-top">
                        <div class="submenu">                          
+
  <div class="nav-container">
                            <a href="https://2018.igem.org/Team:East_Chapel_Hill/Design">Design</a>
+
    <div class="brand">
                            <a href="https://2018.igem.org/Team:East_Chapel_Hill/Experiments">Experiments</a>
+
      <a rel="nofollow" rel="noreferrer" href="https://2018.igem.org/Team:East_Chapel_Hill">East Chapel Hill</a>
                            <a href="https://2018.igem.org/Team:East_Chapel_Hill/Results">Results</a>
+
    </div>
                            <a href="https://2018.igem.org/Team:East_Chapel_Hill/Demonstrate">Demonstrate</a>
+
    <nav>
                            <a href="https://2018.igem.org/Team:East_Chapel_Hill/Improve">Improve</a>
+
      <div class="nav-mobile"><a rel="nofollow" rel="noreferrer"id="nav-toggle" href="#!"><span></span></a></div>
                        </div>
+
      <ul class="nav-list">
                    </li>
+
 
 +
        <li>
 +
          <a rel="nofollow" rel="noreferrer"href="#!">Team</a>
 +
          <ul class="nav-dropdown">
 +
            <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Team">Team</a></li>
 +
            <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Collaborations">Collaborations</a></li>
 +
            <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Attributions">Attributions</a></li>
 +
       
 +
          </ul>
 +
        </li>
 +
        <li>
 +
          <a rel="nofollow" rel="noreferrer"href="#!">Project</a>
 +
          <ul class="nav-dropdown">
 +
            <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Description">Description</a></li>
 +
            <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Results">Results</a></li>
 +
      <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Measurement">Measurement</a></li>
 +
          </ul>
 +
        </li>
 +
        <li>
 +
          <a rel="nofollow" rel="noreferrer"href="#!">Lab</a>
 +
          <ul class="nav-dropdown">
 +
<li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Experiments">Experiments</a></li>
 +
            <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Safety">Safety</a></li>
 +
            <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Notebook">Notebook</a></li>
 +
 
 +
          </ul>
 +
        </li>
 +
        <li>
 +
          <a rel="nofollow" rel="noreferrer"href="https://2018.igem.org/Team:East_Chapel_Hill/Parts">Parts</a>
 +
        <!-- <ul class="nav-dropdown">
 +
            <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Parts">Parts</a></li>
 +
          </ul>-->
 +
        </li>
 +
        <li>
 +
          <a rel="nofollow" rel="noreferrer"href="#!">Human Practices</a>
 +
          <ul class="nav-dropdown">
 +
            <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Human_Practices">Human Practices</a></li>
 +
   
 +
            <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Public_Engagement">Public Engagement</a></li>
 +
          </ul>
 +
        </li>
 +
 
  
                    <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Notebook">LAB WORK</a>
+
      </ul>
                        <div class="submenu">
+
    </nav>
                            <a href="https://2018.igem.org/Team:East_Chapel_Hill/Notebook">Notebook</a>
+
  </div>
                            <a href="https://2018.igem.org/Team:East_Chapel_Hill/Parts">Parts</a>
+
</section>
                            <a href="https://2018.igem.org/Team:East_Chapel_Hill/Safety">Safety</a>
+
                        </div>
+
                    </li>
+
                   
+
                    <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Model">MODELLING</a></li>
+
                   
+
                    <li><a href="#">HUMAN PRACTICES</a>
+
                        <div class="submenu">
+
                            <a href="https://2018.igem.org/Team:East_Chapel_Hill/Human_Practices">Human Practices</a>
+
                            <a href="https://2018.igem.org/Team:East_Chapel_Hill/Public_Engagement">Public Engagement</a>
+
                                 
+
                        </div>
+
                    </li>                      
+
  
                    <li><a href="#>AWARDS</a>
 
                        <div class="submenu">
 
                            <a href="https://2018.igem.org/Team:East_Chapel_Hill/Measurement">AWARDS</a>
 
                 
 
  
                        </div>
+
<script>
                    </li>
+
(function($) { // Begin jQuery
                </ul>
+
  $(function() { // DOM ready
            </div>
+
    // If a link has a dropdown, add sub menu toggle.
        </div>
+
    $('nav ul li a:not(:only-child)').click(function(e) {
 +
      $(this).siblings('.nav-dropdown').toggle();
 +
      // Close one dropdown when selecting another
 +
      $('.nav-dropdown').not($(this).siblings()).hide();
 +
      e.stopPropagation();
 +
    });
 +
    // Clicking away from dropdown will remove the dropdown class
 +
    $('html').click(function() {
 +
      $('.nav-dropdown').hide();
 +
    });
 +
    // Toggle open and close nav styles on click
 +
    $('#nav-toggle').click(function() {
 +
      $('nav ul').slideToggle();
 +
    });
 +
    // Hamburger to X toggle
 +
    $('#nav-toggle').on('click', function() {
 +
      this.classList.toggle('active');
 +
    });
 +
  }); // end DOM ready
 +
})(jQuery); // end jQuery
 +
</script>
 +
</head>
 
</html>
 
</html>

Latest revision as of 23:51, 16 October 2018