Team:Gifu

From 2014.igem.org

(Difference between revisions)
Line 86: Line 86:
};
};
-
$(document).ready(function () {
+
function catch(){
-
spin()
+
-
});
+
-
 
+
-
function stopmove(){
+
-
clearInterval(AAA);
+
BBB=setInterval(function(){
BBB=setInterval(function(){
rad+=2;
rad+=2;
Line 107: Line 102:
},10);
},10);
 +
};
 +
$(document).ready(function () {
 +
spin()
 +
});
 +
 +
function stopmove(){
 +
clearInterval(AAA);
 +
catch();
};
};
Line 113: Line 116:
function startmove(){
function startmove(){
clearInterval(BBB);
clearInterval(BBB);
-
AAA=setInterval(function(){
+
spin();
-
if(rad>=360){rad=0;}
+
-
else{rad+=2;};
+
-
x=r*Math.cos(Math.PI/180*rad);
+
-
y=r*Math.sin(Math.PI/180*rad);
+
-
circle.style.top=y+200+"px";
+
-
circle.style.left=x+200+"px";
+
-
 
+
-
k+=2;
+
-
if(k>=360){k=0};
+
-
circle.style.transform="rotate("+k+"deg)";
+
-
 
+
-
},10);
+
};
};
//-->  
//-->  

Revision as of 00:42, 2 September 2014

factory1



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