Difference between revisions of "Team:Gifu/training"
Line 72: | Line 72: | ||
var x; | var x; | ||
var y; | var y; | ||
− | |||
var k=90; | var k=90; | ||
var l; | var l; | ||
Line 86: | Line 85: | ||
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+180+"px"; | |
− | + | document.getElementById("point1").style.left=x+390+"px"; | |
k+=1; | k+=1; | ||
− | + | document.getElementById("point1").style.transform="rotate("+k+"deg)"; | |
} | } | ||
},7); | },7); | ||
Line 105: | Line 104: | ||
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+180+"px"; | |
− | + | document.getElementById("point2").style.left=x+120+"px"; | |
k-=2; | k-=2; | ||
if(rad==360){k=90}; | if(rad==360){k=90}; | ||
− | + | document.getElementById("point2").style.transform="rotate("+k+"deg)"; | |
} | } |
Revision as of 07:47, 16 September 2015
Circular mRNA approaches infinity by obtaining a link.