Difference between revisions of "Team:Jilin China/test wiki"

Line 1: Line 1:
{{Jilin_China}}
+
<!doctype html>
<html>
+
<html lang="zh">
 
+
 
<head>
 
<head>
<script type="text/javascript" src="https://2016.igem.org/Team:Jilin_China/js/pic_move?action=raw&ctype=text/javascript" type="text/javascript" charset="utf-8"">
+
<meta charset="UTF-8">
</script>
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<style>
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
#dad{border:1px solid #000; width:800px; height:300px;overflow:hidden;
+
<title>jquery.scrollex</title>
//position: fixed;
+
<link rel="stylesheet" type="text/css" href="https://2016.igem.org/Team:Jilin_China/css/normalize?action=raw&ctype=text/css" />
  left: 50%;
+
<link rel="stylesheet" href="https://2016.igem.org/Team:Jilin_China/css/common?action=raw&ctype=text/css" />
  background-color: #FFFFFF;
+
<link rel="stylesheet" type="text/css" href="https://2016.igem.org/Team:Jilin_China/css/demo?action=raw&ctype=text/css">
//  -webkit-transform: translateX(-50%) ;}
+
      //<script src="https://2015.igem.org/Team:Heidelberg/js/team_js?action=raw&ctype=text/javascript" type="text/javascript"     charset="utf-8"></script>
#divFlyzl{ border:px solid #000; margin-left:50%}  
+
    //<link rel="stylesheet" type="text/css" href="https://2015.igem.org/Team:Heidelberg/slick/slick_css?action=raw&ctype=text/css"/>
#divFlymz{ border:px solid #000; margin-left:50%}  
+
#divFlyjun{ border:px solid #000; margin-left:50%}  
+
<style>
#Imgzl{max-height:300px;_width:expression(this.height >300 ? "300px" : this.height); }
+
html, body {
#Imgmz{max-height:300px;_width:expression(this.height >300 ? "300px" : this.height); }  
+
height: 100%;
#Imgjun{max-height:300px;_width:expression(this.height >300 ? "300px" : this.height); }  
+
}
 +
 
 +
#main {
 +
height: 100%;
 +
padding: 0;
 +
}
 +
 
 +
.item {
 +
position: relative;
 +
height: 100%;
 +
text-align: center;
 +
-moz-transition: opacity 1s ease;
 +
-webkit-transition: opacity 1s ease;
 +
-o-transition: opacity 1s ease;
 +
-ms-transition: opacity 1s ease;
 +
transition: opacity 1s ease;
 +
}
 +
 
 +
.item:before {
 +
content: '';
 +
display: inline-block;
 +
height: 100%;
 +
vertical-align: middle;
 +
}
 +
 
 +
.item .container {
 +
display: inline-block;
 +
vertical-align: middle;
 +
-moz-perspective: 900px;
 +
-webkit-perspective: 900px;
 +
-o-perspective: 900px;
 +
-ms-perspective: 900px;
 +
perspective: 900px;
 +
}
 +
 
 +
.item .container > :last-child {
 +
margin-bottom: 0;
 +
}
 +
 
 +
.item .container .title {
 +
display: inline-block;
 +
background: #fff;
 +
padding: 0.5em 1em;
 +
border-radius: 0.25em;
 +
font-size: 2.5em;
 +
margin: 0 0 1.5em 0;
 +
-moz-transform-origin: 50% 50%;
 +
-webkit-transform-origin: 50% 50%;
 +
-o-transform-origin: 50% 50%;
 +
-ms-transform-origin: 50% 50%;
 +
transform-origin: 50% 50%;
 +
}
 +
 
 +
.item .container p {
 +
font-size: 1.5em;
 +
line-height: 1.5em;
 +
margin: 0;
 +
}
 +
 
 +
