Team:Gifu

From 2014.igem.org

(Difference between revisions)
Line 43: Line 43:
var circle =document.getElementById("point") ;
var circle =document.getElementById("point") ;
var k=90;
var k=90;
-
var K=k*Math.PI/180
+
var K=k*57.29*2/220
Line 58: Line 58:
k+=2;
k+=2;
if(k>=360){k=0};
if(k>=360){k=0};
-
circle.style.transform="rotate("+k+"deg)";
+
circle.style.transform="rotate("+K+"deg)";
},10);
},10);
});
});
Line 75: Line 75:
if(rad==270){k-=2;}
if(rad==270){k-=2;}
else{k+=2;};
else{k+=2;};
-
if(k>=360){k=0};
+
if(k==360){k=0};
-
circle.style.transform="rotate("+k+"deg)";
+
circle.style.transform="rotate("+K+"deg)";
},10);
},10);
Line 95: Line 95:
k+=2;
k+=2;
if(k>=360){k=0};
if(k>=360){k=0};
-
circle.style.transform="rotate("+k+"deg)";
+
circle.style.transform="rotate("+K+"deg)";
},10);
},10);

Revision as of 11:49, 1 September 2014

factory1