Difference between revisions of "Template:ShanghaitechChina"

Line 1: Line 1:
<html lang="en">
+
<html>
 +
 
 +
<style type="text/css">
 +
  @import url(http://fonts.googleapis.com/css?family=Indie+Flower);body{font-family:Indie Flower,Daniel,cursive}h1,h2,h3,h4{text-align:center}blockquote{margin:1.5em 10px;padding:.5em 10px}blockquote:before{color:#000;content:open-quote;font-size:2em;line-height:.1em;margin-right:.25em;vertical-align:-.4em}blockquote:after{color:#000;content:close-quote;font-size:2em;line-height:.1em;margin-left:.25em;vertical-align:-.4em}blockquote p{display:inline}hr{border:0;border-top:dashed 2px gray}table{padding:0}table tr{border-top:1px solid #ccc;background-color:#fff;margin:0;padding:0}table tr:nth-child(2n){background-color:#aaa}table tr th{font-weight:700;border:1px solid #ccc;text-align:left;margin:0;padding:6px 13px}table tr td{border:1px solid #ccc;text-align:left;margin:0;padding:6px 13px}table tr td :first-child,table tr th :first-child{margin-top:0}table tr td:last-child,table tr th :last-child{margin-bottom:0}
 +
  </style>
 +
 
 
<style>
 
<style>
  
Line 6: Line 11:
 
#sideMenu, #top_title {display:none;}
 
#sideMenu, #top_title {display:none;}
 
#content { padding:0px; width:1000px; margin-top:-7px; margin-left:0px;}
 
#content { padding:0px; width:1000px; margin-top:-7px; margin-left:0px;}
body {background-color:blue; }
+
body {background-color:white; }
 
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
 
#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:#f68915;
 
text-align:left;
 
}
 
 
/* styling for the menu items */
 
.menu_item {
 
width:100%;
 
margin:-2px 0px 0px -20px;
 
padding: 10px 10px; 
 
border-bottom: 1px solid #F7A043;
 
font-weight:bold;
 
color:#FFF;
 
cursor: pointer;
 
}
 
 
/* when hovering on a menu item */
 
.menu_item:hover {
 
color:#fff;
 
background-color: #F7A043;
 
}
 
 
/* 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 #F7A043; 
 
text-align:left;
 
font-weight:bold;
 
text-decoration:none;
 
color:#fff;
 
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:#fff;
 
}
 
 
/* When hovering on a menu item */
 
.menu_items li:hover {
 
background-color:#F68915;
 
color: #fff;
 
}
 
 
/* 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 #F7A043;
 
background-color:white;
 
text-decoration:none;
 
color:#000000;
 
}
 
 
 
 
.submenu li a:hover  {
 
background-color:#F7A043;
 
color: #000000;
 
}
 
 
 
/* 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:#F68915;
 
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: #F68915;
 
color:#000000; 
 
}
 
  
 
/********************************* CONTENT OF THE PAGE ********************************/
 
/********************************* CONTENT OF THE PAGE ********************************/
Line 348: Line 201:
  
 
</style>
 
</style>
<head>
 
    <title>igem2016:ShanghaiTech</title>
 
    <meta charset="utf-8">
 
    <meta name="viewport" content="width=device-width, initial-scale=1">
 
    <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
 
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
 
    <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
 
    <style type="text/css">
 