.item .next {
 +
position: absolute;
 +
bottom: 2.5em;
 +
left: 50%;
 +
width: 5em;
 +
height: 5em;
 +
margin-left: -2.5em;
 +
line-height: 5em;
 +
border-radius: 100%;
 +
color: #fff;
 +
text-decoration: none;
 +
border: solid 1px #fff;
 +
}
 +
 
 +
.item.inactive {
 +
opacity: 0.25;
 +
}
 +
 
 +
#header {
 +
}
 +
 
 +
#header .title {
 +
color: #2A2D3C;
 +
}
 +
 
 +
#one {
 +
background-color: #03A081;
 +
}
 +
 
 +
#one .title {
 +
color: #03A081;
 +
}
 +
 
 +
#two {
 +
background-color: #3B8DAF;
 +
}
 +
 
 +
#two .title {
 +
color: #3B8DAF;
 +
}
 +
 
 +
#three {
 +
background-color: #7B70B2;
 +
}
 +
 
 +
#three .title {
 +
color: #7B70B2;
 +
}
 +
 
 +
#four {
 +
background-color: #D6628E;
 +
}
 +
 
 +
#four .title {
 +
color: #D6628E;
 +
}
  
 
</style>
 
</style>
 +
<!--[if IE]>
 +
<script src="http://libs.useso.com/js/html5shiv/3.7/html5shiv.min.js"></script>
 +
<![endif]-->
 
</head>
 
</head>
 
 
<body>
 
<body>
 +
<div id="main">
 +
<!-- Header -->
 +
<header class="item" id="header">
 +
<div class="container">
 +
<!-- <h1 class="title">Scrollex Demo: All Events</h1>
 +
-->
 +
<h1>jquery.scrollex-可制作炫酷页面滚动效果的jQuery事件插件 </h1>
 +
<p>Highlights the visible item. Animates content as user scrolls.</p>
 +
<div class="jq22-demo center">
 +
  <a href="index.html" class="current">滚动事件</a>
 +
  <a href="index2.html">进入和离开视口</a>
 +
</div>
 +
</div>
 +
<a href="#one" class="next">Start</a>
 +
</header>
 +
 +
<!-- Items -->
 +
<section class="item" id="one">
 +
<div class="container">
 +
<h2 class="title">Item One</h2>
 +
<p>Amet vis lobortis vis blandit adipiscing varius accumsan orci lorem. Metus pellentesque amet faucibus lobortis Arcu donec vitae. Eleifend aliquam lobortis interdum id accumsan metus arcu suscipit enim id varius phasellus.</p>
 +
</div>
 +
<a href="#two" class="next">Next</a>
 +
</section>
 +
 +
<section class="item" id="two">
 +
<div class="container">
 +
<h2 class="title">Item Two</h2>
 +
<p>Amet vis lobortis vis blandit adipiscing varius accumsan orci lorem. Metus pellentesque amet faucibus lobortis Arcu donec vitae. Eleifend aliquam lobortis interdum id accumsan metus arcu suscipit enim id varius phasellus.</p>
 +
</div>
 +
<a href="#three" class="next">Next</a>
 +
</section>
  
<div id="dad">
+
<section class="item" id="three">
<div id="divFlyzl" style=" position:absolute; ">
+
<div class="container">
<img src="https://static.igem.org/mediawiki/2016/8/86/T--Jilin_China--LOGO_plasmid.png" id="Imgzl"  />
+
<h2 class="title">Item Three</h2>
</div>
+
<p>Amet vis lobortis vis blandit adipiscing varius accumsan orci lorem. Metus pellentesque amet faucibus lobortis Arcu donec vitae. Eleifend aliquam lobortis interdum id accumsan metus arcu suscipit enim id varius phasellus.</p>
<div id="divFlymz" style=" position:absolute; ">
+
</div>
<img src="https://static.igem.org/mediawiki/2016/d/d9/T--Jilin_China--LOGO_TeamName.png" id="Imgmz"  />
+
<a href="#four" class="next">Next</a>
</div>
+
</section>
<div id="divFlyjun" style=" position:absolute; ">
+
<img src="https://static.igem.org/mediawiki/2016/0/06/T--Jilin_China--LOGO_bifidobacterium.png" id="Imgjun"  />
+
</div>
+
</div>
+
  
 +
