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 83: | Line 83: | ||
k-=n; | k-=n; | ||
- | if(rad==-360){ | + | if(rad==-360){k==180}; |
- | + | ||
- | + | ||
- | }; | + | |
circle.style.transform="rotate("+k+"deg)"; | circle.style.transform="rotate("+k+"deg)"; | ||
} | } |
Revision as of 02:05, 6 September 2015