Gifu/rensyuu2
From 2014.igem.org
(Difference between revisions)
(10 intermediate revisions not shown) | |||
Line 41: | Line 41: | ||
<div id="point"><p id="rib"></p> | <div id="point"><p id="rib"></p> | ||
- | |||
- | |||
- | |||
<img id="ribosome" src="https://static.igem.org/mediawiki/2014/5/5f/Gifu_ribosome_renew.png"></img> | <img id="ribosome" src="https://static.igem.org/mediawiki/2014/5/5f/Gifu_ribosome_renew.png"></img> | ||
</div> | </div> | ||
Line 55: | Line 52: | ||
var y; | var y; | ||
var circle =document.getElementById("point") ; | var circle =document.getElementById("point") ; | ||
- | |||
var k=90; | var k=90; | ||
var m=1; | var m=1; | ||
Line 73: | Line 69: | ||
circle.style.transform="rotate("+k+"deg)"; | circle.style.transform="rotate("+k+"deg)"; | ||
- | + | ||
},7); | },7); | ||
}; | }; | ||
Line 83: | Line 79: | ||
x=r*Math.cos(Math.PI/180*rad); | x=r*Math.cos(Math.PI/180*rad); | ||
y=r*Math.sin(Math.PI/180*rad); | y=r*Math.sin(Math.PI/180*rad); | ||
- | + | circle.style.top=y+180+"px"; | |
- | + | circle.style.left=x+120+"px"; | |
k-=2; | k-=2; | ||
if(rad==360){k=90}; | if(rad==360){k=90}; | ||
- | + | circle.style.transform="rotate("+k+"deg)"; | |
+ | |||
- | |||
},7); | },7); | ||
}; | }; |
Latest revision as of 11:04, 9 September 2015