Difference between revisions of "Template:NYMU-Taipei"

Line 1: Line 1:
 +
<!-- Declare that you are going to use html code instead of wiki code -->
 
<html>
 
<html>
  
<style>
 
  
/* WIKI SETTINGS*/
+
<!-- Start of CSS-->
+
<style type="text/css">
/* Hide first heading */
+
.firstHeading {
+
display: none;
+
}
+
+
/*-- Remove borders, float content left and remove padding/margin */
+
#globalWrapper, #content{
+
margin:0px;
+
                width: 100%;
+
height: 100%;
+
border: 0px;
+
background-color: transparent;
+
margin-top:0px;
+
padding: 0px;
+
font-size: 100%;
+
background-color: #fff;
+
}
+
  
/*left align Black Menu Bar */
+
a.anchor {
#top_menu_inside {  
+
    display: block;
margin-left: 20px;  
+
    position: relative;
}
+
    top: -80px;
 +
    visibility: hidden;
 +
}
 +
#inthis{
 +
position:absolute;
 +
z-index:1;
 +
}
  
 
+
#cssmenu2,
 
+
#cssmenu2 ul,
#cssmenu,
+
#cssmenu2 ul li,
#cssmenu ul,
+
#cssmenu2 ul li a,
#cssmenu ul li,
+
#cssmenu2 #menu-button {
#cssmenu ul li a,
+
#cssmenu #menu-button {
+
 
   margin: 0;
 
   margin: 0;
 
   padding: 0;
 
   padding: 0;
Line 45: Line 32:
 
   -moz-box-sizing: border-box;
 
   -moz-box-sizing: border-box;
 
   box-sizing: border-box;
 
   box-sizing: border-box;
z-index:3;
+
z-index:2;
 +
 
 
   
 
   
 
}
 
}
#cssmenu:after,
+
#cssmenu2:after,
#cssmenu > ul:after {
+
#cssmenu2 > ul:after {
 
   content: ".";
 
   content: ".";
 
   display: block;
 
   display: block;
Line 57: Line 45:
 
   height: 0;
 
   height: 0;
 
}
 
}
#cssmenu #menu-button {
+
#cssmenu2 #menu-button {
 
   display: none;
 
   display: none;
 
}
 
}
#cssmenu {
+
#cssmenu2 {
 
font-family: Montserrat, sans-serif;
 
font-family: Montserrat, sans-serif;
 
background-color: #339933;
 
background-color: #339933;
background-position: 60%;
+
margin-left: 7.5%;
border-top-width: 0px;
+
position: fixed;
border-right-width: 0px;
+
width: 90%;
border-bottom-width: 0px;
+
z-index 2;
border-left-width: 0px;
+
border-top-style: none;
+
border-right-style: none;
+
border-bottom-style: none;
+
border-left-style: none;
+
padding-left:300px;
+
margin: 0px;
+
position: relative;
+
width: 100%;
+
z-index: 99;
+
 
box-shadow:4px 4px 3px rgba(20%,20%,40%,0.5);
 
box-shadow:4px 4px 3px rgba(20%,20%,40%,0.5);
margin-bottom:-9px;
+
 
  
 
}
 
}
#cssmenu > ul > li {
+
 
  float: left;
+
#cssmenu2.align-center > ul {
}
+
#cssmenu.align-center > ul {
+
 
   font-size: 0;
 
   font-size: 0;
 
   text-align: center;
 
   text-align: center;
 
}
 
}
#cssmenu.align-center > ul > li {
+
#cssmenu2.align-center > ul > li {
 
   display: inline-block;
 
   display: inline-block;
 
   padding-left:20px;
 
   padding-left:20px;
 
   float: none;
 
   float: none;
 
}
 
}
#cssmenu.align-center ul ul {
+
#cssmenu2.align-center ul ul {
 
   text-align: left;
 
   text-align: left;
 
}
 
}
 
+
#cssmenu2.align-right > ul > li {
#cssmenu > ul > li > a {
+
  float: right;
   padding: 0px;
+
}
 +
#cssmenu2 > ul > li > a {
 +
    
 
   font-size: 18px;
 
   font-size: 18px;
 
   letter-spacing: 1px;
 
   letter-spacing: 1px;
Line 105: Line 83:
 
   font-weight: 700;
 
   font-weight: 700;
 
   text-transform: uppercase;
 
   text-transform: uppercase;
 +
