Gifu/rensyuu2

From 2014.igem.org

(Difference between revisions)
Line 83: Line 83:
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";
+
circle2.style.top=y+180+"px";
-
circle.style.left=x+120+"px";
+
circle2.style.left=x+120+"px";
k-=2;
k-=2;
if(rad==360){k=90};
if(rad==360){k=90};
-
circle.style.transform="rotate("+k+"deg)";
+
circle2.style.transform="rotate("+k+"deg)";
}
}

Revision as of 10:56, 9 September 2015

factory1