.navbar {
 
  background-color: #222;
 
  background: #222;
 
  border-color: #222;
 
opacity:0.9;
 
}
 
  
.navbar li {
+
 
background-color: #222;
+
 
  background: #222;
+
 
  border-color: #222; }
+
<!--- THIS IS WHERE THE HTML BEGINS --->
.navbar li a{
+
 
color:#FFF;
+
 
}
+
<!-- This tells the browser that your page is responsive -->
    </style>
+
 
 +
<head>
 +
<meta name="viewport" content="width=device-width, initial-scale=1">  
 
</head>
 
</head>
<body>
 
  
    <nav class="navbar navbar-fixed-top">
 
        <div class="container-fluid">
 
  
            <!-- Logo -->
 
            <div class="navbar-header">
 
                <a href="#" class="navbar-brand">Solar Hunter</a>
 
            </div>
 
  
            <!-- Menu Items -->
 
            <div>
 
                <ul class="nav navbar-nav">
 
                   
 
                </ul>
 
  
                <!--right align -->
+
<div class="menu_wrapper" >
                <ul class="nav navbar-nav navbar-right">
+
 
                    <li class="active"><a href="https://2016.igem.org/Team:ShanghaitechChina">HOME</a></li>
+
 
<li class="dropdown">
+
 
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">TEAM<span class="caret"></span></a>
+
 
                        <ul class="dropdown-menu">
+
<div class="collapsable_menu_control"> MENU ▤ </div>
                            <li><a href="https://2016.igem.org/Team:ShanghaitechChina/Team">Team</a></li>
+
 
                            <li><a href="https://2016.igem.org/Team:ShanghaitechChina/Collaborations">Collaborations</a></li>
+
<ul id="accordion" class="accordion">
                        </ul>
+
 
                    </li>
+
<li class="menu_item"> <a href="https://2016.igem.org/Team:ShanghaitechChina">HOME </a> </li>
<li class="dropdown">
+
 
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">PROJECT<span class="caret"></span></a>
+
 
                        <ul class="dropdown-menu">
+
<li class="menu_item"> <div class="icon plus"></div> TEAM
                            <li><a href="https://2016.igem.org/Team:ShanghaitechChina/Description">Description</a></li>
+
<ul class="submenu">
                            <li><a href="https://2016.igem.org/Team:ShanghaitechChina/Design">Design</a></li>
+
<li> <a href=" https://2016.igem.org/Team:ShanghaitechChina/Team"> Team   </a> </li>
<li><a href="https://2016.igem.org/Team:ShanghaitechChina/Experiments">Experiments</a></li>
+
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Collaborations">★  Collaborations </a> </li>
                            <li><a href="https://2016.igem.org/Team:ShanghaitechChina/Proof">Proof</a></li>
+
                    </ul>
                            <li><a href="https://2016.igem.org/Team:ShanghaitechChina/Demonstrate">Demonstrate</a></li>
+
                </li>
<li><a href="https://2016.igem.org/Team:ShanghaitechChina/Results">Results</a></li>
+
 
<li><a href="https://2016.igem.org/Team:ShanghaitechChina/Notebook">Notebook</a></li>
+
<li class="menu_item"> <div class="icon plus"></div> PROJECT 
                        </ul>
+
<ul class="submenu">
                    </li>
+
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Description"> ★  Description </a></li>
<li class="dropdown">
+
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Design"> Design </a></li>
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">PARTS<span class="caret"></span></a>
+
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Experiments"> Experiments </a></li>
                        <ul class="dropdown-menu">
+
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Proof"> Proof of Concept </a></li>
                            <li><a href="https://2016.igem.org/Team:ShanghaitechChina/Parts">Parts</a></li>
+
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Demonstrate"> Demonstrate </a></li>
                            <li><a href="https://2016.igem.org/Team:ShanghaitechChina/Basic_Part">Basic_Part</a></li>
+
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Results"> Results </a></li>
<li><a href="https://2016.igem.org/Team:ShanghaitechChina/Composite_Part">Composite_Part</a></li>
+
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Notebook"> Notebook </a></li>
                            <li><a href="https://2016.igem.org/Team:ShanghaitechChina/Part_Collection">Part_Collection</a></li>
+
                    </ul>
                        </ul>
+
                </li>
                    </li>
+
 
                    <li class="active"><a href="https://2016.igem.org/Team:ShanghaitechChina/Safety">SAFETY</a></li>
+
<li class="menu_item"> <div class="icon plus"></div> PARTS 
<li class="active"><a href="https://2016.igem.org/Team:ShanghaitechChina/Attributions">ATTRIBUTIONS</a></li>
+
<ul class="submenu">
<li class="active"><a href="https://2016.igem.org/Team:ShanghaitechChina/Human_Practices">ATTRIBUTIONS</a></li>
+
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Parts">Parts </a></li>
                    <!-- drop down menu -->
+
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Basic_Part"> ★ Basic Parts </a></li>
                   
+
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Composite_Part"> ★ Composite Parts </a></li>
                 </ul>
+
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Part_Collection"> ★ Part Collection </a></li>
 +
                    </ul>
 +
                </li>
 +
 
 +
 
 +
<li class="menu_item"> <a href="https://2016.igem.org/Team:ShanghaitechChina/Safety"> SAFETY </a> </li>
 +
 
 +
 
 +
<li class="menu_item"> <a href="https://2016.igem.org/Team:ShanghaitechChina/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:ShanghaitechChina/Human_Practices"> Human Practices </a></li>
 +
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/HP/Silver">★ Silver </a></li>
 +
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/HP/Gold">★ Gold </a></li>
 +
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Integrated_Practices"> ★ Integrated Practices </a></li>
 +
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/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:ShanghaitechChina/Entrepreneurship"> ★ Entrepreneurship </a></li>
 +
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Hardware"> ★ Hardware </a></li>
 +
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Software">★ Software </a></li>
 +
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Measurement">★  Measurement </a></li>
 +
<li> <a href="https://2016.igem.org/Team:ShanghaitechChina/Model">★ Model </a></li>
 +
 
 +
                    </ul>
 +
                 </li>
 +
</ul>
 +
 
 +
</div>
 +
 
 +
 
 +
 
 +
 
 +
 
 +
<div class="content_wrapper">
 +
 
 +
<img style="margin-left:10px" src="https://static.igem.org/mediawiki/2016/4/49/SHTU_Icon.png" align="center" width="160" height="43">
 +
 
 +
<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();
 +
});
 +
 
 +
 
 +
});
  
            </div>
+
</script>
  
        </div>
+
                               
    </nav>
+
               
  
</body>
 
 
</html>
 
</html>

Revision as of 13:20, 13 August 2016