Difference between revisions of "Template:East Chapel Hill"

 
(63 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">
  
<style>
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
  
/********************************* DEFAULT WIKI SETTINGS  ********************************/
+
<!-- icons -->
 +
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  
#sideMenu, #top_title {display:none;}
+
<!--Fonts-->
#content { padding:0px; width:98%;}
+
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans" rel="stylesheet">
body {background-color:white; width:100%;}
+
        #bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
+
  
/********************************* MENU ********************************/
 
/* Wrapper for the menu */
 
.menu_wrapper {
 
width:150px;
 
height:100vh;
 
position:fixed;
 
padding:0px;
 
float:left;
 
background-color:#5452bf;
 
text-align:left;
 
}
 
  
/* styling for the menu items */
+
<!--W3 School Stylesheet -->
.menu_item {
+
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
width:100%;
+
margin:-2px 0px 0px -20px;
+
padding: 10px 10px; 
+
border-bottom: 1px solid #d3d3d3;
+
font-weight:bold;
+
color:#5452bf;
+
cursor: pointer;
+
}
+
  
/* when hovering on a menu item */
+
<!--Bootstrap-->
.menu_item:hover {
+
<!-- Latest compiled and minified CSS -->
color:#000000;
+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
background-color: #5452bf;
+
}
+
  
/* decoration icon for the menu buttons*/
+
<!-- Optional theme -->
.icon {
+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
float:right; 
+
font-size:16px;
+
font-weight:bold;
+
}
+
+
/* this is the icon for when the content is collapsed */
+
.plus::before {
+
content: "+";
+
}
+
/* this is the icon for when the content is expanded */
+
.less::before {
+
content: "";
+
}
+
  
/* styling for the ul that creates the buttons */
+
<!-- Latest compiled and minified JavaScript -->
ul.menu_items {
+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
width:100%;
+
margin-left:0px;
+
padding:0px;
+
list-style: none;
+
}
+
  
/* styling for the li that are the menu items */
+
<!--Mathjax-->
.menu_items li {
+
<script type="text/javascript" async
width:90%;
+
  src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML">
margin-top:-2px;
+
</script>
padding: 15px 0px 15px 15px ;
+
display:block;
+
border-bottom: 1px solid #d3d3d3; 
+
text-align:left;
+
font-weight:bold;
+
text-decoration:none;
+
color:#5452bf;
+
list-style-type:none;
+
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; 
+
}
+
  
.menu_item a {
+
<!--jquery-->
width: 100%;
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
margin-left: -20px;
+
padding: 11px 90px 12px 20px;
+
text-decoration: none;
+
color:black;
+
}
+
  
/* When hovering on a menu item */
+
<style>
.menu_items li:hover {  
+
/***************************************************** DEFAULT WIKI SETTINGS  ****************************************************/
background-color:#5452bf;
+
color: #000000;
+
/* Clear the default wiki settings */
}
+
 +
#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; }
  
/* styling for the submenus */
 
.submenu {
 
width:100%;
 
display: none; 
 
font-weight:bold;
 
cursor:pointer;
 
  
}
+
/********************************* DEFAULT WIKI SETTINGS  ********************************/
 +
body {
 +
  background-color: #ffffff;
 +
  width: 100%;
 +
}
  
/* moving the margin for the submenu ul list */
+
#bodyContent h1,
ul.submenu {  
+
#bodyContent h2,
width: 100%;
+
#bodyContent h3,
margin: 10px 0px -11px 0px;
+
#bodyContent h4,
list-style: none;
+
#bodyContent h5 {
}
+
  margin-bottom: 0px;
 +
}
 +
</style>
  
/*styling for the submenu buttons */
+
<style>
.submenu li {  
+
.description{
width: 100%;  
+
color: #7C7D7D !important;  
margin-left: 10px;
+
font-family: 'Josefin Sans', sans-serif;
margin-bottom: 0px;
+
padding-left: 10%;
}
+
padding-right: 10%;
 +
margin: 0 auto;
 +
position: relative;
 +
max-width: 100em;
 +
}
  
 +
</style>
 +
<style>
 +
img {
 +
    max-width: 100%;
 +
    height: auto;
 +
    width: auto\9; /* ie8 */
 +
}
 +
</style>
 +
<style>
 +
@charset "UTF-8";
 +
