Team:Gifu

From 2014.igem.org

(Difference between revisions)
Line 106: Line 106:
BBB=setInterval(function(){
BBB=setInterval(function(){
rad+=5;
rad+=5;
-
if(rad==m){rad-=5,k-=5};
+
if(rad==m){rad-=2,k-=2};
if(rad>=360){rad=0};
if(rad>=360){rad=0};
x=r*Math.cos(Math.PI/180*rad);
x=r*Math.cos(Math.PI/180*rad);
Line 113: Line 113:
circle.style.left=x+200+"px";
circle.style.left=x+200+"px";
-
if(rad==m){k-=5;}
+
if(rad==m){k-=2;}
-
else{k+=5;};
+
else{k+=2;};
if(k==360){k=0};
if(k==360){k=0};
circle.style.transform="rotate("+k+"deg)";
circle.style.transform="rotate("+k+"deg)";

Revision as of 02:08, 2 September 2014

factory1



///////////////////////////////////////// test ////////////////// end of test