Gifu/rensyuu2
From 2014.igem.org
(Difference between revisions)
Line 55: | Line 55: | ||
var y; | var y; | ||
var circle =document.getElementById("point") ; | var circle =document.getElementById("point") ; | ||
+ | var circle2 =document.getElementById("point2") ; | ||
var k=90; | var k=90; | ||
var m=1; | var m=1; | ||
Line 61: | Line 62: | ||
function spinright(){ | function spinright(){ | ||
AAA=setInterval(function(){ | AAA=setInterval(function(){ | ||
- | if(rad==540){rad | + | if(rad==540){rad=0;} |
else{rad+=2}; | else{rad+=2}; | ||
x=r*Math.cos(Math.PI/180*rad); | x=r*Math.cos(Math.PI/180*rad); | ||
Line 78: | Line 79: | ||
function spinleft(){ | function spinleft(){ | ||
BBB=setInterval(function(){ | BBB=setInterval(function(){ | ||
- | if(rad==-360){rad=180 | + | if(rad==-360){rad=180;} |
else{rad-=2}; | else{rad-=2}; | ||
x=r*Math.cos(Math.PI/180*rad); | x=r*Math.cos(Math.PI/180*rad); |
Revision as of 10:49, 9 September 2015