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;
+
 
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*Math.PI/180+"deg)";
},10);
},10);
});
});
Line 76: Line 76:
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*Math.PI/180+"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*Math.PI/180+"deg)";
},10);
},10);

Revision as of 12:22, 1 September 2014

factory1