Difference between revisions of "Template:Peking"

(Prototype team template page)
 
Line 1: Line 1:
 +
<!DOCTYPE html>
 
<html>
 
<html>
 +
<head>
 +
    <meta charset="utf-8">
 +
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
 +
    <meta name="viewport" content="width=device-width, initial-scale=1">
  
<script>
+
    <title>Team:Peking</title>
 
+
    <!-- load stylesheets -->
// This is the jquery part of your template. 
+
    <!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400"> -->
// Try not modify any of this code too much since it makes your menu work.
+
    <!-- Google web font "Open Sans" -->
 
+
    <link rel="stylesheet" href="font-awesome-4.5.0/css/font-awesome.min.css">               
$(document).ready(function() {
+
    <!-- Font Awesome -->
 
+
    <link rel="stylesheet" href="css/bootstrap.min.css">                                     
$("#HQ_page").attr('id','');
+
    <!-- Bootstrap style -->
 
+
    <link rel="stylesheet" href="css/hero-slider-style.css">                             
// call the functions that control the menu
+
    <!-- Hero slider style (https://codyhouse.co/gem/hero-slider/) -->
menu_functionality();
+
    <link rel="stylesheet" href="css/magnific-popup.css">                               
hide_show_menu();
+
    <!-- Magnific popup style (http://dimsemenov.com/plugins/magnific-popup/) -->
 
+
    <link rel="stylesheet" href="css/templatemo-style.css">                                  
 
+
    <!-- Templatemo style -->
 
+
//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
+
$("#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
+
if (window.location.href.indexOf("submit") >= 0) {
+
$(".igem_2017_menu_wrapper").hide();
+
}
+
 
+
// if the black menu bar has been loaded
+
  if (document.getElementById('bars_item')) {
+
 
+
// when the "bars_item" has been clicked
+
$("#bars_item").click(function() {
+
$("#sideMenu").hide();
+
 
+
// show/hide the menu wrapper
+
$(".igem_2017_menu_wrapper").fadeToggle("100");
+
});
+
  }
+
 
+
// 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
+
else {
+
    setTimeout(hide_show_menu, 15);
+
}
+
}
+
 
+
 
+
});
+
 
+
 
+
</script>
+
 
+
 
+
 
+
 
+
 
+
<style>
+
 
+
 
+
 
+
/***************************************************** DEFAULT WIKI SETTINGS  ****************************************************/
+
+
/* 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; }
+
 
+
+
+
+
/**************************************************************** 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;
+
}
+
 
+
/* this hides the scrollbar to keep view consistency */
+
.igem_2017_menu_wrappe::-webkit-scrollbar {
+
display: none;
+
}
+
+
+
/* styling for links in the menu, removes the line under text */
+
.igem_2017_menu_wrapper a { 
+
text-decoration: none;
+
}
+
 
+
 
+
/* styling for the images in the menu */
+
.igem_2017_menu_wrapper img {
+
width: 100%;
+
}
+
 
+
/* styling for the menu buttons */
+
.igem_2017_menu_wrapper .menu_button {
+
width: 100%;
+
padding: 10px 0px 10px 15px;
+
float:left;
+
border-bottom: 1px solid #d3d3d3;
+
font-size: 12px;
+
font-weight: bold;
+
color: #5e5f5f;
+
cursor: pointer;
+
}
+
 
+
 
+
.igem_2017_menu_wrapper .menu_bottom_padding {
+
width: 100%;
+
height: 30px;
+
float:left;
+
}
+
 
+
.menu_button.direct_to_page {
+
padding-left: 36px;
+
}
+
 
+
 
+
.igem_2017_menu_wrapper .menu_button .expand_collapse_icon {
+
width:10%;
+
float:left;
+
}
+
 
+
.igem_2017_menu_wrapper .menu_button .expand_collapse_icon::before {
+
content: "+"
+
}
+
+
.open::before {
+
content: "-" !important; 
+
}
+
+
+
+
/* 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;
+
}
+
 
+
 
+
/* styling for the submenu buttons */
+
.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*/
+
.igem_2017_menu_wrapper .submenu_wrapper {
+
display:none;
+
}
+
 
+
/* when the page size is bigger than 800px, this show/hide control is hidden by default */
+
.igem_2017_menu_wrapper #display_menu_control {
+
display:none;
+
text-align:center;
+
}
+
+
 
+
/***************************************************** CONTENT OF THE PAGE ****************************************************/
+
 
+
/* Wrapper for the content */
+
.igem_2017_content_wrapper {
+
width: 81%;
+
margin: 2%;
+
display:block;
+
float:left;
+
background-color:white;
+
font-family:Tahoma, Geneva, sans-serif;
+
}
+
 
+
 
+
/********************************* HTML STYLING  *********************************/
+
 
+
/* styling for the titles h1 h2 */
+
.igem_2017_content_wrapper h1, .igem_2017_content_wrapper h2 {
+
padding:5px 15px;
+
border-bottom: 0px;
+
color: #3399ff;
+
}
+
 
+
 
+
/* 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;
+
border-bottom:0px;
+
color: #000000; 
+
}
+
 
+
 
+
/* font and text */
+
.igem_2017_content_wrapper p {
+
padding: 0px 15px;
+
font-size: 13px;
+
}
+
 
+
/* Links */
+
.igem_2017_content_wrapper a {
+
font-weight: bold;
+
text-decoration: underline;
+
text-decoration-color: #3399ff;
+
color:  #3399ff;
+
-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 */
+
.igem_2017_content_wrapper a:hover {
+
text-decoration:none;
+
color:#000000;
+
}
+
 
+
/* non numbered lists */
+
.igem_2017_content_wrapper ul {
+
padding:0px 20px;
+
font-size: 13px;
+
font-family:Tahoma, Geneva, sans-serif;
+
}
+
 
+
/* numbered lists */
+
.igem_2017_content_wrapper ol {
+
padding:0px;
+
font-size: 13px;
+
font-family:Tahoma, Geneva, sans-serif;
+
}
+
 
+
/* Table */
+
.igem_2017_content_wrapper table {
+
width: 97%;
+
margin:15px 10px;
+
border: 1px solid #d3d3d3;
+
border-collapse: collapse;
+
}
+
 
+
/* table cells */
+
.igem_2017_content_wrapper  td {
+
padding: 10px;
+
vertical-align: text-top;
+
border: 1px solid #d3d3d3;
+
border-collapse: collapse;
+
}
+
 
+
/* table headers */
+
.igem_2017_content_wrapper th {
+
padding: 10px;
+
vertical-align: text-top;
+
border: 1px solid #d3d3d3;
+
border-collapse: collapse;
+
background-color:#f2f2f2;
+
}
+
 
+
 
+
/**********************************LAYOUT CLASSES **********************************/
+
 
+
/* general class for column divs */
+
.igem_2017_content_wrapper .column  {
+
padding: 10px 0px;
+
float:left;
+
}
+
 
+
/* class for a full width column */
+
.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;
+
}
+
 
+
 
+
/* 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;
+
-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;
+
}
+
 
+
 
+
 
+
 
+
/***************************************************** 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>
+
 
+
 
+
<!--- THIS IS WHERE THE HTML BEGINS --->
+
 
+
 
+
 
+
<head>
+
 
+
<!-- This tells the browser that your page is responsive -->
+
<meta name="viewport" content="width=device-width, initial-scale=1">  
+
  
 +
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
 +
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
 +
        <!--[if lt IE 9]>
 +
          <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
 +
          <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
 +
          <![endif]-->
 
</head>
 
</head>
  
 +
    <body>
 +
       
 +
        <!-- Content -->
 +
        <div class="cd-hero">
  
 +
            <!-- Navigation -->       
 +
            <div class="cd-slider-nav">
 +
                <nav class="navbar">
 +
                    <div class="tm-navbar-bg">
 +
                       
 +
                        <a class="navbar-brand text-uppercase" href="#"><i class="fa fa-send-o tm-brand-icon"></i>Motion</a>
  
<div class="igem_2017_menu_wrapper" >
+
                        <button class="navbar-toggler hidden-lg-up" type="button" data-toggle="collapse" data-target="#tmNavbar">
 
+
                            &#9776;
 
+
                        </button>
 
+
                        <div class="collapse navbar-toggleable-md text-xs-center text-uppercase tm-navbar" id="tmNavbar">
<a href="https://2017.igem.org/Team:Peking">
+
                            <ul class="nav navbar-nav">
<img src="http://placehold.it/350x150">
+
                                <li class="nav-item active selected">
</a>
+
                                    <a class="nav-link" href="#0" data-no="1">Home <span class="sr-only">(current)</span></a>
 +
                                </li>
 +
                                <li class="nav-item">
 +
                                    <a class="nav-link" href="#0" data-no="2">About</a>
 +
                                </li>
 +
                                <li class="nav-item">
 +
                                    <a class="nav-link" href="#0" data-no="3">Gallery One</a>
 +
                                </li>
 +
                                <li class="nav-item">
 +
                                    <a class="nav-link" href="#0" data-no="4">Gallery Two</a>
 +
                                </li>
 +
                                <li class="nav-item">
 +
                                    <a class="nav-link" href="#0" data-no="5">Testimonials</a>
 +
                                </li>
 +
                                <li class="nav-item">
 +
                                    <a class="nav-link" href="#0" data-no="6">Contact</a>
 +
                                </li>
 +
                            </ul>
 +
                        </div>                       
 +
                    </div>
  
 +
                </nav>
 +
            </div>
  
<!-- this div is hidden by default and will only be displayed if the screen size is too small -->
+
            <ul class="cd-hero-slider">  <!-- autoplay -->
<div class="menu_button" id="display_menu_control">
+
                <li class="selected">
MENU 
+
                    <div class="cd-full-width">
</div>  
+
                        <div class="container-fluid js-tm-page-content tm-page-1" data-page-no="1">
  
<div id="menu_content">
+
                            <div class="cd-bg-video-wrapper" data-video="video/moving-cloud">
+
                                <!-- video element will be loaded using jQuery -->
 +
                            </div> <!-- .cd-bg-video-wrapper -->
 +
                           
 +
                            <div class="row">
 +
                           
 +
                                <div class="col-xs-12">
 +
                                    <div class="tm-2-col-container tm-bg-white-translucent">
  
 +
                                        <div class="row">
 +
                                            <div class="col-xs-12">
 +
                                                <h2 class="tm-text-title">Cool Video Backgrounds</h2>   
 +
                                            </div>                                           
 +
                                        </div>
  
 +
                                        <div class="row">
 +
                                            <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 tm-2-col-left">
 +
                                                <div class="text-xs-left tm-textbox tm-2-col-textbox">                                           
 +
                                                    <p class="tm-text">Motion web template integrates a very active video background for each page. Download and use this for your website and tell your friends about it.</p>
 +
                                                    <p class="tm-text">This HTML CSS template is brought to you by <a href="http://plus.google.com/+templatemo" target="_blank">templatemo</a>. You can fully customize it to meet your website needs.</p>
 +
                                                </div>
 +
                                            </div>
 +
                                            <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 tm-2-col-right">
 +
                                                <div class="text-xs-left tm-textbox tm-2-col-textbox">
 +
                                                    <p class="tm-text">Cras tempus, eros vel ultrices aliquam, velit tortor sodales risus, ac facilisis lectus tortor eget neque. Nam auctor dui ante. Curabitur tristique.</p>
 +
                                                    <p class="tm-text">Quisque sagittis quam tortor, sit amet posuere justo tempor non. Nunc eu leo sit amet elit condimentum.</p>
 +
                                                </div>         
 +
                                            </div>
 +
                                           
 +
                                        </div>
  
<a href="https://2017.igem.org/Team:Peking">
+
                                    </div>
<div class="menu_button direct_to_page">
+
                                </div>
HOME
+
</div>
+
</a>
+
  
 +
                            </div>
  
 +
                        </div>
 +
                    </div> <!-- .cd-full-width -->
 +
                </li>
  
<div class="menu_button">
+
                <li>
<div class="expand_collapse_icon">  </div> TEAM
+
                    <div class="cd-full-width">
</div>  
+
  
<div class="submenu_wrapper" id="team_submenu">
+
                        <div class="container-fluid js-tm-page-content" data-page-no="2">
+
<a href="https://2017.igem.org/Team:Peking/Team">
+
<div class="submenu_button" id="Team_page">
+
Team
+
</div>
+
</a>
+
  
<a href="https://2017.igem.org/Team:Peking/Collaborations">
+
                            <div class="cd-bg-video-wrapper" data-video="video/red-flower">
<div class="submenu_button" id="Collaborations_page">
+
                                <!-- video element will be loaded using jQuery -->
Collaborations
+
                            </div> <!-- .cd-bg-video-wrapper -->
</div>
+
                           
</a>
+
                            <div class="row">
+
                                <div class="col-xs-12">
+
                                    <div class="tm-flex tm-2-col-container-2">
</div>
+
                           
 +
                                        <div class="tm-bg-white-translucent text-xs-left tm-textbox tm-2-col-textbox-2 tm-textbox-padding">
 +
                                            <h2 class="tm-text-title">Lorem ipsum dolor</h2>
 +
                                            <p class="tm-text">Nulla efficitur, ligula et imperdiet volutpat, lacus tortor tempus massa, eget tempus quam nibh vel nulla.</p>
 +
                                            <p class="tm-text">Vivamus non molestie leo, non tincidunt diam. Mauris sagittis elit in velit ultricies aliquet sed in magna.</p>
 +
                                            <p class="tm-text">Pellentesque semper, est nec consequat viverra, sem augue tincidunt nisi, a posuere nisi sapien sed sapien. Nulla facilisi.</p>
 +
                                        </div>
  
 +
                                        <div class="tm-bg-white-translucent text-xs-left tm-textbox tm-2-col-textbox-2 tm-textbox-padding">
 +
                                            <h2 class="tm-text-title">Aliquam sem sem</h2>
 +
                                            <p class="tm-text">Proin sagittis mauris dolor, vel efficitur lectus dictum nec. Sed ultrices placerat arcu, id malesuada metus cursus suscipit. Donex quis consectetur ligula. Proin accumsan eros id nisi porttitor, a facilisis quam cursus.</p>
 +
                                            <p class="tm-text">Donec vitae bibendum est, et ultrices urna. Curabitur ac bibendum augue, a convallis mi. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Mauris consequat metus hendrerit, tincidunt mi nec, euismod massa.</p>
 +
                                        </div>
  
+
                                    </div>
+
                                </div>
 +
                            </div>
 +
                       
 +
                        </div>
 +
                                               
 +
                    </div> <!-- .cd-full-width -->
  
<div class="menu_button">
+
                </li>
<div class="expand_collapse_icon"> </div> PROJECT
+
                <div class="copyrights">Collect from <a href="http://www.cssmoban.com/" >企业网站模板</a></div>
</div>  
+
                <!-- Page 3 -->
 +
                <li>
 +
                   
 +
                    <div class="cd-full-width">
  
<!-- project submenu -->
+
                        <div class="container-fluid js-tm-page-content" data-page-no="3">
<div class="submenu_wrapper">
+
                           
+
                            <div class="cd-bg-video-wrapper" data-video="video/sunset-cloud">
<a href="https://2017.igem.org/Team:Peking/Description">
+
                                <!-- video element will be loaded using jQuery -->
<div class="submenu_button" id="Description_page">
+
                            </div> <!-- .cd-bg-video-wrapper -->
Description
+
                           
</div>
+
                            <div class="tm-img-gallery-container">
</a>
+
  
<a href="https://2017.igem.org/Team:Peking/Design">
+
                                <div class="tm-img-gallery gallery-one">
<div class="submenu_button" id="Design_page">
+
                                <!-- Gallery One pop up connected with JS code below -->
Design
+
                                   
</div>
+
                                    <div class="tm-img-gallery-info-container">
</a>
+
                                   
 +
                                        <h2 class="tm-text-title tm-gallery-title">Gallery One</h2>
 +
                                        <p class="tm-text">Nulla efficitur, ligula et imperdiet volutpat, lacus tortor tempus massa, eget tempus quam
 +
                                        nibh vel nulla. Maecenas purus sem, lobortis id odio in, ultrices scelerisque sapien.
 +
                                        </p>                                  
 +
                                   
 +
                                    </div>
  
<a href="https://2017.igem.org/Team:Peking/Experiments">
+
                                    <div class="grid-item">
<div class="submenu_button" id="Experiments_page">
+
                                        <a href="img/tm-img-01.jpg">                                               
Experiments
+
                                            <img src="img/tm-img-01-tn.jpg" alt="Image" class="img-fluid tm-img">                                             
</div>
+
                                        </a>
</a>
+
                                    </div>
 +
                                    <div class="grid-item">
 +
                                        <a href="img/tm-img-02.jpg">                                               
 +
                                            <img src="img/tm-img-02-tn.jpg" alt="Image" class="img-fluid tm-img">                                               
 +
                                        </a>
 +
                                    </div>
 +
                                    <div class="grid-item">
 +
                                        <a href="img/tm-img-03.jpg">                                               
 +
                                            <img src="img/tm-img-03-tn.jpg" alt="Image" class="img-fluid tm-img">                                               
 +
                                        </a>
 +
                                    </div>
 +
                                    <div class="grid-item">
 +
                                        <a href="img/tm-img-04.jpg">                                              
 +
                                            <img src="img/tm-img-04-tn.jpg" alt="Image" class="img-fluid tm-img">                                               
 +
                                        </a>
 +
                                    </div>
 +
                                    <div class="grid-item">
 +
                                        <a href="img/tm-img-05.jpg">                                               
 +
                                            <img src="img/tm-img-05-tn.jpg" alt="Image" class="img-fluid tm-img">                                               
 +
                                        </a>
 +
                                    </div>
 +
                                    <div class="grid-item">
 +
                                        <a href="img/tm-img-06.jpg">                                               
 +
                                            <img src="img/tm-img-06-tn.jpg" alt="Image" class="img-fluid tm-img">                                               
 +
                                        </a>
 +
                                    </div>                               
 +
                                    <div class="grid-item">
 +
                                        <a href="img/tm-img-07.jpg">                                               
 +
                                            <img src="img/tm-img-07-tn.jpg" alt="Image" class="img-fluid tm-img">                                               
 +
                                        </a>
 +
                                    </div>
 +
                                    <div class="grid-item">
 +
                                        <a href="img/tm-img-08.jpg">                                               
 +
                                            <img src="img/tm-img-08-tn.jpg" alt="Image" class="img-fluid tm-img">                                               
 +
                                        </a>
 +
                                    </div>                                       
 +
                                </div>
 +
                               
 +
                            </div> <!-- .tm-img-gallery-container -->
  
 +
                        </div> <!-- .container-fluid -->
 +
                                                   
 +
                    </div> <!-- .cd-full-width -->
 +
                   
 +
                </li>
  
<a href="https://2017.igem.org/Team:Peking/Notebook">
+
                <!-- Page 4 -->
<div class="submenu_button" id="Notebook_page">
+
                <li>
Notebook
+
                   
</div>
+
                    <div class="cd-full-width">
</a>
+
  
<a href="https://2017.igem.org/Team:Peking/InterLab">
+
                        <div class="container-fluid js-tm-page-content" data-page-no="4">
<div class="submenu_button" id="InterLab_page">
+
InterLab
+
</div>
+
</a>
+
  
<a href="https://2017.igem.org/Team:Peking/Contribution">
+
                            <div class="cd-bg-video-wrapper" data-video="video/night-light-blur">
<div class="submenu_button" id="Contribution_page">
+
                                <!-- video element will be loaded using jQuery -->
Contribution
+
                            </div> <!-- .cd-bg-video-wrapper -->
</div>
+
                           
</a>
+
                            <div class="tm-img-gallery-container">
  
<a href="https://2017.igem.org/Team:Peking/Model">
+
                                <div class="tm-img-gallery gallery-two">
<div class="submenu_button" id="Model_page">
+
                                <!-- Gallery Two pop up connected with JS code below -->
Model
+
                                   
</div>
+
                                    <div class="tm-img-gallery-info-container">
</a>
+
                                   
 +
                                        <h2 class="tm-text-title tm-gallery-title"><span class="tm-white">Gallery Two</span></h2>
 +
                                        <p class="tm-text"><span class="tm-white">Nulla efficitur, ligula et imperdiet volutpat, lacus tortor tempus massa, eget tempus quam nibh vel nulla. Maecenas purus sem, lobortis id odio in, ultrices scelerisque sapien.</span>
 +
                                        </p>                                  
 +
                                   
 +
                                    </div>
  
<a href="https://2017.igem.org/Team:Peking/Results">
+
                                    <div class="grid-item">
<div class="submenu_button" id="Results_page">
+
                                        <a href="img/tm-img-09.jpg">                                               
Results
+
                                            <img src="img/tm-img-09-tn.jpg" alt="Image" class="img-fluid tm-img">                                             
</div>
+
                                        </a>
</a>
+
                                    </div>
 +
                                    <div class="grid-item">
 +
                                        <a href="img/tm-img-10.jpg">                                               
 +
                                            <img src="img/tm-img-10-tn.jpg" alt="Image" class="img-fluid tm-img">                                               
 +
                                        </a>
 +
                                    </div>
 +
                                    <div class="grid-item">
 +
                                        <a href="img/tm-img-11.jpg">                                               
 +
                                            <img src="img/tm-img-11-tn.jpg" alt="Image" class="img-fluid tm-img">                                               
 +
                                        </a>
 +
                                    </div>
 +
                                    <div class="grid-item">
 +
                                        <a href="img/tm-img-12.jpg">                                              
 +
                                            <img src="img/tm-img-12-tn.jpg" alt="Image" class="img-fluid tm-img">                                               
 +
                                        </a>
 +
                                    </div>
 +
                                    <div class="grid-item">
 +
                                        <a href="img/tm-img-13.jpg">                                               
 +
                                            <img src="img/tm-img-13-tn.jpg" alt="Image" class="img-fluid tm-img">                                               
 +
                                        </a>
 +
                                    </div>
 +
                                    <div class="grid-item">
 +
                                        <a href="img/tm-img-14.jpg">                                               
 +
                                            <img src="img/tm-img-14-tn.jpg" alt="Image" class="img-fluid tm-img">                                               
 +
                                        </a>
 +
                                    </div>                               
 +
                                    <div class="grid-item">
 +
                                        <a href="img/tm-img-15.jpg">                                               
 +
                                            <img src="img/tm-img-15-tn.jpg" alt="Image" class="img-fluid tm-img">                                               
 +
                                        </a>
 +
                                    </div>
 +
                                    <div class="grid-item">
 +
                                        <a href="img/tm-img-16.jpg">                                               
 +
                                            <img src="img/tm-img-16-tn.jpg" alt="Image" class="img-fluid tm-img">                                               
 +
                                        </a>
 +
                                    </div>                                       
 +
                                </div>
 +
                               
 +
                            </div> <!-- .tm-img-gallery-container -->
  
 +
                        </div> <!-- .container-fluid -->
 +
                                                   
 +
                    </div> <!-- .cd-full-width -->
 +
                   
 +
                </li>
  
<a href="https://2017.igem.org/Team:Peking/Demonstrate">
+
                <li>
<div class="submenu_button"  id="Demonstrate_page">
+
Demonstrate
+
</div>
+
</a>
+
  
<a href="https://2017.igem.org/Team:Peking/Improve">
+
                    <div class="cd-full-width">
<div class="submenu_button" id="Improve_page">
+
                        <div class="container-fluid js-tm-page-content" data-page-no="5">
Improve
+
                       
</div>
+
                            <div class="cd-bg-video-wrapper" data-video="video/padaut-bee">
</a>
+
                                <!-- video element will be loaded using jQuery -->
 +
                            </div> <!-- .cd-bg-video-wrapper -->
  
<a href="https://2017.igem.org/Team:Peking/Attributions">
+
                            <div class="row">
<div class="submenu_button" id="Attributions_page">
+
                               
Attributions
+
                                <div class="col-xs-12">
</div>
+
                                    <div class="tm-flex tm-3-col-container">
</a>
+
                                       
 +
                                            <div class="tm-3-col-textbox tm-bg-white-translucent">
 +
                                                <div class="text-xs-left tm-textbox tm-textbox-padding">
  
</div>
+
                                                    <h2 class="tm-text-title">Testimonial One</h2>                                         
 +
                                                    <p class="tm-text">Etiam vitae imperdiet magna. Vestibulum blandit vehicula metus, ac ornare eros elementum et. Pellentesque habitant morbi tristique senectus et ntus et malesuada fames ac turpis egestas.</p>
  
+
                                                    <p class="tm-text">Mauris lobortis lorem nulla, non tristique enim sollicitudin eu. Praesent tempus dapibus odio nec elementum.</p>
+
+
+
  
<div class="menu_button">
+
                                                </div>
<div class="expand_collapse_icon">  </div> PARTS
+
                                            </div>
</div>
+
+
<!-- parts submenu -->
+
<div class="submenu_wrapper">
+
+
<a href="https://2017.igem.org/Team:Peking/Parts">
+
<div class="submenu_button"  id="Parts_page">
+
Parts
+
</div>
+
</a>
+
  
<a href="https://2017.igem.org/Team:Peking/Basic_Part">
+
                                            <div class="tm-3-col-textbox tm-bg-white-translucent">
<div class="submenu_button" id="Basic_Part_page">
+
                                                <div class="text-xs-left tm-textbox tm-textbox-padding">
Basic Parts
+
</div>
+
</a>
+
  
<a href="https://2017.igem.org/Team:Peking/Composite_Part">
+
                                                    <h2 class="tm-text-title">Testimonial Two</h2>
<div class="submenu_button" id="Composite_Part_page">
+
Composite Parts
+
</div>
+
</a>
+
  
<a href="https://2017.igem.org/Team:Peking/Part_Collection">
+
                                                    <p class="tm-text">Curabitur sodales, est auctor congue vulputate, nisl tellus finibus nunc, vitae consectetur enim erat vitae quam.</p>
<div class="submenu_button"  id="Part_Collection_page">
+
Part Collection
+
</div>
+
</a>
+
</div>  
+
  
+
                                                    <p class="tm-text">Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nunc vitae tempor turpis.</p>
+
                                                </div>         
+
                                            </div>
+
  
<a href="https://2017.igem.org/Team:Peking/Safety">
+
                                            <div class="tm-3-col-textbox tm-bg-white-translucent">
<div class="menu_button direct_to_page">
+
                                                <div class="text-xs-left tm-textbox tm-textbox-padding">
SAFETY
+
</div>
+
</a>
+
  
 +
                                                    <h2 class="tm-text-title">Testimonial Three</h2>
  
 +
                                                    <p class="tm-text">Mauris lobortis lorem nulla, non tristique enim sollicitudin eu. Praesent tempus dapibus odio nec elementum.</p>
  
 +
                                                    <p class="tm-text">Sed elementum est quis tortor faucibus, et molestie nibh finibus. Mauris condimentum ex vestibulum fringilla consectetur.</p>
 +
                                                </div>         
 +
                                            </div>
 +
                                       
 +
                                    </div>
 +
                                </div>
  
 +
                            </div>
  
 +
                        </div>       
 +
                    </div>                                     
  
 +
                </li>
  
<div class="menu_button" >
+
                <li>
<div class="expand_collapse_icon">  </div> HUMAN PRACTICES
+
                    <div class="cd-full-width">
</div>  
+
  
<!-- human practices submenu -->
+
                        <div class="container-fluid js-tm-page-content" data-page-no="6">
<div class="submenu_wrapper">
+
  
<a href="https://2017.igem.org/Team:Peking/HP/Silver">
+
                        <div class="cd-bg-video-wrapper" data-video="video/sunset-loop">
<div class="submenu_button"  id="Silver_page">
+
                            <!-- video element will be loaded using jQuery -->
Silver HP
+
                        </div> <!-- .cd-bg-video-wrapper -->
</div>
+
                           
</a>
+
                            <div class="tm-contact-page">
 +
                               
 +
                                <div class="row">
  
<a href="https://2017.igem.org/Team:Peking/HP/Gold_Integrated">
+
                                    <div class="col-xs-12">
<div class="submenu_button" id="Gold_Integrated_page">
+
Integrated and Gold
+
</div>
+
</a>
+
  
 +
                                        <div class="tm-flex tm-contact-container">
 +
                               
 +
                                            <div class="tm-bg-white-translucent text-xs-left tm-textbox tm-2-col-textbox-2 tm-textbox-padding tm-textbox-padding-contact">
 +
                                                <p class="tm-text">Praesent tempus dapibus odio nec elementum. Sed elementum est quis tortor faucibus, et molestie nibh finibus. Mauris condimentum ex vestibulum fringilla consectetur.</p>                                               
 +
                                               
 +
                                                <!-- contact form -->
 +
                                                <form action="index.html" method="post" class="tm-contact-form">
  
<a href="https://2017.igem.org/Team:Peking/Engagement">
+
                                                    <div class="form-group col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 tm-form-group-left">
<div class="submenu_button" id="Engagement_page">
+
                                                        <input type="text" id="contact_name" name="contact_name" class="form-control" placeholder="Name"  required/>
Public Engagement
+
                                                    </div>
</div>
+
                                       
</a>
+
                                                    <div class="form-group col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6 tm-form-group-right">                                                       
 +
                                                        <input type="email" id="contact_email" name="contact_email" class="form-control" placeholder="Email"  required/>
 +
                                                    </div>
 +
                                                                                                           
 +
                                                    <div class="form-group">
 +
                                                        <input type="text" id="contact_subject" name="contact_subject" class="form-control" placeholder="Subject"  required/>
 +
                                                    </div>
 +
                                                   
 +
                                                    <div class="form-group">
 +
                                                        <textarea id="contact_message" name="contact_message" class="form-control" rows="5" placeholder="Your message" required></textarea>
 +
                                                    </div>  
  
</div>
+
                                                    <button type="submit" class="pull-xs-right tm-submit-btn">Send</button> 
 +
                                               
 +
                                                </form> 
 +
                                            </div>
  
 +
                                            <div class="tm-bg-white-translucent text-xs-left tm-textbox tm-2-col-textbox-2 tm-textbox-padding tm-textbox-padding-contact">
 +
                                                <h2 class="tm-contact-info">123 New Street 11000, San Francisco, CA</h2>
 +
                                                <!-- google map goes here -->
 +
                                                <div id="">map</div>
 +
                                            </div>
  
<div class="menu_button">
+
                                        </div>
<div class="expand_collapse_icon">  </div> AWARDS
+
</div>  
+
  
<!-- awards submenu -->
+
                                    </div>
<div class="submenu_wrapper">
+
  
<a href="https://2017.igem.org/Team:Peking/Applied_Design">
+
                                </div>
<div class="submenu_button"  id="Applied_Design_page">
+
Applied Design
+
</div>
+
</a>
+
  
<a href="https://2017.igem.org/Team:Peking/Entrepreneurship">
+
                            </div>  
<div class="submenu_button"  id="Entrepreneurship_page">
+
Entrepreneurship
+
</div>
+
</a>
+
  
<a href="https://2017.igem.org/Team:Peking/Hardware">
+
                        </div>
<div class="submenu_button" id="Hardware_page">
+
                       
Hardware
+
                    </div> <!-- .cd-full-width -->
</div>
+
                </li>
</a>
+
            </ul> <!-- .cd-hero-slider -->
 +
           
 +
            <footer class="tm-footer">
 +
           
 +
                <div class="tm-social-icons-container text-xs-center">
 +
                    <a href="#" class="tm-social-link"><i class="fa fa-facebook"></i></a>
 +
                    <a href="#" class="tm-social-link"><i class="fa fa-google-plus"></i></a>
 +
                    <a href="#" class="tm-social-link"><i class="fa fa-twitter"></i></a>
 +
                    <a href="#" class="tm-social-link"><i class="fa fa-behance"></i></a>
 +
                    <a href="#" class="tm-social-link"><i class="fa fa-linkedin"></i></a>
 +
                </div>
 +
               
 +
                <p class="tm-copyright-text">Copyright &copy; 2016 Your Company
 +
               
 +
                - More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a></p>
  
<a href="https://2017.igem.org/Team:Peking/Measurement">
+
            </footer>
<div class="submenu_button"  id="Measurement_page">
+
                   
Measurement
+
        </div> <!-- .cd-hero -->
</div>
+
       
</a>
+
  
<a href="https://2017.igem.org/Team:Peking/Model">
+
        <!-- Preloader, https://ihatetomatoes.net/create-custom-preloading-screen/ -->
<div class="submenu_button" id="Model_page">
+
        <div id="loader-wrapper">
Model
+
           
</div>
+
            <div id="loader"></div>
</a>
+
            <div class="loader-section section-left"></div>
 +
            <div class="loader-section section-right"></div>
  
<a href="https://2017.igem.org/Team:Peking/Plant">
+
        </div>
<div class="submenu_button" id="Plant_page">
+
       
Plant
+
        <!-- load JS files -->
</div>
+
        <script src="js/jquery-1.11.3.min.js"></script>        <!-- jQuery (https://jquery.com/download/) -->
</a>
+
        <script src="js/tether.min.js"></script> <!-- Tether for Bootstrap (http://stackoverflow.com/questions/34567939/how-to-fix-the-error-error-bootstrap-tooltips-require-tether-http-github-h) -->  
 +
        <script src="js/bootstrap.min.js"></script>            <!-- Bootstrap js (v4-alpha.getbootstrap.com/) -->
 +
        <script src="js/hero-slider-main.js"></script>          <!-- Hero slider (https://codyhouse.co/gem/hero-slider/) -->
 +
        <script src="js/masonry.pkgd.min.js"></script>          <!-- Masonry (http://masonry.desandro.com/) -->
 +
        <script src="js/jquery.magnific-popup.min.js"></script> <!-- Magnific popup (http://dimsemenov.com/plugins/magnific-popup/) -->
 +
       
 +
        <script>
  
 +
            function adjustHeightOfPage(pageNo) {
  
<a href="https://2017.igem.org/Team:Peking/Software">
+
                var offset = 80;
<div class="submenu_button" id="Software_page">
+
                var pageContentHeight = $(".cd-hero-slider li:nth-of-type(" + pageNo + ") .js-tm-page-content").height();
Software
+
</div>
+
</a>
+
  
</div>
+
                if($(window).width() >= 992) { offset = 120; }
 +
                else if($(window).width() < 480) { offset = 40; }
 +
             
 +
                // Get the page height
 +
                var totalPageHeight = 15 + $('.cd-slider-nav').height()
 +
                                        + pageContentHeight + offset
 +
                                        + $('.tm-footer').height();
  
<a href="https://igem.org/2017_Judging_Form?team=Peking">
+
                // Adjust layout based on page height and window height
<div class="menu_button direct_to_page">
+
                if(totalPageHeight > $(window).height())
JUDGING FORM
+
                {
</div>
+
                    $('.cd-hero-slider').addClass('small-screen');
</a>
+
                    $('.cd-hero-slider li:nth-of-type(' + pageNo + ')').css("min-height", totalPageHeight + "px");
 +
                }
 +
                else
 +
                {
 +
                    $('.cd-hero-slider').removeClass('small-screen');
 +
                    $('.cd-hero-slider li:nth-of-type(' + pageNo + ')').css("min-height", "100%");
 +
                }
 +
            }
  
 +
            /*
 +
                Everything is loaded including images.
 +
            */
 +
            $(window).load(function(){
  
+
                adjustHeightOfPage(1); // Adjust page height
<div class="menu_bottom_padding" >
+
</div>
+
+
</div>
+
  
 +
                /* Gallery One pop up
 +
                -----------------------------------------*/
 +
                $('.gallery-one').magnificPopup({
 +
                    delegate: 'a', // child items selector, by clicking on it popup will open
 +
                    type: 'image',
 +
                    gallery:{enabled:true}               
 +
                });
 +
 +
/* Gallery Two pop up
 +
                -----------------------------------------*/
 +
$('.gallery-two').magnificPopup({
 +
                    delegate: 'a',
 +
                    type: 'image',
 +
                    gallery:{enabled:true}               
 +
                });
  
 +
                /* Collapse menu after click
 +
                -----------------------------------------*/
 +
                $('#tmNavbar a').click(function(){
 +
                    $('#tmNavbar').collapse('hide');
  
 +
                    adjustHeightOfPage($(this).data("no")); // Adjust page height     
 +
                });
  
</div>
+
                /* Browser resized
 +
                -----------------------------------------*/
 +
                $( window ).resize(function() {
 +
                    var currentPageNo = $(".cd-hero-slider li.selected .js-tm-page-content").data("page-no");
 +
                   
 +
                    // wait 3 seconds
 +
                    setTimeout(function() {
 +
                        adjustHeightOfPage( currentPageNo );
 +
                    }, 1000);
 +
                   
 +
                });
 +
       
 +
                // Remove preloader (https://ihatetomatoes.net/create-custom-preloading-screen/)
 +
                $('body').addClass('loaded');
 +
                         
 +
            });
  
 +
         
 +
       
 +
         
  
 +
        </script>           
  
<!-- start of content -->
+
</body>
<div class="igem_2017_content_wrapper">
+
</html>
<h1>Peking</h1>
+

Revision as of 11:18, 29 June 2017

<!DOCTYPE html> Team:Peking

  • Cool Video Backgrounds

    Motion web template integrates a very active video background for each page. Download and use this for your website and tell your friends about it.

    This HTML CSS template is brought to you by templatemo. You can fully customize it to meet your website needs.

    Cras tempus, eros vel ultrices aliquam, velit tortor sodales risus, ac facilisis lectus tortor eget neque. Nam auctor dui ante. Curabitur tristique.

    Quisque sagittis quam tortor, sit amet posuere justo tempor non. Nunc eu leo sit amet elit condimentum.

  • Lorem ipsum dolor

    Nulla efficitur, ligula et imperdiet volutpat, lacus tortor tempus massa, eget tempus quam nibh vel nulla.

    Vivamus non molestie leo, non tincidunt diam. Mauris sagittis elit in velit ultricies aliquet sed in magna.

    Pellentesque semper, est nec consequat viverra, sem augue tincidunt nisi, a posuere nisi sapien sed sapien. Nulla facilisi.

    Aliquam sem sem

    Proin sagittis mauris dolor, vel efficitur lectus dictum nec. Sed ultrices placerat arcu, id malesuada metus cursus suscipit. Donex quis consectetur ligula. Proin accumsan eros id nisi porttitor, a facilisis quam cursus.

    Donec vitae bibendum est, et ultrices urna. Curabitur ac bibendum augue, a convallis mi. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Mauris consequat metus hendrerit, tincidunt mi nec, euismod massa.

  • Collect from 企业网站模板
  • Testimonial One

    Etiam vitae imperdiet magna. Vestibulum blandit vehicula metus, ac ornare eros elementum et. Pellentesque habitant morbi tristique senectus et ntus et malesuada fames ac turpis egestas.

    Mauris lobortis lorem nulla, non tristique enim sollicitudin eu. Praesent tempus dapibus odio nec elementum.

    Testimonial Two

    Curabitur sodales, est auctor congue vulputate, nisl tellus finibus nunc, vitae consectetur enim erat vitae quam.

    Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nunc vitae tempor turpis.

    Testimonial Three

    Mauris lobortis lorem nulla, non tristique enim sollicitudin eu. Praesent tempus dapibus odio nec elementum.

    Sed elementum est quis tortor faucibus, et molestie nibh finibus. Mauris condimentum ex vestibulum fringilla consectetur.

  • Praesent tempus dapibus odio nec elementum. Sed elementum est quis tortor faucibus, et molestie nibh finibus. Mauris condimentum ex vestibulum fringilla consectetur.

    123 New Street 11000, San Francisco, CA

    map