Difference between revisions of "Team:Gifu/training"
Line 69: | Line 69: | ||
<!-- | <!-- | ||
var r=200; | var r=200; | ||
− | + | ||
var rad=270; | var rad=270; | ||
− | + | ||
var x; | var x; | ||
− | + | ||
var y; | var y; | ||
− | + | ||
var k=180; | var k=180; | ||
− | + | ||
var m=1; | var m=1; | ||
var n=2; | var n=2; | ||
Line 101: | Line 101: | ||
function spinleft(){ | function spinleft(){ | ||
BBB=setInterval(function(){ | BBB=setInterval(function(){ | ||
− | if( | + | if(rad==-360){rad=180; k=270; |
− | else{ | + | else{rad-=2}; |
− | + | x=r*Math.cos(Math.PI/180*rad); | |
− | + | y=r*Math.sin(Math.PI/180*rad); | |
− | document.getElementById("point2").style.top= | + | document.getElementById("point2").style.top=y+380+"px"; |
− | document.getElementById("point2").style.left= | + | document.getElementById("point2").style.left=x+230+"px"; |
− | + | k-=2; | |
− | document.getElementById("point2").style.transform="rotate("+ | + | document.getElementById("point2").style.transform="rotate("+k+"deg)"; |
} | } |
Revision as of 07:37, 16 September 2015
Circular mRNA approaches infinity by obtaining a link.