Difference between revisions of "Template:Example2"

m
Line 1: Line 1:
{{:Team:KUAS_Korea/Templates/Foot}}
 
 
 
<html>
 
<html>
  
<script>
+
<style>
  
// This is the jquery part of your template.  
+
/********************************* DEFAULT WIKI SETTINGS ********************************/
// Try not modify any of this code too much since it makes your menu work.
+
  
$(document).ready(function() {
+
#sideMenu, #top_title {display:none;}
 +
#content { padding:0px; width:1000px; margin-top:-7px; margin-left:0px;}
 +
body {background-color:white; }
 +
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
  
$("#HQ_page").attr('id','');
+
/********************************* MENU ********************************/
 +
/* Wrapper for the menu */
 +
.menu_wrapper {
 +
width:150px;
 +
height:100%;
 +
position:fixed;
 +
padding:0px;
 +
float:left;
 +
background-color:#1E4D2B;
 +
text-align:left;
 +
                overflow:auto;
 +
}
  
// call the functions that control the menu
 
menu_functionality();
 
hide_show_menu();
 
  
 +
    .Icon{
 +
               
 +
                width: 135 px;
 +
                height: 124px;
  
 +
position:fixed;
 +
padding-left:20px;
 +
float:left;
 +
                border-bottom: 1px solid black; 
 +
 +
 +
}
  
//this function controls the expand and collapse buttons of the menu and changes the +/- symbols
+
/* styling for the menu items */
function menu_functionality() {
+
.menu_item {
 +
width:100%;
 +
margin:-2px 0px 0px -20px;
 +
padding: 10px 10px; 
 +
border-bottom: 1px solid black;
 +
font-weight:bold;
 +
color:#D7D392;
 +
cursor: pointer;
 +
}
  
//when clicking on a "menu_button", it will change the "+/-" accordingly and it will show/hide the corresponding submenu
+
/* when hovering on a menu item */
$(".menu_button").click(function(){
+
.menu_item:hover {  
 +
 +
background-color: #CC5430;
 +
}
  
// add or remove the class "open" , this class holds the "-"
+
/* decoration icon for the menu buttons*/
$(this).children().toggleClass("open");
+
.icon {
// show or hide the submenu
+
float:right;
$(this).next('.submenu_wrapper').fadeToggle(400);
+
font-size:16px;  
});
+
font-weight:bold;  
 
+
}
// when the screen size is smaller than 800px, the display_menu_control button appears and will show/hide the whole menu
+
$("#display_menu_control").click(function(){
+
$('#menu_content').fadeToggle(400);
+
});
+
 
+
// call the current page highlight function
+
highlight_current_page();
+
}
+
 
+
 
+
// call the highlight current page function to show it on the menu with a different background color
+
function highlight_current_page() {
+
 
+
// 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
+
$("#"+  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
+
$(".current_page").parents(".submenu_wrapper").fadeIn(400);
+
// change the +/- symbol of the corresponding menu button
+
$(".current_page").parents(".submenu_wrapper").prev().children().toggleClass("open");
+
+
}
+
 
+
 
+
 
+
// 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: "+";
}
+
}
 +
/* this is the icon for when the content is expanded */
 +
.less::before {
 +
content: "";  
 +
}
  
// 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:90%;
 +
margin-top:-2px;
 +
padding: 15px 0px 15px 15px ;
 +
display:block;
 +
border-bottom: 1px solid black; 
 +
text-align:left;
 +
font-weight:bold;
 +
text-decoration:none;
 +
color:#D7D392;
 +
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:#D7D392;
 +
}
  
// 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:#CC5430;
}
+
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;
 +
}
  
 +
/*styling for the submenu buttons */
 +
.submenu li {
 +
width: 100%;
 +
margin-left: 10px;
 +
margin-bottom: 0px;
 +
             
 +
}
  
</script>
 
  
 +
/* hover state for the submenu buttons */
 +
