Difference between revisions of "Template:Tuebingen"

(Prototype team template page)
 
Line 1: Line 1:
 
<html>
 
<html>
 +
    <head>
 +
        <title>Draft</title>
 +
<style type="text/css">
  
<style>
+
/* Central space for fine tuning */
 +
:root {
 +
    --lightBackgroundText: rgba(223, 220, 228, 0.9);
  
/********************************* DEFAULT WIKI SETTINGS  ********************************/
+
    --contentFontSize: large;
  
#sideMenu, #top_title {display:none;}
+
    --navBorderThickness: 2px;
#content { padding:0px; width:1000px; margin-top:-7px; margin-left:0px;}
+
    --navFontSize: x-large;
body {background-color:white; }
+
    --navSubFontSize: large;
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
+
    --navLinkPadding: 0.3em;
 +
    --navLeftPadding: 1vw;
  
/********************************* MENU ********************************/
+
    --navScrollTime: 500ms;
/* Wrapper for the menu */
+
.menu_wrapper {
+
width:150px;
+
height:100vh;
+
position:fixed;
+
padding:0px;
+
float:left;
+
background-color:#f2f2f2;
+
text-align:left;
+
}
+
  
/* styling for the menu items */
+
    --contentPadding: 3vw;
.menu_item {
+
width:100%;
+
margin:-2px 0px 0px -20px;
+
padding: 10px 10px; 
+
border-bottom: 1px solid #d3d3d3;
+
font-weight:bold;
+
color:#000000;
+
cursor: pointer;  
+
}
+
  
/* when hovering on a menu item */
+
    font-family: Helvetica, Arial, sans-serif;
.menu_item:hover {
+
color:#000000;
+
background-color: #72c9b6;
+
}
+
  
/* decoration icon for the menu buttons*/
+
    /* Setup counter for figure and table enumeration */
.icon {
+
    counter-reset: figures tables;
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 */
+
.iGemSabber {
ul.menu_items {
+
    /* rule of thumb, BG about +10 each */
width:100%;  
+
    /*--lightsabber:  rgb(46, 255, 6);*/
margin-left:0px;  
+
    --lightsabber:  rgb(202, 255, 212);
padding:0px;
+
    --lightsabberBg: rgba(1, 216, 34, 0.9);
list-style: none;  
+
}
}
+
.blueSabber {
 +
    --lightsabber:   rgb(223, 254, 255);
 +
    --lightsabberBg: rgba(0, 129, 160, 0.9);
 +
}
 +
.orangeSabber {
 +
    --lightsabber:   rgb(254, 255, 234);
 +
    --lightsabberBg: rgba(235, 168, 73, 0.9);
 +
}
 +
.redSabber {
 +
    --lightsabber:  rgb(247, 253, 252);
 +
    --lightsabberBg: rgba(180, 0, 0, 0.9);
 +
}
 +
.whiteSabber {
 +
    --lightsabber:  rgb(252, 252, 255);
 +
    --lightsabberBg: rgba(145, 164, 161, 0.9);
 +
}
 +
.purpleSabber {
 +
    --lightsabber:  rgb(255, 238, 254);
 +
    --lightsabberBg: rgba(200, 39, 190, 0.9);
 +
}
  
/* styling for the li that are the menu items */
 
.menu_items li {
 
width:90%;
 
margin-top:-2px;
 
padding: 15px 0px 15px 15px ;
 
display:block;
 
border-bottom: 1px solid #d3d3d3; 
 
text-align:left;
 
font-weight:bold;
 
text-decoration:none;
 
color:#000000;
 
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 {
+
body {
width: 100%;
+
    /* Version 1: One picture scaled full size (watch file size) */
margin-left: -20px;
+
    background-image: url(../wiki/images/thumb/f/fe/Space_low.jpg/1599px-Space_low.jpg);
padding: 11px 90px 12px 20px;
+
    background-size: 100% 100%;  
text-decoration: none;
+
    background-repeat: no-repeat;
color:black;
+
    /* Version 2: Small pattern repeated */
}
+
    /*
 +
    background-image: url(steel1.jpg);
 +
    background-repeat: repeat;
 +
    */
  
/* When hovering on a menu item */
+
    background-position: right top;
.menu_items li:hover {
+
    background-attachment: fixed;
background-color:#72c9b6;
+
color: #000000;
+
}
+
  
/* styling for the submenus */
+
    padding: 0;
.submenu {
+
    margin: 0;
width:100%;  
+
}
display: none;
+
font-weight:bold;
+
cursor:pointer;
+
  
}
+
.grailWrapper {
 +
    background-color: var(--lightBackgroundText);
  
/* moving the margin for the submenu ul list */
+
    display: table;
ul.submenu {
+
    height: 100%;
width: 100%;
+
    width: 100%;
margin: 10px 0px -11px 0px;
+
    margin: 0;
list-style: none;
+
    margin: 0 auto;
}
+
    padding: 0;
  
/*styling for the submenu buttons */
+
    border-collapse: collapse;
.submenu li {
+
width: 100%;
+
margin-left: 10px;
+
margin-bottom: 0px;
+
}
+
  
 +
    min-width: 760px;
 +
    max-width: 1000px;
  
/* hover state for the submenu buttons */
+
    font-size: var(--contentFontSize);
.submenu li a {
+
}  
width: 100%;
+
padding: 5px 10px;
+
display: inline-block;
+
border-bottom: 1px solid #d3d3d3;
+
background-color:white;
+
text-decoration:none;
+
color:#000000;  
+
}
+
  
 +
.header {
 +
height: 200px;
 +
    /* not accurate, vertical center for final logo */
 +
    /* still needed? padding-top: 30px; */
 +
    text-align: center;
 +
    vertical-align: middle;
  
 +
    font-size: 50px;
 +
    font-family: Impact, Charcoal, sans-serif;
  
.submenu li a:hover  {
+
    display: table-row;
background-color:#000000;
+
}
color: #72c9b6;
+
}
+
  
 +
nav {
 +
    display: block;/*table-row;*/
 +
    padding: 0;
 +
    margin: 0;
  
/* When the screen is smaller than 680px, the menu has the option to hide/show - this button controls that */
+
    /* make border on top and bottom of nav */
.collapsable_menu_control {
+
    border-width: var(--navBorderThickness);
width:100%;
+
    border-style: solid none;
padding: 15px 0px;
+
    border-color: black;
display:none;
+
background-color:#000000;  
+
text-align:center;
+
font-weight:bold;
+
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;
+
}
+
  
/* when hovering on that button */
+
    font-size: var(--navFontSize);
.collapsable_menu_control:hover {
+
    height: calc(2 * var(--navLinkPadding) + var(--navFontSize)
background-color: #72c9b6;
+
        2 * var(--navBorderThickness));
color:#000000; 
+
}
+
  
/********************************* CONTENT OF THE PAGE ********************************/
+
    /*background-color: #4f4f4f;*/
 +
    background: linear-gradient(to bottom, #4f4f4f, #6f6f6f, #4f4f4f);
 +
}
  
/* Wrapper for the content */
+
.navbarFixed {
.content_wrapper {
+
    position: fixed;
width: 85%;
+
    top: 0;
margin-left:150px;
+
    left: 0;
padding:10px 0px;
+
float:left;
+
background-color:white;  
+
}
+
  
/*LAYOUT */
+
    z-index: 100;
.column  {
+
    width: 100%;
padding: 10px 0px;
+
}
float:left;
+
background-color:white;  
+
}
+
  
.full_size {
+
.navbarFixed ul {
width:100%;  
+
    --navLeftPadding: 5.5em;
}
+
}
  
.full_size img {  
+
#navIcon {
padding: 10px 15px;
+
    display: absolute;
width:96.5%;  
+
    position: fixed;
}
+
    top: 10px;
 +
    left: 10px;
  
.half_size {
+
    height: 3em;
width: 50%;  
+
    margin-right: 1em;
}
+
    /*top: -0.6em;*/
.half_size img {
+
padding: 10px 15px;
+
width: 93%;  
+
}
+
  
 +
    vertical-align: top;
 +
    padding: 0.5em;
  
.clear {
+
    border: 2px solid black;
clear:both;
+
    border-radius: 1.5em;
}
+
  
.highlight {
+
    background: radial-gradient(circle, #dfdeee, #6f6f6f, black);
width: 90%;  
+
    box-shadow: 10px 10px 5px grey;
margin: auto;
+
    box-shadow: 0 0 0.8em 0.3em #000000;
padding: 15px 5px;
+
    /*visibility: hidden;*/
background-color: #f2f2f2;  
+
}
}
+
  
.judges-will-not-evaluate {
+
nav ul {
border: 4px solid #72c9b6;
+
    display: table;
display: block;
+
    table-layout: fixed;
margin: 5px 15px;
+
width: 95%;
+
font-weight:bold;
+
}
+
  
 +
    margin: 0 0 0 var(--navLeftPadding);
 +
    padding: 0;
  
/*STYLING */
+
    width: calc(100% - var(--navLeftPadding));
  
/* styling for the titles */
+
    list-style: none;
.content_wrapper h1, .content_wrapper h2 {
+
}
padding:5px 15px;
+
border-bottom:0px;  
+
color:#72c9b6;
+
  
}
+
nav ul li {
.content_wrapper h3, .content_wrapper h4, .content_wrapper h5, .content_wrapper h6 {  
+
    display: table-cell;
padding:5px 15px;
+
border-bottom:0px;  
+
color: #000000; 
+
}
+
  
 +
    width: 100%;
 +
    height: calc(2 * var(--navLinkPadding) + var(--navFontSize));
  
/* font and text */
+
    text-align: center;
.content_wrapper p {
+
    vertical-align: top;
padding:0px 15px;
+
}
font-size: 13px;
+
font-family:Tahoma, Geneva, sans-serif;  
+
}
+
  
/* Links */
+
nav ul li a {
.content_wrapper a {  
+
    display: block;
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 */
+
    padding: var(--navLinkPadding) 0;
.content_wrapper a:hover {
+
    text-align:center;
text-decoration:none;
+
    vertical-align: middle;
color:#000000;
+
}
+
  
/* non numbered lists */
+
    color: #fff;
.content_wrapper ul {
+
text-decoration: none;
padding:0px 20px;
+
font-size: 13px;
+
font-family:Tahoma, Geneva, sans-serif;
+
}
+
  
/* numbered lists */
+
    border-left:4px solid black;
.content_wrapper ol {
+
}
padding:0px;
+
font-size: 13px;
+
font-family:Tahoma, Geneva, sans-serif;  
+
}
+
  
/* Table */
+
nav ul li:hover a, .linkActive {
.content_wrapper table {  
+
    /*color: black;*/
width: 97%;  
+
    background: linear-gradient(to bottom, #4f4f4f, var(--lightsabberBg), #4f4f4f);
margin:15px 10px;  
+
}
border: 1px solid #d3d3d3;
+
nav ul li:hover ul li a {
border-collapse: collapse;  
+
    background: none !important;
}
+
}
  
/* table cells */
+
nav ul li ul li a:hover {
.content_wrapper  td {  
+
    text-decoration: underline;
padding: 10px;
+
}
vertical-align: text-top;
+
border: 1px solid #d3d3d3;
+
border-collapse: collapse;  
+
}
+
  
/* table headers */
+
nav li ul {
.content_wrapper th {  
+
    display: block;
padding: 10px;  
+
    height: auto;
vertical-align: text-top;  
+
    width: calc(100% - 18px);
border: 1px solid #d3d3d3;
+
border-collapse: collapse;  
+
background-color:#f2f2f2;
+
}
+
  
/* Button class */
+
    padding: 0 10px;
.button_click {
+
    margin: 0;
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 */
+
    position: absolute;
.button_click:hover { 
+
    left: -2px;
background-color:#000000;  
+
    top: calc(2 * var(--navLinkPadding) + var(--navFontSize) +
color:#72c9b6;
+
        2 * var(--navBorderThickness));
}
+
    z-index:1;
  
/********************************* RESPONSIVE STYLING ********************************/
+
    background: linear-gradient(to right,
 +
        black 0,
 +
        var(--lightsabber) 1px,
 +
        var(--lightsabber) 7px,
 +
        black 8px,
 +
        var(--lightsabberBg) 8px,
 +
        var(--lightBackgroundText));
 +
}
 +
nav ul > li {
 +
    position: relative;
 +
}
 +
nav li ul li {
 +
    display: block;
  
/* IF THE SCREEN IS LESS THAN 1000PX */
+
    overflow: hidden;
 +
    height:0;
 +
    -webkit-transition: height var(--navScrollTime) ease-in;
 +
    -moz-transition: height var(--navScrollTime) ease-in;
 +
    -o-transition: height var(--navScrollTime) ease-in;
 +
    transition: height var(--navScrollTime) ease-in;
 +
}
  
@media only screen and (max-width: 1000px) {
+
nav ul > li:hover ul li {
 +
    height: 2em;
 +
}
  
#content {width:100%; }
+
nav ul li ul li a{
.menu_wrapper {width:15%;}
+
    display:block;
.content_wrapper {margin-left: 15%;}
+
    height: 100%;
.menu_item {display:block;}
+
    width: 100%;
.icon {display:none;}
+
.highlight {padding:10px 0px;}
+
}
+
  
 +
    padding: auto;
 +
    font-size: var(--navSubFontSize);
  
/* IF THE SCREEN IS LESS THAN 680PX */
+
    border: none;
 +
    color:black;
 +
}
  
@media only screen and (max-width: 680px) {
+
.contentArea {
.collapsable_menu_control { display:block;}
+
    display: block;
.menu_item {display:none;}
+
    width: var(100% - var(--contentPadding));
.menu_wrapper { width:100%; height: 15%; position:relative;}
+
    margin: 0 var(--contentPadding);
.content_wrapper {width:100%; margin-left:0px;}
+
    padding: 0;
.column.half_size {width:100%; }
+
    text-align: justify;
.column img { width: 100%; padding: 5px 0px;}
+
}
.icon {display:block;}
+
.contentRow {
.highlight {padding:15px 5px;}
+
    display: table;
}
+
    width: 100%;
 +
    padding: 0;
 +
    margin: 0;
 +
    border-spacing: 1em;
 +
    border-collapse: separate;
 +
}
 +
.contentCell {
 +
    display: table-cell;
 +
    vertical-align: top;
 +
    padding: 0;
 +
    margin: 0;
 +
}
 +
.contentSmallCell{
 +
    width: 40%;
 +
}
  
</style>
+
figure {
 +
    display: block;
 +
    margin: 1em;
 +
    padding: 0.5em;
  
 +
    width: calc(100% - var(padding));
 +
    background-color: white;
 +
}
 +
figure img {
 +
    display: block;
 +
    --leftRightSpace: 0.8em;
 +
    width: calc(100% - 2 * var(--leftRightSpace));
 +
    padding: var(--leftRightSpace);
 +
}
 +
figure figcaption::before{
 +
    counter-increment: figures;
 +
    font-weight: bold;
 +
    content: "Figure " counter(figures) ": ";
 +
}
 +
figure figcaption {
 +
    width: 100%;
 +
}
  
 +
table {
 +
    border-top: 3px solid black;
 +
    border-bottom: 3px solid black;
 +
    border-spacing: 0.4em;
 +
    border-collapse: collapse;
 +
    margin: 0 auto;
 +
}
 +
table caption::before{
 +
    counter-increment: tables;
 +
    font-weight: bold;
 +
    content: "Table " counter(tables) ": ";
 +
}
 +
table caption {
 +
    width: 100%;
 +
    margin-bottom: 0.8em;
 +
    text-align: center;
 +
}
 +
table td {
 +
    padding: 0.3em;
 +
}
 +
table thead tr {
 +
    font-weight: bold;
 +
    border-bottom: 1.5px solid black;
 +
}
  
 +
</style>
 +
        <script type='text/javascript' src='jquery.js' ></script>
 +
        <script type='text/javascript'>//<![CDATA[
 +
            $(window).ready(function() {
 +
              $(window).scroll(function () {
 +
                //console.log($(window).scrollTop())
 +
                var h = $('.header').height();
 +
                <!--img src='big.png' /-->
 +
                if ($(window).scrollTop() > h) {
 +
                  $('nav').addClass('navbarFixed');
 +
                  // add navIcon if it is not existing yet
 +
                  if ( ! $('#navIcon').length ) {
 +
                      $('nav').prepend("<img src='../wiki/images/c/cc/Big.png' id='navIcon' />");
 +
                  }
 +
                } else {
 +
                  $('nav').removeClass('navbarFixed');
 +
                  $('#navIcon').remove();
 +
                }
 +
              });
 +
            });//]]>
 +
        </script>
 +
    </head>
 +
    <body>
 +
        <div class="grailWrapper">
 +
            <div class='header'>
 +
                <img src="../wiki/images/c/cc/Big.png" style="width: 25%; vertical-align: middle;" />
 +
                iGEM Tuebingen
 +
            </div>
 +
            <nav>
 +
                <ul>
 +
                    <li id='sectionTeam' class="iGemSabber">
 +
                        <a>Team</a>
 +
                        <ul>
 +
                            <li><a href="#">Home</a>
 +
                            <li><a href="#">The Team</a>
 +
                            <li><a href="#">Advisors</a>
 +
                        </ul>
 +
                    </li>
 +
                    <li id='sectionFruitforce' class="whiteSabber">
 +
                        <a>Fruitforce</a>
 +
                        <ul>
 +
                            <li><a href="#">Summary</a>
 +
                            <li><a href="#">Design</a>
 +
                            <li><a href="#">Experiments</a>
 +
                            <li><a href="#">Results</a>
 +
                            <li><a href="#">Model</a>
 +
                            <li><a href="#">Discussion</a>
 +
                        </ul>
 +
                    </li>
 +
                    <li id='sectionSide' class="blueSabber">
 +
                        <a>Side Projects</a>
 +
                        <ul>
 +
                            <li><a href="#">Clone Wars</a>
 +
                            <li><a href="#">Death Star</a>
 +
                            <li><a href="#">Interlab Study</a>
 +
                        </ul>
 +
                    </li>
 +
                    <li id='sectionHR' class="redSabber">
 +
                        <a>HR Practices</a>
 +
                        <ul>
 +
                            <li><a href="#">Alpha</a>
 +
                            <li><a href="#">Bravo</a>
 +
                            <li><a href="#">Charly</a>
 +
                            <li><a href="#">Delta</a>
 +
                        </ul>
 +
                    </li>
 +
                    <li id='sectionProcedures' class="orangeSabber">
 +
                        <a>Procedures</a>
 +
                        <ul>
 +
                            <li><a href="#">Parts</a>
 +
                            <li><a href="#">Safety</a>
 +
                        </ul>
 +
                    </li>
 +
                    <li id='sectionAttributions' class="purpleSabber">
 +
                        <a>Attributions</a>
 +
                        <ul>
 +
                            <li><a href="#">Collaboration</a>
 +
                            <li><a href="#">Sponsoring</a>
 +
                            <li><a href="#">References</a>
 +
                        </ul>
 +
                    </li>
 +
                <ul>
 +
            </nav>
  
<!--- THIS IS WHERE THE HTML BEGINS --->
+
            <div class="contentArea">
 
+
 
+
<!-- This tells the browser that your page is responsive -->
+
 
+
<head>
+
<meta name="viewport" content="width=device-width, initial-scale=1">
+
</head>
+
 
+
 
+
 
+
 
+
<div class="menu_wrapper" >
+
 
+
 
+
 
+
 
+
<div class="collapsable_menu_control"> MENU ▤ </div>
+
 
+
<ul id="accordion" class="accordion">
+
 
+
<li class="menu_item"> <a href="https://2016.igem.org/Team:Tuebingen">HOME </a> </li>
+
 
+
 
+
<li class="menu_item"> <div class="icon plus"></div> TEAM
+
<ul class="submenu">
+
<li> <a href=" https://2016.igem.org/Team:Tuebingen/Team"> Team  </a> </li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Collaborations">★  Collaborations </a> </li>
+
                    </ul>
+
                </li>
+
 
+
<li class="menu_item"> <div class="icon plus"></div> PROJECT 
+
<ul class="submenu">
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Description"> ★  Description </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Design"> ★ Design </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Experiments"> Experiments </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Proof"> ★ Proof of Concept </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Demonstrate"> ★ Demonstrate </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Results"> Results </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Notebook"> Notebook </a></li>
+
                    </ul>
+
                </li>
+
 
+
<li class="menu_item"> <div class="icon plus"></div> PARTS 
+
<ul class="submenu">
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Parts">Parts </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Basic_Part"> ★ Basic Parts </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Composite_Part"> ★ Composite Parts </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Part_Collection"> ★ Part Collection </a></li>
+
                    </ul>
+
                </li>
+
 
+
 
+
<li class="menu_item"> <a href="https://2016.igem.org/Team:Tuebingen/Safety"> SAFETY </a> </li>
+
 
+
 
+
<li class="menu_item"> <a href="https://2016.igem.org/Team:Tuebingen/Attributions">★  ATTRIBUTIONS </a></li>
+
 
+
 
+
<li class="menu_item"> <div class="icon plus"></div> HUMAN PRACTICES
+
<ul class="submenu">
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Human_Practices"> Human Practices </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/HP/Silver">★ Silver </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/HP/Gold">★ Gold </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Integrated_Practices"> ★ Integrated Practices </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Engagement">★ Engagement </a></li>
+
                    </ul>
+
                </li>
+
 
+
 
+
<li class="menu_item"> <div class="icon plus"></div> AWARDS
+
<ul class="submenu">
+
<li><a href="https://2016.igem.org/Team:Tuebingen/Entrepreneurship"> ★ Entrepreneurship </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Hardware"> ★ Hardware </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Software">★ Software </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Measurement">★  Measurement </a></li>
+
<li> <a href="https://2016.igem.org/Team:Tuebingen/Model">★ Model </a></li>
+
 
+
                    </ul>
+
                </li>
+
</ul>
+
 
+
</div>
+
 
+
 
+
 
+
 
+
 
+
<div class="content_wrapper">
+
 
+
 
+
 
+
<h1 id="team_name">  </h1>
+
<h4 id="page_name">  </h4>
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
<script>
+
 
+
// This is the jquery part of your template.  Try not modify any of this code since it makes your menu work.
+
 
+
$(document).ready(function() {
+
 
+
$("#HQ_page").attr('id','');
+
+
 
+
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 );
+
}
+
 
+
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>

Revision as of 19:52, 30 September 2016

Draft