Team:UESTC-China/home1

From 2014.igem.org

(Difference between revisions)
 
(5 intermediate revisions not shown)
Line 539: Line 539:
</div>
</div>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script>  
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script>  
-
<script type="text/javascript">
+
<script>
Line 652: Line 652:
   Run: function(index) {
   Run: function(index) {
//修正index
//修正index
-
index == undefined && (index = this.Index);
+
if(index == undefined) {
-
index < 0 && (index = this._count - 1) || index >= this._count && (index = 0);
+
  index = this.Index;
 +
}
 +
if(index < 0 ) {
 +
  index = this._count-1;
 +
}else if (index >= this._count) {
 +
index = 0;
 +
}
//设置参数
//设置参数
this._target = -Math.abs(this.Change) * (this.Index = index);
this._target = -Math.abs(this.Change) * (this.Index = index);
Line 667: Line 673:
clearTimeout(this._timer);
clearTimeout(this._timer);
//未到达目标继续移动否则进行下一次滑动
//未到达目标继续移动否则进行下一次滑动
-
if (this._c && this._t < this.Duration) {
+
if (this._c < this.Duration) {
 +
if (this._t < this.Duration) {
this.MoveTo(Math.round(this.Tween(this._t++, this._b, this._c, this.Duration)));
this.MoveTo(Math.round(this.Tween(this._t++, this._b, this._c, this.Duration)));
this._timer = setTimeout(Bind(this, this.Move), this.Time);
this._timer = setTimeout(Bind(this, this.Move), this.Time);
 +
}
}else{
}else{
this.MoveTo(this._target);
this.MoveTo(this._target);
-
this.Auto && (this._timer = setTimeout(Bind(this, this.Next), this.Pause));
+
if (this.Auto) {
 +
this._timer = setTimeout(Bind(this, this.Next), this.Pause);
 +
}
}
}
   },
   },
Line 720: Line 730:
$(document).ready(function(){
$(document).ready(function(){
 +
var imageload=new Array("https://static.igem.org/mediawiki/2014/1/15/NewPlant1.jpg","https://static.igem.org/mediawiki/2014/8/83/Home1.jpg","https://static.igem.org/mediawiki/2014/9/9f/NewPlant2.jpg","https://static.igem.org/mediawiki/2014/1/14/All_students3.jpg");
var datatemp=function(){
var datatemp=function(){
this.head;
this.head;
Line 728: Line 739:
var data3=new datatemp();
var data3=new datatemp();
var data4=new datatemp();
var data4=new datatemp();
-
 
+
data1.head="Plants";
 +
data1.content="Culture";
 +
data2.head="SuperPlant ";
 +
data2.content="Plants vs HCOH";
 +
data3.head="Plants ";
 +
data3.content="Transform";
 +
data4.head="Our Team";
 +
data4.content="Keep moving";
 +
var imageintro=new Array(data1,data2,data3,data4);
 +
var imagecount=0;
 +
var init=function(){
var init=function(){
$('.arrow').hide();
$('.arrow').hide();
Line 774: Line 795:
if(imagecount==imageload.length){
if(imagecount==imageload.length){
imagecount=imagecount-imageload.length;
imagecount=imagecount-imageload.length;
-
}
+
}
 +
$('#big-photo-hover').fadeOut(function(){
 +
$('#big-photo-wrap').prepend('<img src='+imageload[imagecount]+'>');
 +
$('#big-photo img:eq(0)').css('margin-left','-1214px');
 +
$('#big-photo img:eq(0)').animate({marginLeft:'0px'},3000);
 +
$('#big-photo img:eq(1)').animate({marginLeft:'1214px'},3000,function(){
 +
$('#big-photo img:eq(1)').remove();
 +
$('#big-photo-hover .header').html(imageintro[imagecount].head);
 +
$('#big-photo-hover .content').html(imageintro[imagecount].content);
 +
$('#big-photo-hover').fadeIn();
 +
});
 +
})
 +
 +
}
}
$(window).scroll(function(){
$(window).scroll(function(){
Line 816: Line 850:
})
})
-
</script>  
+
 
 +
</script>
</body>
</body>
</html>
</html>

Latest revision as of 14:19, 10 October 2014

Plant Vs HCHO

Introduction


As the rapid economic development in China, the residential conditions of people have been greatly improved. Unfortunately, the potential harm of their indoor decoration was always neglected until people get sick. One of the most harmful gases of the indoor pollution could be the formaldehyde. Formaldehyde is a toxic gas appears in every single room which is newly decorated. It not only has bad smell, but also cause various of desease, like skin and mucous membrane irritation, immunity or memory decline, drowsiness, fatigue, cancer, allergic dermatitis. To decrease the concentration of HCHO, we got air purifier, physical adsorption, negative air ions, photocatalyst pathway and etc. We thought that the biological methods is the best. It's delicate, it's simple, and it's safe. Therefore, we decided to cultivate a plant which got the ability to metabolize the formaldehyde. Actually, all kinds of plants can degrade the formaldehyde, but we decide to make their formaldehyde degradation system works better. In the future,we sincerely chrish the hope that our work will be put to use in our everyday life.