<section class="item" id="four">
 +
<div class="container">
 +
<h2 class="title">Item Four</h2>
 +
<p>Amet vis lobortis vis blandit adipiscing varius accumsan orci lorem. Metus pellentesque amet faucibus lobortis Arcu donec vitae. Eleifend aliquam lobortis interdum id accumsan metus arcu suscipit enim id varius phasellus.</p>
 +
</div>
 +
<a href="#header" class="next">Top</a>
 +
</section>
  
<div class="column full_size" style="text-align: justify;" >
+
</div>
<h2> Project Introduction </h2>
+
<p>Tumor cells compete with normal cells for all kinds of nutrition, and therefore can be considered as harmful mutants in the ecosystem in vivo. To effectively eliminate tumor cells, we propose to utilize microorganisms that share high ecological niche with tumor cells to deliver tumor-killing drugs to the tumor tissues. Through extensive literature search and correspondence with leading specialists, we decide to use Bifidobacterium Long, which has been proved to be non-immunogenic to human body and has the ability to preferentially settle in hypoxic regions, such as tissues with solid tumors. We plan to inject Bifidobacterium into tumor-bearing mice, and simulate the distribution and association of Bifido-bacterium with tumor cells using ecological competition models.  
+
<script src="http://libs.useso.com/js/jquery/2.1.1/jquery.min.js" type="text/javascript"></script>
</p>
+
<script>window.jQuery || document.write('<script src="js/jquery-2.1.1.min.js"><\/script>')</script>
<p>We decide to use apoptin as the tumor-killing drug. Apoptin is a small molecular protein that induces apoptosis only in tumor cells but not in normal cells. To deliver apoptin, we will construct a recombinant plasmid, which consists of DNA replication origins and related genes from pMB-1, a bifidobacterial plasmid, and DNA replication origins from pUC18, a plasmid commonly used in E.coil. As a result, the plasmid can be amplified both in E.coil. and Bifidobacterium. Furthermore, we will clone HU, a Bifidobacterium promoter, and apoptin gene into this recombinant plasmid. After the tumor-killing ability of this recombinant plasmid is proven, we will focus on enhancing the biosafety of our system through regulating the expression of apoptin gene and applying a conditional lethal mechanism to restrict the proliferation of Bifidobacteriun.
+
<script src="js/common.js"></script>
</p>
+
<script src="js/jquery.scrollex.js"></script>
 +
<script>
 +
/* jquery.scrolly v0.1 | (c) n33 | n33.co @n33co | MIT */
 +
(function(e){var t="click.scrolly";e.fn.scrolly=function(r,i){var s=e(this);return r||(r=1e3),i||(i=0),s.off(t).on(t,function(t){var n,s,o,u=e(this),a=u.attr("href");a.charAt(0)=="#"&&a.length>1&&(n=e(a)).length>0&&(s=n.offset().top,u.hasClass("scrolly-centered")?o=s-(e(window).height()-n.outerHeight())/2:(o=Math.max(s,0),i&&(typeof i=="function"?o-=i():o-=i)),t.preventDefault(),e("body,html").stop().animate({scrollTop:o},r,"swing"))}),s}})(jQuery);
  