.navigation {
 +
  height: 61px;
 +
  margin-top:10px;
 +
  padding:0;
 +
  font-size: 80%;
 +
background:white;
  
/* hover state for the submenu buttons */
+
}
.submenu li a {
+
width: 100%;
+
padding: 5px 10px;
+
display: inline-block;
+
border-bottom: 1px solid #d3d3d3;
+
background-color:white;
+
text-decoration:none;
+
color:#000000;
+
}
+
  
 +
.brand {
 +
  position: absolute;
 +
  float: left;
 +
  padding-left:2%;
 +
  line-height: 70px;
 +
  text-transform: uppercase;
 +
  font-size: 1.4em;
 +
}
  
 +
.brand a,
 +
.brand a:visited{
 +
  color: #8B8D8E;
 +
  text-decoration: none;
 +
  font-family: 'Josefin Sans', sans-serif;
 +
  font-size: 100%;
 +
}
  
.submenu li a:hover  {
+
.nav-container {
background-color:#000000;  
+
  max-width: 1500px;
color: #5452bf;
+
  margin: 0 auto;
}
+
}
  
 +
nav {
 +
  float: right;
 +
  background: none;
 +
}
  
/* When the screen is smaller than 680px, the menu has the option to hide/show - this button controls that */
+
/* spacing between box in small window */
.collapsable_menu_control {  
+
nav ul {
width:100%;  
+
  list-style: none;
padding: 15px 0px;
+
  margin: 0;
display:none;  
+
  padding: 0;
background-color:#000000;  
+
  background: #FFFFFF;
text-align:center; 
+
 
font-weight:bold;
+
}
color:#72c9b6;
+
nav ul li {
cursor:pointer;  
+
  float: left;
-webkit-transition: all 0.4s ease;  
+
  position: relative;
-moz-transition: all 0.4s ease;
+
 
-ms-transition: all 0.4s ease;
+
}
-o-transition: all 0.4s ease;
+
transition: all 0.4s ease;
+
}
+
  
