Team:Gifu

From 2014.igem.org

(Difference between revisions)
Line 85: Line 85:
var k=90;
var k=90;
var m;
var m;
 +
var n;
function spin(){
function spin(){
Line 104: Line 105:
function catching(){
function catching(){
BBB=setInterval(function(){
BBB=setInterval(function(){
-
rad+=2;
+
rad+=5;
-
if(rad==m){rad-=2,k-=2};
+
if(rad==m){rad-=5,k-=5};
if(rad>=360){rad=0};
if(rad>=360){rad=0};
x=r*Math.cos(Math.PI/180*rad);
x=r*Math.cos(Math.PI/180*rad);
Line 112: Line 113:
circle.style.left=x+200+"px";
circle.style.left=x+200+"px";
-
if(rad==m){k-=2;}
+
if(rad==m){k-=5;}
-
else{k+=2;};
+
else{k+=5;};
if(k==360){k=0};
if(k==360){k=0};
circle.style.transform="rotate("+k+"deg)";
circle.style.transform="rotate("+k+"deg)";

Revision as of 02:07, 2 September 2014

factory1



///////////////////////////////////////// test ////////////////// end of test