Difference between revisions of "Team:Gifu/training"
Line 71: | Line 71: | ||
var l=100; | var l=100; | ||
var rad=180; | var rad=180; | ||
+ | var radl=180; | ||
var x; | var x; | ||
+ | var xl; | ||
var y; | var y; | ||
+ | var yl; | ||
var k=90; | var k=90; | ||
var m=1; | var m=1; | ||
Line 98: | Line 101: | ||
if(rad==-360){rad=180; m=1;} | if(rad==-360){rad=180; m=1;} | ||
else{rad-=2}; | else{rad-=2}; | ||
− | + | xl=l*Math.cos(Math.PI/180*radl); | |
− | + | yl=l*Math.sin(Math.PI/180*radl); | |
− | document.getElementById("point2").style.top= | + | document.getElementById("point2").style.top=yl+350+"px"; |
− | document.getElementById("point2").style.left= | + | document.getElementById("point2").style.left=xl+180+"px"; |
k-=2; | k-=2; | ||
− | if( | + | if(radl==360){k=90}; |
document.getElementById("point2").style.transform="rotate("+k+"deg)"; | document.getElementById("point2").style.transform="rotate("+k+"deg)"; | ||
Revision as of 07:59, 16 September 2015
Circular mRNA approaches infinity by obtaining a link.