.submenu li a {
 +
width: 100%;
 +
padding: 5px 10px;
 +
display: inline-block;
 +
border-bottom: 1px solid black;
 +
background-color:#595951;
 +
text-decoration:none;
 +
color:white;
 +
}
  
  
  
 +
.submenu li a:hover  {
 +
background-color:#000000;
 +
color: #72c9b6;
 +
}
  
<style>
 
  
  
  
/***************************************************** DEFAULT WIKI SETTINGS  ****************************************************/
+
/* when hovering on that button */
+
.collapsable_menu_control:hover {  
/* Clear the default wiki settings */
+
background-color: #72c9b6;
+
color:#000000;
#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; }
+
 
+
+
+
+
/**************************************************************** MENU ***************************************************************/
+
/* Wrapper for the menu */
+
.igem_2017_menu_wrapper {
+
width: 15%;
+
height:100vh;
+
position:fixed;
+
right:0%;
+
padding:0px;
+
float:right;
+
border-left: 1px solid #d3d3d3;
+
background-color:#dddddd;
+
text-align:left;
+
font-family:Tahoma, Geneva, sans-serif;
+
overflow-y: auto;
+
overflow-x: hidden;
+
 
}
 
}
 
+
/* When the screen is smaller than 680px, the menu has the option to hide/show - this button controls that */
/* this hides the scrollbar to keep view consistency */
+
.collapsable_menu_control {
.igem_2017_menu_wrappe::-webkit-scrollbar {
+
width:100%;
display: none;  
+
padding: 15px 0px;
}
+
display:none;  
+
background-color:#000000;
+
text-align:center; 
/* styling for links in the menu, removes the line under text */
+
font-weight:bold;
.igem_2017_menu_wrapper a { 
+
color:#72c9b6;
text-decoration: 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;  
 
}
 
}
  
  
/* styling for the images in the menu */
 
.igem_2017_menu_wrapper img {
 
width: 100%;
 
}
 
  
/* styling for the menu buttons */
+
/********************************* CONTENT OF THE PAGE ********************************/
.igem_2017_menu_wrapper .menu_button {  
+
 
width: 100%;  
+
/* Wrapper for the content */
padding: 10px 0px 10px 15px;  
+
.content_wrapper {
 +
width: 85%;
 +
margin-left:150px;
 +
padding:10px 0px;  
 
float:left;  
 
float:left;  
border-bottom: 1px solid #d3d3d3;
+
background-color:white;  
font-size: 12px;
+
font-weight: bold;
+
color: #5e5f5f;
+
cursor: pointer;
+
 
}
 
}
  
 
+
/*LAYOUT */
.igem_2017_menu_wrapper .menu_bottom_padding {  
+
.column  {  
width: 100%;  
+
padding: 10px 0px;
height: 30px;
+
float:left;  
float:left;
+
background-color:white;  
 
}
 
}
  
.menu_button.direct_to_page {  
+
.full_size {
padding-left: 36px;
+
width:100%;  
 
}
 
}
  
 
+
.full_size img {  
.igem_2017_menu_wrapper .menu_button .expand_collapse_icon {
+
padding: 10px 15px;
width:10%;
+
width:96.5%;  
float:left;
+
 
}
 
}
  
.igem_2017_menu_wrapper .menu_button .expand_collapse_icon::before {
+
.half_size {
content: "+";
+
width: 50%;  
 
}
 
}
+
.half_size img {  
.open::before {
+
padding: 10px 15px;
content: "-" !important; 
+
width: 93%;  
}
+
+
+
+
/* styling for the menu buttons on hover */
+
.igem_2017_menu_wrapper .menu_button:hover, .igem_2017_menu_wrapper .submenu_button:hover ,  .submenu_button.current_page:hover {
+
background-color: #3399ff;
+
text-decoration: none;
+
color:#ffffff;  
+
 
}
 
}
  
/* styling for the menu button when it is the current page */
 
.current_page {
 
background-color:#7fc1f7  !important;
 
color:#5e5f5f !important;
 
}
 
  
 
