Team:Gifu
From 2014.igem.org
(Difference between revisions)
Line 63: | Line 63: | ||
function stopmove(){ | function stopmove(){ | ||
- | clearInterval(AAA) | + | clearInterval(AAA); |
+ | BBB=setInterval(function(){ | ||
+ | |||
+ | if(rad=270){rad+=0;} | ||
+ | else{rad+=1;}; | ||
+ | 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"; | ||
+ | |||
+ | k+=1; | ||
+ | if(k>=360){k=0}; | ||
+ | circle.style.transform="rotate("+k+"deg)"; | ||
+ | |||
+ | },10); | ||
+ | |||
}; | }; | ||
Revision as of 09:53, 1 September 2014