Gifu/rensyuu
From 2014.igem.org
(Difference between revisions)
Line 78: | Line 78: | ||
BBB=setInterval(function(){ | BBB=setInterval(function(){ | ||
if(m==0){ | if(m==0){ | ||
- | if(rad==360){rad=0;} | + | if(rad==360){rad=0; m=1;} |
else{rad-=2}; | else{rad-=2}; | ||
x=r*Math.cos(Math.PI/180*rad); | x=r*Math.cos(Math.PI/180*rad); | ||
Line 112: | Line 112: | ||
$(document).ready(function () { | $(document).ready(function () { | ||
spinright() | spinright() | ||
+ | }); | ||
+ | $(document).ready(function () { | ||
+ | spinleft() | ||
}); | }); | ||
Revision as of 02:40, 6 September 2015