Difference between revisions of "Team:Gifu/training"
Line 68: | Line 68: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
<!-- | <!-- | ||
− | var r= | + | var r=100; |
− | var rad= | + | var rad=180; |
var x; | var x; | ||
var y; | var y; | ||
− | var k= | + | 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; | + | 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); | ||
− | + | circle.style.top=y+180+"px"; | |
− | + | circle.style.left=x+390+"px"; | |
− | k+= | + | k+=1; |
− | + | 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 | + | 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); | ||
− | + | circle.style.top=y+180+"px"; | |
− | + | circle.style.left=x+120+"px"; | |
k-=2; | k-=2; | ||
− | + | if(rad==360){k=90}; | |
− | + | circle.style.transform="rotate("+k+"deg)"; | |
} | } |
Revision as of 07:42, 16 September 2015
Circular mRNA approaches infinity by obtaining a link.