Team:Gifu

From 2014.igem.org

(Difference between revisions)
Line 110: Line 110:
function stopmove(){
function stopmove(){
clearInterval(AAA);
clearInterval(AAA);
-
BBB=setInterval(function(){
+
catching();
-
rad+=2;
+
-
if(rad==270){rad-=2,k-=2};
+
-
if(rad>=360){rad=0};
+
-
x=r*Math.cos(Math.PI/180*rad);
+
-
y=r*Math.sin(Math.PI/180*rad);
+
-
circle.style.top=y+200+"px";
+
-
circle.style.left=x+200+"px";
+
-
 
+
-
if(rad==270){k-=2;}
+
-
else{k+=2;};
+
-
if(k==360){k=0};
+
-
circle.style.transform="rotate("+k+"deg)";
+
-
 
+
-
},10);
+
-
 
+
};
};

Revision as of 00:47, 2 September 2014

factory1



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