Difference between revisions of "Team:Gifu/training"

Line 68: Line 68:
 
<script type="text/javascript">
 
<script type="text/javascript">
 
<!--
 
<!--
var r=200;
+
var r=100;
var rad=270;
+
var rad=180;
 
var x;
 
var x;
 
var y;
 
var y;
var k=180;
+
var circle =document.getElementById("point") ;
 +
var k=90;
 +
var l;
 
var m=1;
 
var m=1;
 
var n=2;
 
var n=2;
Line 78: Line 80:
 
function spinright(){
 
function spinright(){
 
AAA=setInterval(function(){
 
AAA=setInterval(function(){
if(rad==540){rad=0; m=0; k=90;
+
if(m==1){
}
+
r=200;
 +
if(rad==540){rad=0; m=0;}
 
else{rad+=2};
 
else{rad+=2};
 
x=r*Math.cos(Math.PI/180*rad);
 
x=r*Math.cos(Math.PI/180*rad);
 
y=r*Math.sin(Math.PI/180*rad);
 
y=r*Math.sin(Math.PI/180*rad);
document.getElementById("point1").style.top=y+380+"px";
+
circle.style.top=y+180+"px";
document.getElementById("point1").style.left=x+500+"px";
+
circle.style.left=x+390+"px";
  
  
k+=2;
+
k+=1;
  
document.getElementById("point1").style.transform="rotate("+k+"deg)";
+
circle.style.transform="rotate("+k+"deg)";
 
}
 
}
 
},7);
 
},7);
Line 96: Line 99:
 
function spinleft(){
 
function spinleft(){
 
BBB=setInterval(function(){
 
BBB=setInterval(function(){
if(rad==-360){rad=180; m=1; k=270;}
+
if(m==0){
 
+
r=100;
 +
if(rad==-360){rad=180; m=1;}
 
else{rad-=2};
 
else{rad-=2};
 
x=r*Math.cos(Math.PI/180*rad);
 
x=r*Math.cos(Math.PI/180*rad);
 
y=r*Math.sin(Math.PI/180*rad);
 
y=r*Math.sin(Math.PI/180*rad);
document.getElementById("point2").style.top=y+380+"px";
+
circle.style.top=y+180+"px";
document.getElementById("point2").style.left=x+230+"px";
+
circle.style.left=x+120+"px";
  
  
 
k-=2;
 
k-=2;
 
+
if(rad==360){k=90};
document.getElementById("point2").style.transform="rotate("+k+"deg)";
+
circle.style.transform="rotate("+k+"deg)";
  
 
}
 
}

Revision as of 07:42, 16 September 2015

https://static.igem.org/mediawiki/2015/d/d8/Logo_HOME.png https://static.igem.org/mediawiki/2015/a/a4/Logo_PROJECT.png https://static.igem.org/mediawiki/2015/archive/b/b9/20150720104417%21Logo_TEAM.png https://static.igem.org/mediawiki/2015/8/86/Logo_NOTE.png https://static.igem.org/mediawiki/2015/8/87/Logo_RESULT.png https://static.igem.org/mediawiki/2015/2/28/Logo_MORE.png

Circular mRNA approaches infinity by obtaining a link.