/* when hovering on that button */
+
/* text inside navbar before */
.collapsable_menu_control:hover {  
+
nav ul li a,
background-color: #5452bf;
+
nav ul li a:visited {
color:#000000;
+
  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;
 +
}
  
/********************************* CONTENT OF THE PAGE ********************************/
+
nav ul li ul {
 +
  height: 5px;
 +
}
  
/* Wrapper for the content */
 
.content_wrapper {
 
width: 85%;
 
margin-left:150px;
 
padding:10px 0px;
 
float:left;
 
background-color:white;
 
}
 
  
/*LAYOUT */
+
nav ul li ul li {
.column  {  
+
  min-width: 150px;
padding: 10px 0px;
+
  height: 40px;
float:left;  
+
  width: 100%;
background-color:white;  
+
  //text-align: center;
}
+
 
  
.full_size {
+
  /* make dropdown stick to top */
width:98%;  
+
  top: -13px;
}
+
}
 +
nav ul li ul li a {
 +
  padding: 15px;
 +
  line-height: 50%;
 +
  margin: 0px;
 +
  text-decoration: none;
 +
 
 +
}
  
.full_size img {  
+
.nav-dropdown {
padding: 10px 15px;
+
  position: absolute;
width:96.5%;  
+
  display: none;
}
+
  left: -23px;
 +
  top: 65px;
 +
  z-index: 1;
 +
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
 +
  height: 100%;
 +
}
  
.half_size {
+
/* Mobile navigation */
width: 50%;  
+
.nav-mobile {
}
+
  float:right;
.half_size img {
+
  display: none;
padding: 10px 15px;
+
  position: absolute;
width: 93%;  
+
  top: 0;
}
+
  right: 0;
 +
  height: 20px;
 +
  width: 70px;
 +
  background: #FFFFFF;
  
 +
}
  
.clear {
+
@media only screen and (max-width: 950px) {
clear:both;
+
  .nav-mobile {
}
+
    display: block;
 +
  }
  
.highlight {  
+
  nav {
width: 90%;  
+
    width: 100%;
margin: auto;
+
    padding: 0 0 0;
padding: 15px 5px;
+
  }
background-color: #f2f2f2;  
+
}
+
  
.judges-will-not-evaluate {
+
  /* background of mobile dropdown */
border: 4px solid #72c9b6;
+
  nav ul {
display: block;
+
    display: none;
margin: 5px 15px;
+
width: 95%;
+
font-weight:bold;
+
}
+
  
 +
    /* width of dropdown */
 +
    position: fixed;
 +
    width: 180px;
 +
    height: auto;
 +
   
 +
    top: 65px;
 +
    right: 0px;
 +
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  
/*STYLING */
+
  }
 +
  nav ul li {
 +
    float: none;
 +
    text-align: center;
 +
  }
 +
  nav ul li a {
 +
    padding: 15px;
 +
    line-height: 20px;
 +
   
 +
  }
 +
  nav ul li ul{
 +
    float: right;
 +
 
 +
  }
  
/* styling for the titles */
+
  /* second toggle dropdown */
.content_wrapper h1, .content_wrapper h2 {
+
  .nav-dropdown {
padding:5px 15px;  
+
  position:absolute;
border-bottom:0px;  
+
 
color:#72c9b6;
+
  top: 9px;
 +
  left: -212px;
 +
  width: 190px;
 +
  height: auto;
 +
 
 +
  }
  
}
 
.content_wrapper h3, .content_wrapper h4, .content_wrapper h5, .content_wrapper h6 {
 
padding:5px 15px;
 
border-bottom:0px;
 
color: #000000; 
 
}
 
  
 +
  .brand{
 +
    padding-left: 15px;
 +
    font-size: 120%;
 +
  }
 +
}
  
/* font and text */
 
.content_wrapper p {
 
padding:0px 15px;
 
font-size: 13px;
 
font-family: 'Ubuntu', sans-serif;
 
                font-family: 'Indie Flower', cursive;
 
font-family: 'Muli', sans-serif;
 
font-family: 'PT Sans', sans-serif;
 
font-family: 'Prompt', sans-serif;
 
font-family: 'Raleway', sans-serif;
 
}
 
  
/* Links */
+
/* background of toggle (mobile) */
.content_wrapper a {  
+
#nav-toggle {
font-weight: bold;  
+
  position: absolute;
text-decoration: underline;
+
  left: 5px;
text-decoration-color:#72c9b6;
+
  top: 22px;
color: #72c9b6;
+
  cursor: pointer;
-webkit-transition: all 0.4s ease;
+
  padding: 10px 35px 16px 0px;
-moz-transition: all 0.4s ease;
+
  background: #FFFFFF;
-ms-transition: all 0.4s ease;
+
}
-o-transition: all 0.4s ease;
+
transition: all 0.4s ease;
+
}
+
  
/* hover for the links */
+
/* toggle button (mobile) */
.content_wrapper a:hover {  
+
#nav-toggle span,
text-decoration:none;
+
#nav-toggle span:before,
color:#000000;
+
#nav-toggle span:after {
}
+
  cursor: pointer;
 +
  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);
 +
}
  
/* non numbered lists */
+
h1 {
.content_wrapper ul {
+
text-align: center;
padding:0px 20px;
+
font-family: 'Josefin Sans', sans-serif !important;
font-size: 13px;
+
color: #7C7D7D;
font-family: 'Ubuntu', sans-serif;
+
}
                font-family: 'Indie Flower', cursive;
+
font-family: 'Muli', sans-serif;
+
font-family: 'PT Sans', sans-serif;
+
font-family: 'Prompt', sans-serif;
+
font-family: 'Raleway', sans-serif;  
+
}
+
  
/* numbered lists */
+
.panel-body {
.content_wrapper ol {
+
font-family: 'Arial';
padding:0px;
+
font-size: small;
font-size: 13px;
+
}
font-family: 'Ubuntu', sans-serif;
+
                font-family: 'Indie Flower', cursive;
+
font-family: 'Muli', sans-serif;
+
font-family: 'PT Sans', sans-serif;
+
font-family: 'Prompt', sans-serif;
+
font-family: 'Raleway', sans-serif;  
+
}
+
  
/* Table */
+
ul {
.content_wrapper table {  
+
    list-style-type: disc;
width: 97%;
+
}
margin:15px 10px;
+
border: 1px solid #d3d3d3;
+
border-collapse: collapse;  
+
}
+
  
/* table cells */
+
.centerImage
.content_wrapper  td {  
+
{
padding: 10px;
+
text-align:center;
vertical-align: text-top;  
+
display:block;
border: 1px solid #d3d3d3;  
+
margin: auto;
border-collapse: collapse;  
+
width: 80%;
}
+
}
  
