Difference between revisions of "Team:Gifu/training"
Line 83: | Line 83: | ||
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); | ||
− | + | document.getElementById("point1").style.top=y+380+"px"; | |
− | + | document.getElementById("point1").style.left=x+500+"px"; | |
k+=1; | k+=1; | ||
− | + | document.getElementById("point1").style.transform="rotate("+k+"deg)"; | |
} | } | ||
},7); | },7); | ||
Line 105: | Line 105: | ||
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); | ||
− | + | document.getElementById("point2").style.top=y+380+"px"; | |
− | + | document.getElementById("point2").style.left=x+230+"px"; | |
k-=2; | k-=2; | ||
− | + | document.getElementById("point2").style.transform="rotate("+k+"deg)"; | |
} | } |
Revision as of 09:48, 14 September 2015