padding-bottom:5px;
 +
padding-top:10px;
 +
 +
 
}
 
}
#cssmenu > ul > li:hover > a {
+
#cssmenu2 > ul > li:hover > a {
 
   color: #ffffff;
 
   color: #ffffff;
 
}
 
}
#cssmenu > ul > li.has-sub > a {
+
#cssmenu2 > ul > li.has-sub > a {
 
   padding-right: 30px;
 
   padding-right: 30px;
 
}
 
}
#cssmenu > ul > li.has-sub > a:after {
+
#cssmenu2 > ul > li.has-sub > a:after {
 
   position: absolute;
 
   position: absolute;
 
   top: 22px;
 
   top: 22px;
Line 122: Line 104:
 
   content: '';
 
   content: '';
 
}
 
}
#cssmenu > ul > li.has-sub > a:before {
+
#cssmenu2 > ul > li.has-sub > a:before {
 
   position: absolute;
 
   position: absolute;
 
   top: 19px;
 
   top: 19px;
Line 137: Line 119:
 
   transition: all .25s ease;
 
   transition: all .25s ease;
 
}
 
}
#cssmenu > ul > li.has-sub:hover > a:before {
+
#cssmenu2 > ul > li.has-sub:hover > a:before {
 
   top: 23px;
 
   top: 23px;
 
   height: 0;
 
   height: 0;
 
}
 
}
#cssmenu ul ul {
+
#cssmenu2 ul ul {
 
   position: absolute;
 
   position: absolute;
 
   left: -9999px;
 
   left: -9999px;
 
}
 
}
#cssmenu.align-right ul ul {
+
#cssmenu2.align-right ul ul {
 
   text-align: right;
 
   text-align: right;
 
}
 
}
#cssmenu ul ul li {
+
#cssmenu2 ul ul li {
 
   height: 0;
 
   height: 0;
 
   -webkit-transition: all .25s ease;
 
   -webkit-transition: all .25s ease;
Line 156: Line 138:
 
   transition: all .25s ease;
 
   transition: all .25s ease;
 
}
 
}
#cssmenu li:hover > ul {
+
#cssmenu2 li:hover > ul {
 
   left: auto;
 
   left: auto;
 
}
 
}
 
+
#cssmenu2.align-right li:hover > ul {
#cssmenu li:hover > ul > li {
+
  left: auto;
 +
  right: 0;
 +
}
 +
#cssmenu2 li:hover > ul > li {
 
   height: 35px;
 
   height: 35px;
 
}
 
}
#cssmenu ul ul ul {
+
#cssmenu2 ul ul ul {
 
   margin-left: 100%;
 
   margin-left: 100%;
 
   top: 0;
 
   top: 0;
 
}
 
}
 
+
#cssmenu2.align-right ul ul ul {
#cssmenu ul ul li a {
+
  margin-left: 0;
 +
  margin-right: 100%;
 +
}
 +
#cssmenu2 ul ul li a {
 
   border-bottom: 1px solid rgba(150, 150, 150, 0.15);
 
   border-bottom: 1px solid rgba(150, 150, 150, 0.15);
 
   padding: 11px 15px;
 
   padding: 11px 15px;
Line 178: Line 166:
 
   background: #333333;
 
   background: #333333;
 
}
 
}
#cssmenu ul ul li:last-child > a,
+
#cssmenu2 ul ul li:last-child > a,
#cssmenu ul ul li.last-item > a {
+
#cssmenu2 ul ul li.last-item > a {
 
   border-bottom: 0;
 
   border-bottom: 0;
 
}
 
}
#cssmenu ul ul li:hover > a,
+
#cssmenu2 ul ul li:hover > a,
#cssmenu ul ul li a:hover {
+
#cssmenu2 ul ul li a:hover {
 
   color: #ffffff;
 
   color: #ffffff;
 
}
 
}
#cssmenu ul ul li.has-sub > a:after {
+
#cssmenu2 ul ul li.has-sub > a:after {
 
   position: absolute;
 
   position: absolute;
 
   top: 16px;
 
   top: 16px;
Line 196: Line 184:
 
   content: '';
 
   content: '';
 
}
 
}
 
+
#cssmenu2.align-right ul ul li.has-sub > a:after {
#cssmenu ul ul li.has-sub > a:before {
+
  right: auto;
 +
  left: 11px;
 +
}
 +