/* table headers */
+
</style>
.content_wrapper th {  
+
<style>
padding: 10px;  
+
.gallery {
vertical-align: text-top;
+
    margin: 5px;
border: 1px solid #d3d3d3;  
+
    border: 1px solid #ccc;
border-collapse: collapse;  
+
    float: left;
background-color:#f2f2f2;  
+
    width: 180px;
}
+
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
 +
}
  
/* Button class */
+
.gallery:hover {
.button_click {  
+
    border: 1px solid #777;
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 */
+
.gallery img {
.button_click:hover {
+
    width: 100%;
background-color:#000000;  
+
    height: auto;
color:#72c9b6;
+
}
+
  
/********************************* RESPONSIVE STYLING ********************************/
+
}
  
/* IF THE SCREEN IS LESS THAN 1000PX */
+
.imagegallery{
 +
overflow: hidden
 +
}
  
@media only screen and (max-width: 1000px) {
+
.desc {
 +
    padding: 15px;
 +
    text-align: center;
 +
}
  
#content {width:98%; }
+
#HomeImage1{
.menu_wrapper {width:15%;}
+
  max-width: 100%;
.content_wrapper {margin-left: 15%;}
+
  margin-bottom: 0px;
.menu_item {display:block;}
+
        margin-left: 0px;
.icon {display:none;}
+
  z-index: 0;
.highlight {padding:10px 0px;}
+
}
+
  
 +
#HomeImage{
 +
  max-width: 100%;
 +
  margin-bottom: 0px;
 +
        margin-left: 0px;
 +
  z-index: 0;
 +
position: fixed;
 +
    bottom: 0;
 +
}
  
/* IF THE SCREEN IS LESS THAN 680PX */
+
</style>
 +
<style>
  
@media only screen and (max-width: 680px) {
+
div.polaroid {
.collapsable_menu_control { display:block;}
+
  width: 80%;
.menu_item {display:none;}
+
  background-color: #d7dfed;
.menu_wrapper { width:100%; height: 15%; position:relative;}
+
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
.content_wrapper {width:100%; margin-left:0px;}
+
  margin-bottom: 25px;
.column.half_size {width:100%; }
+
  display: inline-block;
.column img { width: 100%; padding: 5px 0px;}
+
}
.icon {display:block;}
+
.highlight {padding:15px 5px;}
+
}
+
  
 +
div.pocontainer {
 +
  text-align: center;
 +
  padding: 10px 20px;
 +
}
 
</style>
 
</style>
  
 +
<section class="navigation navbar-fixed-top">
 +
  <div class="nav-container">
 +
    <div class="brand">
 +
      <a rel="nofollow" rel="noreferrer" href="https://2018.igem.org/Team:East_Chapel_Hill">East Chapel Hill</a>
 +
    </div>
 +
    <nav>
 +
      <div class="nav-mobile"><a rel="nofollow" rel="noreferrer"id="nav-toggle" href="#!"><span></span></a></div>
 +
      <ul class="nav-list">
 +
 
 +
        <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>
  
  
 
+
      </ul>
<!--- THIS IS WHERE THE HTML BEGINS --->
+
    </nav>
 
+
  </div>
 
+
</section>
<!-- This tells the browser that your page is responsive -->
+
 
+
<head>
+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
+
<link type="text/css" href="https://2018.igem.org/Team:East_Chapel_Hill/main?action=raw&amp;ctype=text/css" rel="stylesheet"> <!--modifies css based on bootstrap.css-->
+
  <script src="https://2018.igem.org/Team:East_Chapel_Hill/jquery?action=raw&ctype=text/javascript"></script> <!--necessary for bootstrap-->
+
  <script src="https://2018.igem.org/Team:East_Chapel_Hill/bootstrapjs?action=raw&ctype=text/javascript"></script>
+
  <!-- Font Awesome for icons-->
+
  <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet">
+
  <!--Set width to the width of the device-->
+
  <meta name="viewport" content="width=device-width, initial-scale=1">
+
<div class="example3">
+
<nav class="navbar navbar-default" style="margin-bottom: 0px">
+
<div class="container-fluid">
+
    <div class="navbar-header">
+
    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar3">
+
          <span class="sr-only">Toggle navigation</span>
+
          <!--Three Spans below create buttons in iOS-->
+
          <span class="icon-bar"></span>
+
          <span class="icon-bar"></span>
+
          <span class="icon-bar"></span>
+
        </button>
+
</div>
+
 
+
<!--Logo-->
+
<a class="navbar-left" href="https://2018.igem.org/Team:East_Chapel_Hill">
+
<img id="logo" src="http://via.placeholder.com/350x150" width="80px" ></a>
+
<!--Navigation Bar specifications Below-->
+
        <div id="navbar3" class="navbar-collapse collapse">
+
        <ul class="nav navbar-nav navbar-right">
+
 
+
          <li class="dropdown">
+
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">People <span class="caret"></span></a>
+
            <ul class="dropdown-menu" role="menu">
+
                                                  <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Team">Members</a></li>
+
                                         
+
                                                  <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Attributions">Attributions</a></li>
+
            </ul>
+
          </li>
+
 
+
          <li class="dropdown">
+
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Collaborations <span class="caret"></span></a>
+
            <ul class="dropdown-menu" role="menu">
+
                                                  <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Collaborations">Overview</a></li>
+
                                               
+
            </ul>
+
          </li>
+
 
+
          <li class="dropdown">
+
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Project <span class="caret"></span></a>
+
            <ul class="dropdown-menu" role="menu">
+
                                                  <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/Design">Design</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/Improve">Improve</a></li>
+
            </ul>
+
          </li>
+
 
+
          <li class="dropdown">
+
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Biology <span class="caret"></span></a>
+
            <ul class="dropdown-menu" role="menu">
+
                                                  <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/Notebook">Notebook</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/Parts">Parts</a></li>
+
                                                  <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Basic_Part">Basic Parts</a></li>
+
                                                  <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Part_Collection">Part Collection</a></li>
+
            </ul>
+
          </li>
+
+
<li class="dropdown">
+
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Modeling <span class="caret"></span></a>
+
            <ul class="dropdown-menu" role="menu">
+
                                                  <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Modell">Model Overview</a></li>
+
            </ul>
+
          </li>
+
 
+
<li class="dropdown">
+
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Human Practices<span class="caret"></span></a>
+
            <ul class="dropdown-menu" role="menu">
+
                                                  <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Human_Practices</a></li>
+
                                                  <li><a href="https://2018.igem.org/Team:East_Chapel_Hill/Public_Engagement">Public Engagement</a></li>
+
                                           
+
            </ul>
+
          </li>
+
 
+
+
            </ul>
+
          </li>
+
 
+
        </ul>
+
      </div>
+
      <!---->
+
</div><!--Close container-fluid-->
+
</nav>
+
</div><!--Close class=example3-->
+
<!--ends navbar-->
+
 
+
 
+
</head>
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
  
  
 
<script>
 
<script>
 
+
(function($) { // Begin jQuery
// This is the jquery part of your template.  Try not modify any of this code since it makes your menu work.
+
  $(function() { // DOM ready
 
+
    // If a link has a dropdown, add sub menu toggle.
$(document).ready(function() {
+
     $('nav ul li a:not(:only-child)').click(function(e) {
 
+
      $(this).siblings('.nav-dropdown').toggle();
$("#HQ_page").attr('id','');
+
      // Close one dropdown when selecting another
+
      $('.nav-dropdown').not($(this).siblings()).hide();
 
+
      e.stopPropagation();
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 );
+
    // Clicking away from dropdown will remove the dropdown class
}
+
    $('html').click(function() {
 
+
      $('.nav-dropdown').hide();
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 ) );
+
    // Toggle open and close nav styles on click
}
+
    $('#nav-toggle').click(function() {
 
+
      $('nav ul').slideToggle();
else {
+
    });
// this adds the team's name as an h1
+
    // Hamburger to X toggle
$("#team_name").html( wgPageName.substring( 5 , wgPageName.indexOf("/")  ) );
+
    $('#nav-toggle').on('click', function() {
 
+
      this.classList.toggle('active');
// this adds the page's title as an h4
+
    });
$("#page_name").html (     ( wgPageName.substring( wgPageName.indexOf("/") + 1, wgPageName.length ) ).replace( /\/|_/g , " ")  );
+
  }); // end DOM ready
}
+
})(jQuery); // end jQuery
 
+
 
+
 
+
 
+
$('#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>
 
+
</head>
 
+
 
</html>
 
</html>

Latest revision as of 23:51, 16 October 2018