Gifu/rensyuu
From 2014.igem.org
(Difference between revisions)
Line 54: | Line 54: | ||
var l; | var l; | ||
var m=0; | var m=0; | ||
- | var n; | + | var n=2; |
function spinright(){ | function spinright(){ | ||
Line 82: | Line 82: | ||
circle.style.left=x+390+"px"; | circle.style.left=x+390+"px"; | ||
- | k-= | + | k-=n; |
if(rad==-360){ | if(rad==-360){ | ||
- | if(k==180){ | + | if(k==180){n=0;} |
- | else{k-= | + | else{k-=n} |
}; | }; | ||
circle.style.transform="rotate("+k+"deg)"; | circle.style.transform="rotate("+k+"deg)"; |
Revision as of 02:03, 6 September 2015