</div>
+
$(function() {
  
<div class="column full_size" >
+
$('.item').scrollex({
<h2> Welcome to iGEM 2016! </h2>
+
<p>Your team has been approved and you are ready to start the iGEM season! </p>
+
  
</div>
+
// Mode: Sets Scrollex to 'middle' mode (= midpoint between top/bottom edges must fall within contact area).
 +
mode: 'middle',
  
<div class="column half_size" >
+
// Initialize event: Add the 'inactive' class to this element as soon as Scrollex is initialized.
<h5>Before you start: </h5>
+
initialize: function() {
<p> Please read the following pages:</p>
+
$(this).addClass('inactive');
<ul>
+
},
<li>  <a href="https://2016.igem.org/Requirements">Requirements page </a> </li>
+
<li> <a href="https://2016.igem.org/Wiki_How-To">Wiki Requirements page</a></li>
+
<li> <a href="https://2016.igem.org/Resources/Template_Documentation"> Template Documentation </a></li>
+
</ul>
+
</div>
+
  
<div class="column half_size" >
+
// Enter event: Remove the 'inactive' class from this element.
<div class="highlight">
+
enter: function() {
<h5> Styling your wiki </h5>
+
$(this).removeClass('inactive');
<p>You may style this page as you like or you can simply leave the style as it is. You can easily keep the styling and edit the content of these default wiki pages with your project information and completely fulfill the requirement to document your project.</p>
+
},
<p>While you may not win Best Wiki with this styling, your team is still eligible for all other awards. This default wiki meets the requirements, it improves navigability and ease of use for visitors, and you should not feel it is necessary to style beyond what has been provided.</p>
+
</div>
+
</div>
+
  
<div class="column full_size" >
+
// Leave event: Apply the 'inactive' class to this element.
<h5> Wiki template information </h5>
+
leave: function() {
<p>We have created these wiki template pages to help you get started and to help you think about how your team will be evaluated. You can find a list of all the pages tied to awards here at the <a href="https://2016.igem.org/Judging/Pages_for_Awards/Instructions">Pages for awards</a> link. You must edit these pages to be evaluated for medals and awards, but ultimately the design, layout, style and all other elements of your team wiki is up to you!</p>
+
$(this).addClass('inactive');
 +
},
  
</div>
+
// Scroll event: Perform various CSS tweaks based on the user's progress through this element.
 +
scroll: function(progress) {
  
 +
var $this = $(this),
 +
$container = $this.find('.container'),
 +
$title = $this.find('.title'),
 +
$p = $this.find('p'),
 +
$next = $this.find('.next'),
 +
x;
  
 +
// Title.
  
 +
// Rotation.
 +
x = (progress - 0.5) * 540;
  
<div class="column half_size" >
+
$title
<h5> Editing your wiki </h5>
+
.css('-moz-transform', 'rotateX(' + x + 'deg)')
<p>On this page you can document your project, introduce your team members, document your progress and share your iGEM experience with the rest of the world! </p>
+
.css('-webkit-transform', 'rotateX(' + x + 'deg)')
<p> <a href="https://2016.igem.org/wiki/index.php?title=Team:Example&action=edit"> </a>Use WikiTools - Edit in the black menu bar to edit this page</p>
+
.css('-o-transform', 'rotateX(' + x + 'deg)')
 +
.css('-ms-transform', 'rotateX(' + x + 'deg)')
 +
.css('transform', 'rotateX(' + x + 'deg)');
  
</div>
+
// Opacity.
 +
if (progress > 0.5)
 +
x = 1 - progress;
 +
else
 +
x = progress;
  
 +
x = Math.max(0, Math.min(1, x * 2));
  
<div class="column half_size" >
+
$title.css('opacity', x);
<h5>Tips</h5>
+
<p>This wiki will be your team’s first interaction with the rest of the world, so here are a few tips to help you get started: </p>
+
<ul>
+
<li>State your accomplishments! Tell people what you have achieved from the start. </li>
+
<li>Be clear about what you are doing and how you plan to do this.</li>
+
<li>You have a global audience! Consider the different backgrounds that your users come from.</li>
+
<li>Make sure information is easy to find; nothing should be more than 3 clicks away.  </li>
+
<li>Avoid using very small fonts and low contrast colors; information should be easy to read.  </li>
+
<li>Start documenting your project as early as possible; don’t leave anything to the last minute before the Wiki Freeze. For a complete list of deadlines visit the <a href="https://2016.igem.org/Calendar">iGEM 2016 calendar</a> </li>
+
<li>Have lots of fun! </li>
+
</ul>
+
</div>
+
  
 +
// Paragraph.
  
<div class="column half_size" >
+
// Opacity.
<h5>Inspiration</h5>
+
if (progress > 0.5)
<p> You can also view other team wikis for inspiration! Here are some examples:</p>
+
x = 1 - progress;
<ul>
+
else
<li> <a href="https://2014.igem.org/Team:SDU-Denmark/"> 2014 SDU Denmark </a> </li>
+
x = progress;
<li> <a href="https://2014.igem.org/Team:Aalto-Helsinki">2014 Aalto-Helsinki</a> </li>
+
<li> <a href="https://2014.igem.org/Team:LMU-Munich">2014 LMU-Munich</a> </li>
+
<li> <a href="https://2014.igem.org/Team:Michigan"> 2014 Michigan</a></li>
+
<li> <a href="https://2014.igem.org/Team:ITESM-Guadalajara">2014 ITESM-Guadalajara </a></li>
+
<li> <a href="https://2014.igem.org/Team:SCU-China"> 2014 SCU-China </a></li>
+
</ul>
+
</div>
+
  
<div class="column half_size" >
+
x = Math.max(0, Math.min(1, x * 2));
<h5> Uploading pictures and files </h5>
+
<p> You can upload your pictures and files to the iGEM 2016 server. Remember to keep all your pictures and files within your team's namespace or at least include your team's name in the file name. <br />
+
When you upload, set the "Destination Filename" to <br><code>T--YourOfficialTeamName--NameOfFile.jpg</code>. (If you don't do this, someone else might upload a different file with the same "Destination Filename", and your file would be erased!)</p>
+
  
 +
$p.css('opacity', x);
  
<div class="button_click"  onClick=" parent.location= 'https://2016.igem.org/Special:Upload '"> 
+
// Next.
UPLOAD FILES
+
</div>
+
  
</div>
+
// Opacity.
 +
x = 1 - (Math.max(0, progress - 0.5) * 1.5);
  
<div class="column full_size" >
+
$next.css('opacity', x)
<h2> Our InterLab</h2>
+
<p>processing data...<a href="https://2016.igem.org/Team:Jilin_China/Interlab"> have a look? </a>
+
</p>
+
  
 +
// Scale.
 +
x = 1 - (Math.max(0, progress - 0.5));
  
</div>
+
$next
 +
.css('-moz-transform', 'scale(' + x + ')')
 +
.css('-webkit-transform', 'scale(' + x + ')')
 +
.css('-o-transform', 'scale(' + x + ')')
 +
.css('-ms-transform', 'scale(' + x + ')')
 +
.css('transform', 'scale(' + x + ')');
  
 +
// Scrolly.
 +
$next.scrolly(3000);
  
 +
}
  
 +
});
  
 +
});
  
 +
</script>
 +
</body>
 
</html>
 
</html>

Revision as of 13:11, 13 September 2016

<!doctype html> jquery.scrollex // //

Item One

Amet vis lobortis vis blandit adipiscing varius accumsan orci lorem. Metus pellentesque amet faucibus lobortis Arcu donec vitae. Eleifend aliquam lobortis interdum id accumsan metus arcu suscipit enim id varius phasellus.

Item Two

Amet vis lobortis vis blandit adipiscing varius accumsan orci lorem. Metus pellentesque amet faucibus lobortis Arcu donec vitae. Eleifend aliquam lobortis interdum id accumsan metus arcu suscipit enim id varius phasellus.

Item Three

Amet vis lobortis vis blandit adipiscing varius accumsan orci lorem. Metus pellentesque amet faucibus lobortis Arcu donec vitae. Eleifend aliquam lobortis interdum id accumsan metus arcu suscipit enim id varius phasellus.

Item Four

Amet vis lobortis vis blandit adipiscing varius accumsan orci lorem. Metus pellentesque amet faucibus lobortis Arcu donec vitae. Eleifend aliquam lobortis interdum id accumsan metus arcu suscipit enim id varius phasellus.