Team:Heidelberg/Templates/StartPage
From 2013.igem.org
(Difference between revisions)
m |
|||
Line 73: | Line 73: | ||
return Array(angle,y); | return Array(angle,y); | ||
} | } | ||
- | function rotateMenu(id, angle) | + | function rotateMenu(id, angle, factor) |
{ | { | ||
+ | if (factor !== undefined) | ||
+ | angle[0] *= factor; | ||
var root = document.getElementById(id); | var root = document.getElementById(id); | ||
root.style = "transform:rotate(" + angle[0] + "rad);position:relative;top:" + (angle[1] - 20) + "px;"; | root.style = "transform:rotate(" + angle[0] + "rad);position:relative;top:" + (angle[1] - 20) + "px;"; | ||
Line 88: | Line 90: | ||
rotateMenu("menu-project", getMenuAngle(1.5)); | rotateMenu("menu-project", getMenuAngle(1.5)); | ||
rotateMenu("menu-notebook", getMenuAngle(0.5)); | rotateMenu("menu-notebook", getMenuAngle(0.5)); | ||
- | rotateMenu("menu- | + | rotateMenu("menu-parts", getMenuAngle(0)); |
- | rotateMenu("menu-human", | + | rotateMenu("menu-modelling", getMenuAngle(0.5), -1); |
- | rotateMenu("menu-safety", | + | rotateMenu("menu-human", getMenuAngle(1.5), -1); |
+ | rotateMenu("menu-safety", getMenuAngle(2.5), -1); | ||
} | } | ||
</script> | </script> |
Revision as of 14:35, 21 August 2013