Difference between revisions of "Team:Gifu/training"
Line 61: | Line 61: | ||
<div id="point1"><p id="rib"></p> | <div id="point1"><p id="rib"></p> | ||
+ | <img id="ribosome" src="https://static.igem.org/mediawiki/2014/5/5f/Gifu_ribosome_renew.png"></img> | ||
+ | <div id="point2"><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 68: | Line 71: | ||
<!-- | <!-- | ||
var r=280; | var r=280; | ||
− | var l= | + | var l=140; |
var rad=0; | var rad=0; | ||
var radl=360; | var radl=360; | ||
Line 102: | Line 105: | ||
function spinleft(){ | function spinleft(){ | ||
− | + | if(radl<0){radl=360; kl=270;} | |
− | if(radl<0){radl=360; | + | |
else{rad+=2; k+=2}; | else{rad+=2; k+=2}; | ||
− | + | xl=r*Math.cos(Math.PI/180*rad); | |
− | + | yl=r*Math.sin(Math.PI/180*rad); | |
− | document.getElementById(" | + | document.getElementById("point2").style.top=y+330+"px"; |
− | document.getElementById(" | + | document.getElementById("point2").style.left=x+380+"px"; |
− | document.getElementById(" | + | document.getElementById("point2").style.transform="rotate("+kl+"deg)"; |
},7); | },7); | ||
}; | }; | ||
+ | |||
Line 120: | Line 123: | ||
spinright() | spinright() | ||
}); | }); | ||
+ | $(document).ready(function () { | ||
+ | spinleft() | ||
+ | }); | ||
+ | |||
Revision as of 16:43, 18 September 2015