#cssmenu2 ul ul li.has-sub > a:before {
 
   position: absolute;
 
   position: absolute;
 
   top: 13px;
 
   top: 13px;
Line 211: Line 202:
 
   -o-transition: all .25s ease;
 
   -o-transition: all .25s ease;
 
   transition: all .25s ease;
 
   transition: all .25s ease;
 +
}
 +
#cssmenu2.align-right ul ul li.has-sub > a:before {
 +
  right: auto;
 +
  left: 14px;
 
}
 
}
  
  
  
 
+
#cssmenu2 ul ul > li.has-sub:hover > a:before {
#cssmenu ul ul > li.has-sub:hover > a:before {
+
 
   top: 17px;
 
   top: 17px;
 
   height: 0;
 
   height: 0;
 
}
 
}
  
body#home a.homenav,
 
body#overview a.overnav,
 
body#project a.projnav,
 
body#pp a.ppnav,
 
body#biosafety a.bsnav,
 
body#notebook a.ntnav,
 
body#team a.teamnav {
 
color: #fff;
 
            border-bottom: solid 5px white;
 
  
 +
#jumpup{
 +
        display: inline-block;
 +
        position: fixed;
 +
        z-index: 98;
 +
        bottom: 3%;
 +
      right:4%;
 +
        cursor:pointer;
 +
        width: 90px;
 
}
 
}
  
 +
#jumpup div.pic {
 +
    background: url(https://static.igem.org/mediawiki/2015/6/62/Nymu-Top.jpg) no-repeat;
 +
    background-size: 110px;
 +
    height: 110px;
 +
    width: 110px;
 +
}
  
/********************************* DEFAULT WIKI SETTINGS  ********************************/
+
#jumpup div.infotop {
 +
    padding-right:30px;
 +
    display: none;
 +
    background: url(https://static.igem.org/mediawiki/2015/b/b8/Nymu-top2.png) no-repeat;
 +
    background-size: 70px;
 +
    height: 70px;
 +
    width: 70px;
 +
}
  
#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; }
 
  
/********************************* MENU ********************************/
 
/* 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 */
 
.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 */
 
.menu_item:hover {
 
color:#000000;
 
background-color: #72c9b6;
 
}
 
 
/* decoration icon for the menu buttons*/
 