+
.clear {
/* styling for the submenu buttons */
+
clear:both;
.igem_2017_menu_wrapper .submenu_button {  
+
width: 100%;
+
padding: 10px 0px 10px 34px;
+
float:left;
+
background-color:#f2f2f2;
+
border-bottom: 1px solid #d3d3d3;
+
font-size: 12px;
+
color: #5e5f5f;
+
cursor: pointer;
+
 
}
 
}
  
/* wrapper for the submenu items, they are hidden by default*/
+
.highlight {  
.igem_2017_menu_wrapper .submenu_wrapper {  
+
width: 90%;
display:none;
+
margin: auto;
 +
padding: 15px 5px;
 +
background-color: #f2f2f2;  
 
}
 
}
  
/* when the page size is bigger than 800px, this show/hide control is hidden by default */
+
.judges-will-not-evaluate {
.igem_2017_menu_wrapper #display_menu_control {
+
border: 4px solid #72c9b6;
display:none;
+
display: block;
text-align:center;
+
margin: 5px 15px;
 +
width: 95%;
 +
font-weight:bold;
 
}
 
}
 
  
/***************************************************** CONTENT OF THE PAGE ****************************************************/
 
  
/* Wrapper for the content */
+
/*STYLING */
.igem_2017_content_wrapper {
+
width: 81%;
+
margin: 2%;
+
display:block;
+
float:left;
+
background-color: white;
+
font-family:Tahoma, Geneva, sans-serif;
+
}
+
  
 +
/* styling for the titles */
 +
.content_wrapper h1, .content_wrapper h2 {
 +
padding:5px 15px;
 +
border-bottom:0px;
 +
color:#1E4D2B;
  
/********************************* HTML STYLING  *********************************/
 
 
/* styling for the titles h1 h2 */
 
.igem_2017_content_wrapper h1, .igem_2017_content_wrapper h2 {
 
padding:5px 15px;
 
border-bottom: 0px;
 
 
 
}
 
}
 
+
.content_wrapper h3, .content_wrapper h4, .content_wrapper h5, .content_wrapper h6 {  
 
+
/* styling for the titles  h3 h4 h5 h6*/
+
.igem_2017_content_wrapper h3, .igem_2017_content_wrapper h4, .igem_2017_content_wrapper h5, .igem_2017_content_wrapper h6 {  
+
 
padding:5px 15px;  
 
padding:5px 15px;  
 
border-bottom:0px;  
 
border-bottom:0px;  
+
color: #000000; 
 
}
 
}
  
  
 
/* font and text */
 
/* font and text */
.igem_2017_content_wrapper p {  
+
.content_wrapper p {  
padding: 0px 15px;  
+
padding:0px 15px;  
 
font-size: 13px;
 
font-size: 13px;
 +
font-family:Tahoma, Geneva, sans-serif;
 
}
 
}
  
 
/* Links */
 
