Gifu/rensyuu
From 2014.igem.org
(Difference between revisions)
Line 114: | Line 114: | ||
},7); | },7); | ||
}; | }; | ||
+ | |||
+ | function spinleftc(){ | ||
+ | BBB=setInterval(function(){ | ||
+ | |||
+ | 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+180+"px"; | ||
+ | circle.style.left=x+390+"px"; | ||
+ | |||
+ | k-=2; | ||
+ | if(rad==360){k=90}; | ||
+ | circle.style.transform="rotate("+k+"deg)"; | ||
+ | },7); | ||
+ | }; | ||
+ | |||
$(document).ready(function () { | $(document).ready(function () { |
Revision as of 07:49, 5 September 2015