.icon {
 
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 */
 
ul.menu_items {
 
width:100%;
 
margin-left:0px;
 
padding:0px;
 
list-style: none;
 
}
 
 
/* 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 {
 
width: 100%;
 
margin-left: -20px;
 
padding: 11px 90px 12px 20px;
 
text-decoration: none;
 
color:black;
 
}
 
 
/* When hovering on a menu item */
 
.menu_items li:hover {
 
background-color:#72c9b6;
 
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;
 
}
 
 
 
/* 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: #72c9b6;
 
}
 
 
 
/* 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:#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 */
 
.collapsable_menu_control:hover {
 
background-color: #72c9b6;
 
color:#000000; 
 
}
 
 
/********************************* CONTENT OF THE PAGE ********************************/
 
 
/* Wrapper for the content */
 
.content_wrapper {
 
width: 85%;
 
margin-left:150px;
 
padding:10px 0px;
 
float:left;
 
background-color:white;
 
}
 
 
/*LAYOUT */
 
.column  {
 
padding: 10px 0px;
 
float:left;
 
background-color:white;
 
}
 
 
.full_size {
 
width:100%;
 
}
 
 
.full_size img {
 
padding: 10px 15px;
 
width:96.5%;
 
}
 
 
.half_size {
 
width: 50%;
 
}
 
.half_size img {
 
padding: 10px 15px;
 
width: 93%;
 
}
 
 
 
.clear {
 
clear:both;
 
}
 
 
.highlight {
 
width: 90%;
 
margin: auto;
 
padding: 15px 5px;
 
background-color: #f2f2f2;
 
}
 
 
.judges-will-not-evaluate {
 
border: 4px solid #72c9b6;
 
display: block;
 
margin: 5px 15px;
 
width: 95%;
 
font-weight:bold;
 
}
 
 
 
/*STYLING */
 
 
/* styling for the titles */
 
.content_wrapper h1, .content_wrapper h2 {
 
padding:5px 15px;
 
border-bottom:0px;
 
color:#72c9b6;
 
 
}
 
.content_wrapper h3, .content_wrapper h4, .content_wrapper h5, .content_wrapper h6 {
 
padding:5px 15px;
 
border-bottom:0px;
 
color: #000000; 
 
}
 
 
 
/* font and text */
 
.content_wrapper p {
 
padding:0px 15px;
 
font-size: 13px;
 
font-family:Tahoma, Geneva, sans-serif;
 
}
 
 
/* Links */
 
.content_wrapper a {
 
font-weight: bold;
 
text-decoration: underline;
 
text-decoration-color:#72c9b6;
 
color: #72c9b6;
 
-webkit-transition: all 0.4s ease;
 
-moz-transition: all 0.4s ease;
 
-ms-transition: all 0.4s ease;
 
-o-transition: all 0.4s ease;
 
transition: all 0.4s ease;
 
}
 
 
/* hover for the links */
 
.content_wrapper a:hover {
 
text-decoration:none;
 
color:#000000;
 
}
 
 
/* non numbered lists */
 
.content_wrapper ul {
 
padding:0px 20px;
 
font-size: 13px;
 
font-family:Tahoma, Geneva, sans-serif;
 
}
 
 
/* numbered lists */
 
.content_wrapper ol {
 
padding:0px;
 
font-size: 13px;
 
font-family:Tahoma, Geneva, sans-serif;
 
}
 
 
/* Table */
 
.content_wrapper table {
 
width: 97%;
 
margin:15px 10px;
 
border: 1px solid #d3d3d3;
 
border-collapse: collapse;
 
}
 
 
/* table cells */
 
.content_wrapper  td {
 
padding: 10px;
 
vertical-align: text-top;
 
border: 1px solid #d3d3d3;
 
border-collapse: collapse;
 
}
 
 
/* table headers */
 
.content_wrapper th {
 
padding: 10px;
 
vertical-align: text-top;
 
border: 1px solid #d3d3d3;
 
border-collapse: collapse;
 
background-color:#f2f2f2;
 
}
 
 
/* Button class */
 
.button_click {
 
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 */
 
.button_click:hover { 
 
background-color:#000000;
 
color:#72c9b6;
 
}
 
 
/********************************* RESPONSIVE STYLING ********************************/
 
 
/* 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;}
 
}
 
 
 
/* IF THE SCREEN IS LESS THAN 680PX */
 
 
@media only screen and (max-width: 680px) {
 
.collapsable_menu_control { display:block;}
 
.menu_item {display:none;}
 
.menu_wrapper { width:100%; height: 15%; position:relative;}
 
.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>
 
</style>
  
  
 +
<script>
 +
$(document).ready(function() {
  
 
+
                                //totop
<!--- THIS IS WHERE THE HTML BEGINS --->
+
        $('#jumpup').on('click',function(){$('body, html').animate({scrollTop: 0},1);})
 +
                      .on('mouseover',function(){$(this).find('div.infotop').css('display','block');})
 +
                          .on('mouseout',function(){$(this).find('div.infotop').css('display','none'); }                   
 +
        );
 +
});
 +
</script>
  
  
<!-- This tells the browser that your page is responsive -->
 
  
<head>
 
<meta name="viewport" content="width=device-width, initial-scale=1">
 
</head>
 
  
 +
<div id= ' inthis'>
 
 
  
<div id='cssmenu' class='align-center'>
+
<div id='cssmenu2' class='align-center'>
  <img src="https://static.igem.org/mediawiki/2015/a/a6/Nymu-title-logo.gif" style=" PADDING-top: 10px;margin-left:-100px ;position:absolute;"height="60px" >
+
 
     <ul>
 
     <ul>
 
      
 
      
       <li><a href='https://2015.igem.org/Team:NYMU-Taipei' class="homenav"><img src="https://static.igem.org/mediawiki/2015/f/f9/Nymu-home.gif" width="100%" height="100%" /></a></li>
+
       <li><a href='https://2015.igem.org/Team:NYMU-Taipei' class="homenav">HOME</a></li>
  
<li><a class="overnav" style=""><img src="https://static.igem.org/mediawiki/2015/e/e2/Nymu-Overview.gif" width="100%" height="100%" /></a>
+
<li><a ='#'class="overnav">OVERVIEW</a>
 
         <ul>
 
         <ul>
           <li><a href='https://2015.igem.org/Template:NYMU-2015project-overview' >Background</a></li>
+
           <li><a href='https://2015.igem.org/Template:NYMU-2015project-overview'>Background</a></li>
 
          
 
          
 
           <li><a href='https://2015.igem.org/Team:NYMU-Taipei/Collaborations' >Collaboration</a></li>
 
           <li><a href='https://2015.igem.org/Team:NYMU-Taipei/Collaborations' >Collaboration</a></li>
Line 617: Line 286:
  
  
       <li><a href='https://2015.igem.org/Template:NYMU-2015project-wetlab#' class="projnav"><img src="https://static.igem.org/mediawiki/2015/0/06/Nymu-project.gif" width="100%" height="100%" /></a>
+
       <li><a href='https://2015.igem.org/Template:NYMU-2015project-wetlab'class="projnav">PROJECT</a>
 
         <ul>
 
         <ul>
   
+
       
           <li><a href='https://2015.igem.org/Template:NYMU-2015project-wetlab#experiment' >Experiment</a>
+
 
 +
           <li><a href='https://2015.igem.org/Template:NYMU-2015project-wetlab#experiment'>Experiment</a>
 
           </li>
 
           </li>
           <li><a href="https://2015.igem.org/Template:NYMU-2015project-wetlab#modeling">Modeling</a>
+
           <li><a href='https://2015.igem.org/Template:NYMU-2015project-wetlab#modeling'>Modeling</a>
 
           </li>
 
           </li>
 
           <li><a href="https://2015.igem.org/Team:NYMU-Taipei/Design">Functional<br>Prototype</a>
 
           <li><a href="https://2015.igem.org/Team:NYMU-Taipei/Design">Functional<br>Prototype</a>
Line 629: Line 299:
 
         </ul>
 
         </ul>
 
       </li>
 
       </li>
       <li><a href='https://2015.igem.org/Team:NYMU-Taipei/Practices'class="ppnav"><img src=" https://static.igem.org/mediawiki/2015/2/24/Nymu-Parts.gif" width="100%" height="100%" /></a></li>
+
       <li><a href='https://2015.igem.org/Team:NYMU-Taipei/Practices' class="ppnav">POLICY PRACTICES</a></li>
  
  
  
  
<li><a href='https://2015.igem.org/Template:NYMU-2015project-safety'class="bsnav"><img src=" https://static.igem.org/mediawiki/2015/3/37/Nymu-Safety.gif" width="100%" height="100%" /></a>
+
<li><a href='https://2015.igem.org/Template:NYMU-2015project-safety' class="bsnav">BIOSAFETY</a>
       
+
     
 
       </li>
 
       </li>
  
Line 647: Line 317:
  
  
       <li><a class="ntnav"><img src=" https://static.igem.org/mediawiki/2015/8/8b/Nymu-Notebook.gif" width="100%" height="100%" /></a>
+
       <li><a class="ntnav">NOTEBOOK</a>
         <ul>    
+
         <ul>  
           <li><a href='https://2015.igem.org/wiki/index.php?title=Template:NYMU-2015notebook-calendar'>Calendar</a></li>
+
           <li><a href='https://2015.igem.org/wiki/index.php?title=Template:NYMU-2015notebook-calendar'>Calendar</a></li>  
 
           <li><a href='https://2015.igem.org/wiki/index.php?title=Template:NYMU-2015notebook-lab'>Lab</a></li>
 
           <li><a href='https://2015.igem.org/wiki/index.php?title=Template:NYMU-2015notebook-lab'>Lab</a></li>
          <li><a href='https://2015.igem.org/wiki/index.php?title=Template:NYMU-2015notebook-protocol'>Protocol</a></li>
+
          <li><a href='https://2015.igem.org/wiki/index.php?title=Template:NYMU-2015notebook-protocol'>Protocol</a></li>
      </ul>
+
        </ul>
 
       </li>
 
       </li>
 
        
 
        
       <li><a href='https://2015.igem.org/Team:NYMU-Taipei/Team' class="teamnav"><img src=" https://static.igem.org/mediawiki/2015/5/50/Nymu-Team.gif" width="100%" height="100%" /></a></li>
+
       <li><a href='https://2015.igem.org/Team:NYMU-Taipei/Team'class="teamnav">TEAM</a></li>
  
 
    
 
    
Line 662: Line 332:
  
  
 
+
<div id='jumpup'>
 
+
<div class='infotop'></div>
 
+
<div class='pic'></div>
<script>
+
</div>
 
+
</div>
// 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>
+
 
+
 
+
 
</html>
 
</html>

Revision as of 22:53, 26 July 2016