/* Links */
.igem_2017_content_wrapper a {  
+
.content_wrapper a {  
 
font-weight: bold;  
 
font-weight: bold;  
 
text-decoration: underline;
 
text-decoration: underline;
text-decoration-color: #3399ff;
+
text-decoration-color:#1E4D2B;
color: #3399ff;
+
color: #1E4D2B;
 
-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 270: Line 275:
  
 
/* 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:#D7D392;
 
}
 
}
  
 
/* non numbered lists */
 
/* non numbered lists */
.igem_2017_content_wrapper ul {
+
.content_wrapper ul {
 
padding:0px 20px;
 
padding:0px 20px;
 
font-size: 13px;
 
font-size: 13px;
Line 283: Line 288:
  
 
/* numbered lists */
 
/* numbered lists */
.igem_2017_content_wrapper ol {
+
.content_wrapper ol {
 
padding:0px;  
 
padding:0px;  
 
font-size: 13px;
 
font-size: 13px;
Line 290: Line 295:
  
 
/* Table */
 
/* Table */
.igem_2017_content_wrapper table {  
+
.content_wrapper table {  
 
width: 97%;  
 
width: 97%;  
 
margin:15px 10px;  
 
margin:15px 10px;  
Line 298: Line 303:
  
 
/* table cells */
 
/* table cells */
.igem_2017_content_wrapper td {  
+
.content_wrapper td {  
 
padding: 10px;
 
padding: 10px;
 
vertical-align: text-top;  
 
vertical-align: text-top;  
Line 306: Line 311:
  
 
/* table headers */
 
/* table headers */
.igem_2017_content_wrapper th {  
+
.content_wrapper th {  
 
padding: 10px;  
 
padding: 10px;  
 
vertical-align: text-top;  
 
vertical-align: text-top;  
Line 314: Line 319:
 
}
 
}
  
 
+
/* 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;
+
background-color: #72c9b6;
}
+
cursor:pointer;
 
+
-webkit-transition: all 0.4s ease;
/* class for a full width column */
+
-moz-transition: all 0.4s ease;  
.column .full_size {
+
width:100%;
+
}
+
 
+
/* styling for images in a full width column*/
+
.column.full_size img {
+
width:97%;  
+
padding: 10px 15px;
+
}
+
 
+
/* class for a half width column */
+
.column.half_size {
+
width: 50%;  
+
}
+
/* styling for images in a half width column*/
+
.column.half_size img {
+
width: 94.5%;
+
padding: 10px 15px;
+
}
+
 
+
 
+
 
+
 
+
/********************************* SUPPORT CLASSES ********************************/
+
 
+
/* class that clears content below*/
+
.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 */
+
.igem_2017_content_wrapper .highlight {
+
margin: 0px 15px;
+
padding: 15px 0px;
+
}
+
 
+
 
+
/* highlight class, adds a gray background */
+
.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 */
+
.igem_2017_content_wrapper .highlight.blue_border {
+
    border: 4px solid  #3399ff;
+
}
+
        /* highlight with a full orange border decoration */
+
.igem_2017_content_wrapper .highlight.orange_border {
+
    border: 4px solid  #ed9325;
+
}
+
 
+
 
+
 
+
/* button class */
+
.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;  
 
-ms-transition: all 0.4s ease;  
-o-transition: all 0.4s ease; transition: all 0.4s ease;
+
-o-transition: all 0.4s ease;  
 +
transition: all 0.4s ease;  
 
}
 
}
  
/* styling for button on hover */
+
/* button class on hover */
.igem_2017_content_wrapper .button:hover{
+
.button_click:hover {
background-color: #3399ff;
+
background-color:#000000;  
    color: #000000;
+
color:#72c9b6;
 
}
 
}
  
  
 +
</style>
  
  
/***************************************************** RESPONSIVE STYLING ****************************************************/
 
 
/* IF THE SCREEN IS LESS THAN 1200PX */
 
@media only screen and (max-width: 1200px) {
 
 
#content {width:100%; }
 
.igem_2017_menu_wrapper {width:15%; right:0;}
 
.highlight {padding:10px 0px;}
 
.igem_2017_menu_wrapper #display_menu_control { display:none; }
 
#menu_content { display:block;}
 
.menu_button.direct_to_page {padding-left: 17px;}
 
 
}
 
 
/* IF THE SCREEN IS LESS THAN 800PX */
 
@media only screen and (max-width: 800px) {
 
 
.igem_2017_menu_wrapper { width:100%; height: 15%; position:relative; left:0%;}
 
.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; }
 
}
 
 
 
 
 
/* 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>
 
  
  
Line 459: Line 349:
  
  
 +
<!-- This tells the browser that your page is responsive -->
  
 
<head>  
 
<head>  
 
<!-- This tells the browser that your page is responsive -->
 
 
<meta name="viewport" content="width=device-width, initial-scale=1">  
 
<meta name="viewport" content="width=device-width, initial-scale=1">  
 
 
</head>
 
</head>
  
  
  
<div class="igem_2017_menu_wrapper" >
 
  
 +
<div class="menu_wrapper" >
  
  
<a href="https://2017.igem.org/Team:Example2">
 
<img src="http://placehold.it/350x150">
 
</a>
 
  
  
<!-- this div is hidden by default and will only be displayed if the screen size is too small -->
+
<div class="collapsable_menu_control"> MENU </div>
<div class="menu_button" id="display_menu_control">
+
     
MENU
+
        <span style='color:#D7D392; margin-left:45px'><b>CSU iGEM<b> </span>
</div>  
+
        <br><br><img src='https://static.igem.org/mediawiki/2016/2/2b/CSU_Icon.png' style='width: 135 px; border-radius:100%; margin-left:8px'/><br><br>
  
<div id="menu_content">
+
   
+
<ul id="accordion" class="accordion">
 +
               
 +
         
 +
<li class="menu_item" style= 'border-top: 1px solid black'> <a href="https://2016.igem.org/Team:CSU_Fort_Collins">HOME </a> </li>
  
 +
             
  
  
<a href="https://2017.igem.org/Team:Example2">
+
<li class="menu_item"> <div class="icon plus"></div> TEAM
<div class="menu_button direct_to_page">
+
<ul class="submenu">
HOME
+
<li> <a href=" https://2016.igem.org/Team:CSU_Fort_Collins/Team"> Team  </a> </li>
</div>  
+
<li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/Collaborations">  Collaborations </a> </li>
</a>
+
                    </ul>
 +
                </li>
  
 +
<li class="menu_item"> <div class="icon plus"></div> PROJECT 
 +
<ul class="submenu">
 +
<li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/Description">  Description </a></li>
 +
                              <li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/InterLab">  Interlab Study</a></li>
 +
                             
 +
 +
<li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/Experiments"> Experiments </a></li>
 +
 +
 +
<li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/Results"> Results </a></li>
 +
                             
 +
                    </ul>
 +
                </li>
  
 +
              <li class="menu_item"> <div class="icon plus"></div> NOTEBOOK
 +
<ul class="submenu">
 +
<li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/NoteBook/JanThroughApr">Jan Through Apr</a></li>
 +
                              <li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/NoteBook/May">May</a></li>
 +
                             
 +
<li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/NoteBook/June">June</a></li>
 +
 +
<li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/NoteBook/July"> July</a></li>
 +
<li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/NoteBook/Aug">August</a></li>
 +
<li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/NoteBook/Sep">September</a></li>
 +
<li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/NoteBook/Oct">October</a></li>
 +
                             
 +
                    </ul>
 +
                </li>
 +
               
 +
                <li class="menu_item"> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/Protocols"> PROTOCOLS </a></li>
  
<div class="menu_button">
+
<li class="menu_item"> <div class="icon plus"></div> PARTS 
<div class="expand_collapse_icon"> </div> TEAM
+
<ul class="submenu">
</div>
+
<li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/Parts">Parts </a></li>
 
+
<li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/Basic_Part"> Basic Parts </a></li>
<div class="submenu_wrapper" id="team_submenu">
+
<li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/Composite_Part">Composite Parts </a></li>
+
<a href="https://2017.igem.org/Team:Example2/Team">
+
<div class="submenu_button" id="Team_page">
+
Team
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:Example2/Collaborations">
+
<div class="submenu_button"  id="Collaborations_page">
+
Collaborations
+
</div>
+
</a>
+
 
 
+
                    </ul>
</div>
+
                </li>
  
  
+
<li class="menu_item"> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/Safety"> SAFETY </a> </li>
+
  
<div class="menu_button">
 
<div class="expand_collapse_icon">  </div> PROJECT
 
</div>
 
  
<!-- project submenu -->
+
<li class="menu_item"> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/Attributions">ATTRIBUTIONS </a></li>
<div class="submenu_wrapper">
+
+
<a href="https://2017.igem.org/Team:Example2/Description">
+
<div class="submenu_button"  id="Description_page">
+
Description
+
</div>
+
</a>
+
  
<a href="https://2017.igem.org/Team:Example2/Design">
 
<div class="submenu_button"  id="Design_page">
 
Design
 
</div>
 
</a>
 
  
<a href="https://2017.igem.org/Team:Example2/Experiments">
+
<li class="menu_item"> <div class="icon plus"></div> HUMAN PRACTICES
<div class="submenu_button"  id="Experiments_page">
+
<ul class="submenu">
Experiments
+
</div>
+
<li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/HP/Silver">Silver </a></li>
</a>
+
<li> <a href="https://2016.igem.org/Team:CSU_Fort_Collins/HP/Gold">Gold </a></li>
  
 +
                    </ul>
 +
                </li>
  
<a href="https://2017.igem.org/Team:Example2/Notebook">
 
<div class="submenu_button"  id="Notebook_page">
 
Notebook
 
</div>
 
</a>
 
  
<a href="https://2017.igem.org/Team:Example2/InterLab">
+
<div class="submenu_button"  id="InterLab_page">
+
</ul>
InterLab
+
</div>
+
</a>
+
  
<a href="https://2017.igem.org/Team:Example2/Contribution">
+
</div>
<div class="submenu_button"  id="Contribution_page">
+
Contribution
+
</div>
+
</a>
+
  
<a href="https://2017.igem.org/Team:Example2/Model">
 
<div class="submenu_button"  id="Model_page">
 
Model
 
</div>
 
</a>
 
  
<a href="https://2017.igem.org/Team:Example2/Results">
 
<div class="submenu_button"  id="Results_page">
 
Results
 
</div>
 
</a>
 
  
  
<a href="https://2017.igem.org/Team:Example2/Demonstrate">
 
<div class="submenu_button"  id="Demonstrate_page">
 
Demonstrate
 
</div>
 
</a>
 
  
<a href="https://2017.igem.org/Team:Example2/Improve">
+
<div class="content_wrapper">
<div class="submenu_button" id="Improve_page">
+
Improve
+
</div>
+
</a>
+
  
<a href="https://2017.igem.org/Team:Example2/Attributions">
 
<div class="submenu_button"  id="Attributions_page">
 
Attributions
 
</div>
 
</a>
 
  
</div>
 
  
 
 
 
 
  
<div class="menu_button">
 
<div class="expand_collapse_icon">  </div> PARTS
 
</div>
 
 
<!-- parts submenu -->
 
<div class="submenu_wrapper">
 
 
<a href="https://2017.igem.org/Team:Example2/Parts">
 
<div class="submenu_button"  id="Parts_page">
 
Parts
 
</div>
 
</a>
 
  
<a href="https://2017.igem.org/Team:Example2/Basic_Part">
 
<div class="submenu_button"  id="Basic_Part_page">
 
Basic Parts
 
</div>
 
</a>
 
  
<a href="https://2017.igem.org/Team:Example2/Composite_Part">
 
<div class="submenu_button"  id="Composite_Part_page">
 
Composite Parts
 
</div>
 
</a>
 
  
<a href="https://2017.igem.org/Team:Example2/Part_Collection">
 
<div class="submenu_button"  id="Part_Collection_page">
 
Part Collection
 
</div>
 
</a>
 
</div>
 
  
 
 
 
 
  
<a href="https://2017.igem.org/Team:Example2/Safety">
 
<div class="menu_button direct_to_page">
 
SAFETY
 
</div>
 
</a>
 
  
  
  
  
 +
<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() {
  
<div class="menu_button" >
+
$("#HQ_page").attr('id','');
<div class="expand_collapse_icon">  </div> HUMAN PRACTICES
+
</div>
+
  
<!-- human practices submenu -->
+
if ( wgPageName.substring( 0,  8) == "Template")  {  // if the page is a template it displays the full name in a single line
<div class="submenu_wrapper">
+
$("#team_name").html( wgPageName );
 +
}
  
<a href="https://2017.igem.org/Team:Example2/HP/Silver">
+
else if (  ( (wgPageName.match(/\//g) || []).length ) == 0 ) {  // if it is the home page , just print the team's name
<div class="submenu_button"   id="Silver_page">
+
$("#team_name").html( wgPageName.substring( 5, wgPageName.length ) );
Silver HP
+
}
</div>
+
</a>
+
  
<a href="https://2017.igem.org/Team:Example2/HP/Gold_Integrated">
+
else {
<div class="submenu_button" id="Gold_Integrated_page">
+
// this adds the team's name as an h1
Integrated and Gold
+
$("#team_name").html( wgPageName.substring( 5 , wgPageName.indexOf("/")  ) );
</div>
+
</a>
+
  
 +
// this adds the page's title as an h4
 +
$("#page_name").html (    ( wgPageName.substring( wgPageName.indexOf("/") + 1, wgPageName.length ) ).replace( /\/|_/g , " ")  );
 +
}
  
<a href="https://2017.igem.org/Team:Example2/Engagement">
 
<div class="submenu_button"  id="Engagement_page">
 
Public Engagement
 
</div>
 
</a>
 
  
</div>
 
  
  
<div class="menu_button">
+
$('#accordion').find('.menu_item').click(function(){
<div class="expand_collapse_icon">  </div> AWARDS
+
</div>
+
  
<!-- awards submenu -->
+
//Expand or collapse this panel
<div class="submenu_wrapper">
+
submenu = $(this).find('.submenu');
 +
submenu.toggle();
  
<a href="https://2017.igem.org/Team:Example2/Applied_Design">
+
icon = $(this).find('.icon');
<div class="submenu_button"  id="Applied_Design_page">
+
Applied Design
+
</div>
+
</a>
+
  
<a href="https://2017.igem.org/Team:Example2/Entrepreneurship">
+
if ( !$( submenu ).is(':visible') ) {
<div class="submenu_button" id="Entrepreneurship_page">
+
icon.removeClass("less").addClass("plus");
Entrepreneurship
+
}
</div>
+
else {
</a>
+
icon.removeClass("plus").addClass("less");
 +
}
  
<a href="https://2017.igem.org/Team:Example2/Hardware">
+
//Hide the other panels
<div class="submenu_button" id="Hardware_page">
+
$(".submenu").not(submenu).hide();
Hardware
+
$(".icon").not(icon).removeClass("less").addClass("plus");
</div>
+
});
</a>
+
  
<a href="https://2017.igem.org/Team:Example2/Measurement">
 
<div class="submenu_button"  id="Measurement_page">
 
Measurement
 
</div>
 
</a>
 
  
<a href="https://2017.igem.org/Team:Example2/Model">
+
$(".collapsable_menu_control").click(function() {
<div class="submenu_button" id="Model_page">
+
$(".menu_item").toggle();
Model
+
});
</div>
+
</a>
+
  
<a href="https://2017.igem.org/Team:Example2/Plant">
+
$( window ).resize(function() {
<div class="submenu_button"  id="Plant_page">
+
$(".menu_item").show();
Plant
+
});
</div>
+
</a>
+
  
  
<a href="https://2017.igem.org/Team:Example2/Software">
+
});
<div class="submenu_button"  id="Software_page">
+
Software
+
</div>
+
</a>
+
  
</div>
 
  
<a href="https://igem.org/2017_Judging_Form?team=Example2">
 
<div class="menu_button direct_to_page">
 
JUDGING FORM
 
</div>
 
</a>
 
  
  
+
</script>
<div class="menu_bottom_padding" >
+
</div>
+
+
</div>
+
 
+
 
+
 
+
 
+
</div>
+
 
+
  
  
<!-- start of content -->
+
</html>
<div class="igem_2017_content_wrapper">
+
<h1>Example2</h1>
+

Revision as of 19:06, 14 September 2017