Gifu/rensyuu
From 2014.igem.org
(Difference between revisions)
Line 74: | Line 74: | ||
function spinleft(){ | function spinleft(){ | ||
BBB=setInterval(function(){ | BBB=setInterval(function(){ | ||
- | + | if(m==0){ | |
if(rad==360){rad=0;} | if(rad==360){rad=0;} | ||
else{rad-=2}; | else{rad-=2}; | ||
Line 85: | Line 85: | ||
if(rad==360){k=90}; | if(rad==360){k=90}; | ||
circle.style.transform="rotate("+k+"deg)"; | circle.style.transform="rotate("+k+"deg)"; | ||
+ | } | ||
+ | |||
},7); | },7); | ||
}; | }; |
Revision as of 02:32, 6 September 2015