Difference between revisions of "Template:Austin UTexas"

 
(98 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<html>
 
<html>
 +
<style>
  
<script>
+
/********************************* DEFAULT WIKI SETTINGS  ********************************/
  
// This is the jquery part of your template. 
+
#sideMenu, #top_title {display:none;}
// Try not modify any of this code too much since it makes your menu work.
+
#content { padding:0px; width:100%; margin-top: 0px; margin-left:0px;}
 +
body {background-color:#ffffff; }
 +
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; margin-top: 0px}
  
$(document).ready(function() {
+
/********************************* MENU ********************************/
  
$("#HQ_page").attr('id','');
+
/*********************new menu formatting*******************/
  
// call the functions that control the menu  
+
.menu-wrap {
menu_functionality();  
+
    width:100%;
hide_show_menu();
+
    background:#000000;
 +
    position:relative;
 +
}
 +
 +
.menu {
 +
    margin-top:-10px;
 +
    padding:0;
 +
    position: fixed;
 +
    z-index:1;
 +
    left: 0px;
 +
    width:100%;
 +
    background:#000000;
 +
    opacity: 0.9
 +
}
 +
 +
.menu li {
 +
    margin:0px;
 +
    list-style:none;
 +
}
 +
 +
.menu a {
 +
    transition:all linear 0.15s;
 +
    padding:10px;
 +
    color:#ffffff;
 +
}
 +
 +
.menu li:hover > a, .menu .current-item > a {
 +
    text-decoration:none;
 +
    color:#000000;
 +
}
 +
 +
.menu .arrow {
 +
    font-size:11px;
 +
    line-height:0%;
 +
}
 +
 +
/*----- Top Level -----*/
 +
menu > ul {
 +
    white-space: nowrap;
 +
    margin: 0;
 +
}
  
  
 +
.menu > ul > li {
 +
    margin-top:-5px;
 +
    float:left;
 +
    display:inline-block;
 +
    position:relative;
 +
    font-size:12px;
 +
}
 +
 +
.menu > ul > li > a {
 +
      display: inline-block;
 +
      float: none;
 +
}
 +
 +
.menu > ul > li:hover > a, .menu > ul > .current-item > a {
 +
    background:#2cb1b4;
 +
    font-weight: bold;
 +
}
 +
 +
/*----- Bottom Level -----*/
 +
.menu li:hover ul {
 +
    display:block;
 +
}
 +
 +
.sub-menu {
 +
    width:200%;
 +
    padding:0px 0px;
 +
    position:absolute;
 +
    top:90%;
 +
    left:0px;
 +
    transition:opacity linear 0.15s;
 +
    box-shadow:0px 2px 3px rgba(0,0,0,0.2);
 +
    background:#000000;
 +
    display:none;
 +
    z-index:1;
 +
}
 +
 +
.sub-menu li {
 +
    display:block;
 +
    font-size:13px;
 +
}
 +
 +
.sub-menu li a {
 +
    padding:10px 10px;
 +
    display:block;
 +
}
 +
 +
.sub-menu li a:hover, .sub-menu .current-item a {
 +
    text-color:#000000;
 +
    background:#1a61db;
 +
    font-weight: bold;
 +
}
  
//this function controls the expand and collapse buttons of the menu and changes the +/- symbols
 
function menu_functionality() {
 
  
//when clicking on a "menu_button", it will change the "+/-" accordingly and it will show/hide the corresponding submenu
 
$(".menu_button").click(function(){
 
  
// add or remove the class "open" , this class holds the "-"
 
$(this).children().toggleClass("open");
 
// show or hide the submenu
 
$(this).next('.submenu_wrapper').fadeToggle(400);
 
});
 
  
// when the screen size is smaller than 800px, the display_menu_control button appears and will show/hide the whole menu
+
/* Wrapper for the menu */
$("#display_menu_control").click(function(){
+
.menu_wrapper {  
$('#menu_content').fadeToggle(400);
+
width:100%;
});
+
                margin-top:-10px;
 +
                margin-left:-20px;
 +
height:0px;
 +
position:fixed;
 +
padding:0px;
 +
display:inline;
 +
                list-style: none;
 +
              box-shadow:0px 1px 3px rgba(0,0,0,0.2);
 +
}
  
// call the current page highlight function
 
highlight_current_page();
 
}
 
  
 +
/* styling for the menu items */
 +
.menu_item {
 +
                background-color:#f2f2f2;
 +
width:11%;
 +
                float:left;
 +
margin:0px 0px 0px 0px;
 +
                padding-top: 10px;
 +
                padding-bottom: 10px;
 +
border-bottom: 1px solid #d3d3d3;
 +
font-weight:bold;
 +
                text-align: center;
 +
color:#000000;
 +
cursor: pointer;
 +
                list-style: none;
 +
}
  
// call the highlight current page function to show it on the menu with a different background color
+
/* when hovering on a menu item */
function highlight_current_page() {
+
.menu_item:hover {  
 
+
color:#000000;
// select a page from the menu based on the id assigned to it and the current page name and add the class "current page" to make it change background color
+
background-color: #DF7F3E;
$("#"+  wgPageName.substring(wgPageName.lastIndexOf("/")+1, wgPageName.length ) + "_page").addClass("current_page");
+
}
  
// now that the current_page class has been added to a menu item, make the submenu fade in
+
/* decoration icon for the menu buttons*/
$(".current_page").parents(".submenu_wrapper").fadeIn(400);
+
.icon {
// change the +/- symbol of the corresponding menu button
+
float:left;
$(".current_page").parents(".submenu_wrapper").prev().children().toggleClass("open");
+
font-size:12px;
+
font-weight:bold;  
}
+
}
 
+
 
+
 
+
// allow button on the black menu bar to show/hide the side menu
+
function hide_show_menu() {
+
 
 
// in case you preview mode is selected, the menu is hidden for better visibility
+
/* this is the icon for when the content is collapsed */
if (window.location.href.indexOf("submit") >= 0) {
+
.plus::before {
$(".igem_2017_menu_wrapper").hide();
+
content:"";
}
+
                color:#1a61db;
 +
}
 +
/* this is the icon for when the content is expanded */
 +
.less::before {
 +
content: "";
 +
                color:#1a61db;
 +
}
  
// if the black menu bar has been loaded
+
/* styling for the ul that creates the buttons */
  if (document.getElementById('bars_item')) {
+
ul.menu_items {
 +
width:100%;
 +
margin-left:0px;
 +
padding:0px;
 +
list-style: none;
 +
}
  
// when the "bars_item" has been clicked
+
/* styling for the li that are the menu items */
$("#bars_item").click(function() {
+
.menu_items li {  
$("#sideMenu").hide();
+
width:100%;
 +
margin-top: 0px;
 +
padding: 0px 0px 0px 0px ;
 +
display:block;
 +
border-bottom: 1px solid #d3d3d3
 +
font-weight:bold;
 +
text-decoration:none;
 +
color:#000000;
 +
                text-align:left;
 +
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; 
 +
}
  
// show/hide the menu wrapper
+
.menu_item a {
$(".igem_2017_menu_wrapper").fadeToggle("100");
+
width: 100%;
});
+
margin-left: -20px;
  }  
+
padding: 11px 90px 12px 20px;
 +
text-decoration: none;
 +
color:black;
 +
}
  
// because the black menu bars loads at a different time than the rest of the page, this function is set on a time out so it can run again in case it has not been loaded yet
+
/* When hovering on a menu item */
else {
+
.menu_items li:hover {  
    setTimeout(hide_show_menu, 15);
+
background-color:#ff9900;
}
+
color: #000000;
}
+
}
  
 +
/* styling for the submenus */
 +
.submenu {
 +
width:100%;
 +
display: none; 
 +
font-weight:bold;
 +
cursor:pointer;
  
});
+
}
  
 +
/* moving the margin for the submenu ul list */
 +
ul.submenu {
 +
width: 100%;
 +
margin: 10px 0px -11px 0px;
 +
list-style: none;
 +
}
  
</script>
+
/*styling for the submenu buttons */
 +
.submenu li {
 +
width: 100%;
 +
margin-left: 10px;
 +
margin-bottom: 0px;
 +
                list-style-type: none;
 +
}
  
  
 +
/* 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;
 +
}
  
 +
.submenu li a:hover  {
 +
background-color:#000000;
 +
color: #1ab9db;
 +
}
  
  
<style>
+
/* When the screen is smaller than 680px, the menu has the option to hide/show - this button controls that */
 +
.collapsable_menu_control {
 +
width:100%;
 +
padding: 15px 0px;
 +
display:none;
 +
background-color:#000000;
 +
text-align:center; 
 +
font-weight:bold;
 +
color:#1ab9db;
 +
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;
 +
}
  
 +
/* when hovering on that button */
 +
.collapsable_menu_control:hover {
 +
background-color: #1a61db;
 +
color:#000000; 
 +
}
  
 +
/********************************* CONTENT OF THE PAGE ********************************/
  
/***************************************************** DEFAULT WIKI SETTINGS  ****************************************************/
+
/* Wrapper for the content */
+
/* Clear the default wiki settings */
+
+
#home_logo, #sideMenu { display:none; }
+
#sideMenu, #top_title, .patrollink  {display:none;}
+
#content { width:100%; padding:0px;  margin-top:-7px; margin-left:0px;}
+
body {background-color:white; }
+
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
+
  
+
        .background {
/****************** MENU SETTINGS *******************/
+
                background-color: #FFFFFF;
<head>
+
        }
<style>
+
.content_wrapper {
ul {
+
width: 100%;
    list-style-type: none;
+
margin-left: 0px;
    margin: 0;
+
                margin-right: 0px;
    padding: 0;
+
                margin-top: 10px;
    overflow: hidden;
+
padding: 0px 0px;  
    background-color: #333;
+
float: left;  
}
+
}
  
li {
+
/*LAYOUT */
    float: left;
+
.column  {  
}
+
width: 100%;
 +
  margin-left: auto ;
 +
                margin-right: auto ;
 +
                margin-top: 20px;
 +
}
  
li a, .dropbtn {
+
        .full_size{
    display: inline-block;
+
width:80%;  
    color: white;
+
}
    text-align: center;
+
    padding: 14px 16px;
+
    text-decoration: none;
+
}
+
  
li a:hover, .dropdown:hover .dropbtn {
+
.full_size_outer{
    background-color: red;
+
width:80%;
}
+
              background: #ffffff;
 +
}
  
li.dropdown {
+
      /* only use inside .full_size_outer */
    display: inline-block;
+
        .full_size_inner{
}
+
width:100%;  
 +
}
  
.dropdown-content {
+
.full_size img {  
    display: none;
+
padding: 10px 0px;
    position: absolute;
+
                width: 100%;
    background-color: #f9f9f9;
+
}
    min-width: 160px;
+
       
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
+
        .seventh_size {
    z-index: 1;
+
                width: 14.28%;
}
+
                text-align: center;
 +
                float:left;
 +
        }
  
.dropdown-content a {
+
        .sixth_size{
    color: black;
+
                width: 20%;
    padding: 12px 16px;
+
                text-align: center;
    text-decoration: none;
+
                float:left;
    display: block;
+
        }
    text-align: left;
+
}
+
  
.dropdown-content a:hover {background-color: #f1f1f1}
+
        .fifth_size {
 +
                width: 20%;
 +
                text-align:center;
 +
                float:left;
 +
        }
 +
.half_size {
 +
width: 50%;
 +
                float:left;
 +
}
 +
.half_size img {
 +
padding: 0px 15px;
 +
width: 93%;
 +
}
  
.dropdown:hover .dropdown-content {
 
    display: block;
 
}
 
</style>
 
</head>
 
  
+
.clear {
 +
clear:both;
 +
}
  
 +
.highlight {
 +
width: 100%;
 +
margin: auto;
 +
padding: 0px 5px;
 +
background-color: #f2f2f2;
 +
}
  
/***************************************************** CONTENT OF THE PAGE ****************************************************/
+
.judges-will-not-evaluate {
 
+
border: 4px solid #1a61db;
/* Wrapper for the content */
+
display: block;
.igem_2017_content_wrapper {
+
margin: 5px 15px;
width: 81%;
+
width: 95%;
margin: 2%;
+
font-weight:bold;
display:block;
+
float:left;  
+
background-color:white;  
+
font-family:Tahoma, Geneva, sans-serif;  
+
 
}
 
}
  
 +
  
/********************************* HTML STYLING *********************************/
+
/*STYLING */
 +
 
 +
/* styling for the titles */
 +
.content_wrapper h1 {
 +
                padding: 0px 15px;
 +
border-bottom:0px;
 +
color:#1ab9db;
 +
                font-family: 'Georgia', serif;
  
/* styling for the titles h1 h2 */
 
.igem_2017_content_wrapper h1, .igem_2017_content_wrapper h2 {
 
padding:5px 15px;
 
border-bottom: 0px;
 
color: #3399ff;
 
 
}
 
}
 +
        .content_wrapper h2 {
 +
padding: 20px 20px;
 +
border-bottom:0px;
 +
color:#1ab9db;
 +
                font-family: 'Georgia', serif;
 +
                font-size: 40px;
  
 
+
}
/* styling for the titles  h3 h4 h5 h6*/
+
.content_wrapper h3 {
.igem_2017_content_wrapper h3, .igem_2017_content_wrapper h4, .igem_2017_content_wrapper h5, .igem_2017_content_wrapper h6 {  
+
padding: 7px 15px;
padding:5px 15px;  
+
border-bottom:0px;
 +
color: #1ab9db;
 +
                font-family: 'Georgia', serif;
 +
                font-size: 30px; 
 +
}
 +
        .content_wrapper h4, .content_wrapper h5, .content_wrapper h6 {  
 +
padding: 1px 15px;  
 
border-bottom:0px;  
 
border-bottom:0px;  
color: #000000;   
+
color: #1ab9db;
 +
                font-family: 'Georgia', serif;
 +
                font-size: 20px;   
 
}
 
}
  
  
 
/* font and text */
 
/* font and text */
.igem_2017_content_wrapper p {  
+
.content_wrapper p {  
padding: 0px 15px;  
+
padding:1px 15px;  
font-size: 13px;
+
font-size: 17px;
 +
font-family:'Georgia', serif;  
 
}
 
}
  
 
/* Links */
 
/* Links */
.igem_2017_content_wrapper a {  
+
.content_wrapper a {  
font-weight: bold;  
+
font-weight: bold;
 +
                font-family:'Georgia', serif; 
 
text-decoration: underline;
 
text-decoration: underline;
text-decoration-color: #3399ff;
+
text-decoration-color:#1ab9db;
color: #3399ff;
+
color: #1ab9db;
 
-webkit-transition: all 0.4s ease;
 
-webkit-transition: all 0.4s ease;
 
-moz-transition: all 0.4s ease;  
 
-moz-transition: all 0.4s ease;  
Line 214: Line 420:
  
 
/* hover for the links */
 
/* hover for the links */
.igem_2017_content_wrapper a:hover {  
+
.content_wrapper a:hover {  
 
text-decoration:none;
 
text-decoration:none;
color:#000000;
+
color:#ff0000;
 
}
 
}
  
 
/* non numbered lists */
 
/* non numbered lists */
.igem_2017_content_wrapper ul {
+
.content_wrapper ul {
padding:0px 20px;
+
padding:1px 15px;  
font-size: 13px;
+
font-size: 17px;
font-family:Tahoma, Geneva, sans-serif;  
+
font-family:'Georgia', serif;  
 
}
 
}
  
 
/* numbered lists */
 
/* numbered lists */
.igem_2017_content_wrapper ol {
+
.content_wrapper ol {
padding:0px;  
+
padding:1px 15px;  
font-size: 13px;
+
font-size: 17px;
font-family:Tahoma, Geneva, sans-serif;  
+
font-family:'Georgia', serif;
 
}
 
}
  
 
/* Table */
 
/* Table */
.igem_2017_content_wrapper table {  
+
.content_wrapper table {  
width: 97%;  
+
width: 100%;  
margin:15px 10px;  
+
margin: 0px 0px;  
border: 1px solid #d3d3d3;  
+
border: 1px solid #FFFFFF;  
 
border-collapse: collapse;  
 
border-collapse: collapse;  
 
}
 
}
  
 
/* table cells */
 
/* table cells */
.igem_2017_content_wrapper td {  
+
.content_wrapper td {  
padding: 10px;
+
padding: 0px;
 
vertical-align: text-top;  
 
vertical-align: text-top;  
border: 1px solid #d3d3d3;  
+
border: 1px solid #FFFFFF;  
 
border-collapse: collapse;  
 
border-collapse: collapse;  
 
}
 
}
  
 
/* table headers */
 
/* table headers */
.igem_2017_content_wrapper th {  
+
.content_wrapper th {  
padding: 10px;  
+
padding: 0px;  
 
vertical-align: text-top;  
 
vertical-align: text-top;  
border: 1px solid #d3d3d3;  
+
border: 1px solid #FFFFFF;  
 
border-collapse: collapse;  
 
border-collapse: collapse;  
 
background-color:#f2f2f2;  
 
background-color:#f2f2f2;  
 
}
 
}
  
 
+
/* Button class */
/**********************************LAYOUT CLASSES **********************************/
+
.button_click {  
 
+
margin: 10px auto;
/* general class for column divs */
+
padding: 15px; width:12%; 
.igem_2017_content_wrapper .column  {  
+
text-align:center;
padding: 10px 0px;
+
font-weight:bold;
float:left;  
+
                font-family:'Georgia', serif; 
 +
background-color: #1ab9db;
 +
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;  
 
}
 
}
  
/* class for a full width column */
+
/* button class on hover */
.column .full_size {
+
.button_click:hover {
width:100%;  
+
background-color:#000000;
 +
color:#1ab9db;
 
}
 
}
  
/* styling for images in a full width column*/
+
 
.column.full_size img {  
+
/********************************* RESPONSIVE STYLING ********************************/
width:97%;  
+
 
padding: 10px 15px;
+
/* IF THE SCREEN IS LESS THAN 1000PX */
 +
 
 +
@media only screen and (max-width: 1000px) {
 +
 
 +
#content {width:100%; }
 +
.menu_wrapper {width:15%;}
 +
.content_wrapper {margin-left: 15%;}
 +
.menu_item {display:block;}
 +
.icon {display:none;}
 +
.highlight {padding:10px 0px;}
 
}
 
}
  
/* class for a half width column */
+
 
.column.half_size {
+
/* IF THE SCREEN IS LESS THAN 680PX */
width: 50%;  
+
 
}
+
@media only screen and (max-width: 680px) {
/* styling for images in a half width column*/
+
.collapsable_menu_control { display:block;}
.column.half_size img {  
+
.menu_item {display:none;}
width: 94.5%;
+
.menu_wrapper { width:100%; height: 15%; position:relative;}
padding: 10px 15px;
+
.content_wrapper {width:100%; margin-left:0px;}
 +
.column.half_size {width:100%; }
 +
.column img { width: 100%; padding: 5px 0px;}
 +
.icon {display:block;}
 +
.highlight {padding:15px 5px;}
 
}
 
}
  
 +
</style>
  
  
  
/********************************* SUPPORT CLASSES ********************************/
 
  
/* class that clears content below*/
+
<!--- THIS IS WHERE THE HTML BEGINS --->
.igem_2017_content_wrapper .clear {
+
clear:both;
+
}
+
+
+
/* adds extra spacing when clearing content */
+
.igem_2017_content_wrapper  .clear.extra_space {
+
height: 30px;
+
}
+
  
  
/* highlight class, makes content slightly smaller */
+
<!-- This tells the browser that your page is responsive -->
.igem_2017_content_wrapper .highlight {
+
margin: 0px 15px;
+
padding: 15px 0px;
+
}
+
  
 +
<div class="menu_wrap" >
 +
        <nav class="menu">
 +
                <ul class="clearfix">
  
/* highlight class, adds a gray background */
+
<li><a href="https://2017.igem.org/Team:Austin_UTexas">HOME</a></li>
.igem_2017_content_wrapper .highlight.gray {
+
background-color: #f2f2f2;
+
}
+
  
/* highlight with decoration blue line on top */
 
.igem_2017_content_wrapper .highlight.blue_top {
 
    border-top: 4px solid #3399ff;
 
}
 
  
/* highlight with a full blue border decoration */
+
<li> <a href="">TEAM <span class="arrow">&#9660;</span></a>
.igem_2017_content_wrapper .highlight.blue_border {
+
<ul class="sub-menu">
    border: 4px solid #3399ff;
+
<li> <a href="https://2017.igem.org/Team:Austin_UTexas/Team">Meet the Team!</a> </li>
}
+
<li> <a href="https://2017.igem.org/Team:Austin_UTexas/Collaborations"> Collaborations </a> </li>
 +
                    </ul>
 +
                </li>
  
 +
<li>
 +
                    <a href="">PROJECT  <span class="arrow">&#9660;</span></a>
 +
<ul class="sub-menu">
 +
<li> <a href="https://2017.igem.org/Team:Austin_UTexas/Description">Description </a></li>
 +
                                <li> <a href="https://2017.igem.org/Team:Austin_UTexas/Results">Results</a></li>
 +
                                <li> <a href="https://2017.igem.org/Team:Austin_UTexas/Protocols">Protocols</a></li>                         
 +
                                <li> <a href="https://2017.igem.org/Team:Austin_UTexas/InterLab">InterLab</a></li>
 +
                                <li> <a href="https://2017.igem.org/Team:Austin_UTexas/Model">Model</a></li>
 +
                                <li> <a href="https://2017.igem.org/Team:Austin_UTexas/Demonstrate">Demonstrate</a></li>
 +
                                <li> <a href="https://2017.igem.org/Team:Austin_UTexas/Improve">Improve</a></li>
 +
                                <li> <a href="https://2017.igem.org/Team:Austin_UTexas/Attributions">Attributions</a></li>
 +
                    </ul>
  
/* button class */
+
<li > <a href="https://2017.igem.org/Team:Austin_UTexas/Parts">PARTS</a>
.igem_2017_content_wrapper .button{
+
max-width: 35%;
+
margin: 30px auto;
+
padding: 12px 10px;
+
    background-color: #3399ff;
+
    text-align: center;
+
  color: #ffffff;
+
-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; 
+
}
+
  
/* styling for button on hover */
 
.igem_2017_content_wrapper .button:hover{
 
background-color: #3399ff;
 
    color: #000000;
 
}
 
  
 +
<li> <a href="https://2017.igem.org/Team:Austin_UTexas/Safety"> SAFETY </a> </li>
  
  
 +
<li> <a href=""> HUMAN PRACTICES<span class="arrow">&#9660;</span></a>
 +
<ul class="sub-menu">
 +
<li> <a href="https://2017.igem.org/Team:Austin_UTexas/HP/Silver">Silver HP</a></li>
 +
<li> <a href="https://2017.igem.org/Team:Austin_UTexas/HP/Gold_Integrated">Integrated and Gold</a>></li>
 +
                    </ul>
 +
                </li>
 +
               
  
/***************************************************** RESPONSIVE STYLING ****************************************************/
+
</ul>
 +
  </nav>
 +
</div>
 +
<div class="content_wrapper">
  
/* IF THE SCREEN IS LESS THAN 1200PX */
 
@media only screen and (max-width: 1200px) {
 
  
#content {width:100%; }
+
<script>
.igem_2017_menu_wrapper {width:15%; right:0;}
+
 
.highlight {padding:10px 0px;}
+
// This is the jquery part of your template.  Try not modify any of this code since it makes your menu work.
.igem_2017_menu_wrapper #display_menu_control { display:none; }
+
 
#menu_content { display:block;}
+
$(document).ready(function() {
.menu_button.direct_to_page {padding-left: 17px;}
+
 
 +
$("#HQ_page").attr('id','');
 
 
}
 
  
/* IF THE SCREEN IS LESS THAN 800PX */
+
if ( wgPageName.substring( 0,  8) == "Template")  {  // if the page is a template it displays the full name in a single line
@media only screen and (max-width: 800px) {
+
$("#team_name").html( wgPageName );
 +
}
  
.igem_2017_menu_wrapper { width:100%; height: 15%; position:relative; left:0%;}
+
else if ( ( (wgPageName.match(/\//g) || []).length ) == 0 ) // if it is the home page , just print the team's name
.igem_2017_content_wrapper {width:100%; margin-left:0px;}
+
}
.column.half_size {width:100%; }
+
.column.full_size img, .column.half_size img width: 100%; padding: 10px 0px;}
+
.highlight {padding:15px 5px;}
+
.igem_2017_menu_wrapper #display_menu_control { display:block; }
+
#menu_content { display:none;}
+
.igem_2017_menu_wrapper .menu_button .expand_collapse_icon { width: 5%; }
+
.menu_bottom_padding {display:none;}
+
.menu_button.direct_to_page { padding-left: 36px; }
+
}
+
  
 +
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 , " ")  );
/* special class that the system uses to make sure the team wants a page to be evaluated */
+
}
.judges-will-not-evaluate {
+
    width: 96.6%;
+
  margin: 5px 15px;
+
  display: block;
+
border: 4px solid #3399ff;
+
    font-weight: bold;
+
}
+
+
</style>
+
  
  
<!--- THIS IS WHERE THE HTML BEGINS --->
 
  
  
 +
$('#accordion').find('.menu_item').click(function(){
  
<head>
+
//Expand or collapse this panel
 +
submenu = $(this).find('.submenu');
 +
submenu.toggle();
  
<!-- This tells the browser that your page is responsive -->
+
icon = $(this).find('.icon');
<meta name="viewport" content="width=device-width, initial-scale=1">
+
  
</head>
+
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");
 +
});
  
<body>
 
  
<ul>
+
$(".collapsable_menu_control").click(function() {
  <li><a href="https://2017.igem.org/Team:Austin_UTexas">HOME</a></li>
+
$(".menu_item").toggle();
  <li class="dropdown">
+
});
    <a href="javascript:void(0)" class="dropbtn">TEAM</a>
+
    <div class="dropdown-content">
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/Team">Meet the Team!</a>
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/Collaborations">Collaborations</a>
+
    </div>
+
  </li>
+
  <li class="dropdown">
+
    <a href="javascript:void(0)" class="dropbtn">PROJECT</a>
+
    <div class="dropwdown-content">
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/Description">Description</a>
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/Experiments">Experiments</a>
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/Notebook">Notebook</a>
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/InterLab">InterLab</a>
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/Contribution">Contribution</a>
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/Model">Model</a>
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/Results">Results</a>
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/Demonstrate">Demonstrate</a>
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/Improve">Improve</a>
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/Attributions">Attributions</a>
+
    </div>
+
  </li>
+
  <li class="dropdown">
+
    <a href="javascript:void(0)" class="dropbtn">PARTS</a>
+
    <div class="dropwdown-content">
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/Parts">Parts</a>
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/Basic_Part">Basic Parts</a>
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/Composite_Part">Composite Parts</a>
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/Part_Collection">Part Collection</a>
+
    </div>
+
  </li>
+
  <li><a href="https://2017.igem.org/Team:Austin_UTexas/Safety">SAFETY</a></li>
+
  <li class="dropdown">
+
    <a href="javascript:void(0)" class="dropbtn">HUMAN PRACTICES</a>
+
    <div class="dropwdown-content">
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/HP/Silver">Silver HP</a>
+
      <a href="https://2017.igem.org/Team:Austin_UTexas/HP/Gold_Integrated">Integrated and Gold</a>
+
    </div>
+
  </li>
+
  
</ul>
+
$( window ).resize(function() {
 +
$(".menu_item").show();
 +
});
  
</body>
 
  
<!-- start of content -->
+
});
<div class="igem_2017_content_wrapper">
+
 
 +
 
 +
 
 +
 
 +
</script>
 +
</html>

Latest revision as of 22:55, 1 November 2017