Difference between revisions of "Team:ETH Zurich/Team"
Line 105: | Line 105: | ||
#mikebio{top: 130px;left: -50px;} | #mikebio{top: 130px;left: -50px;} | ||
</style> | </style> | ||
+ | |||
<script> | <script> | ||
var bioBox; | var bioBox; | ||
Line 110: | Line 111: | ||
var divs = ['lisabio','mikebio','annabio','harunbio','anjabio','charlottebio']; | var divs = ['lisabio','mikebio','annabio','harunbio','anjabio','charlottebio']; | ||
var bioBoxen; | var bioBoxen; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
var deg = 5; | var deg = 5; | ||
var cur = 0; | var cur = 0; | ||
+ | |||
var rotateIt = function(dir) { | var rotateIt = function(dir) { | ||
teamPhoto.css('transform','rotate(' + (deg+dir*60).toString() + 'deg)'); | teamPhoto.css('transform','rotate(' + (deg+dir*60).toString() + 'deg)'); | ||
Line 135: | Line 122: | ||
bioBox.innerHTML = bioBoxen[cur].innerHTML; | bioBox.innerHTML = bioBoxen[cur].innerHTML; | ||
} | } | ||
+ | |||
+ | |||
+ | $(function() { | ||
+ | bioBox = document.getElementById('bioBox'); | ||
+ | teamPhoto = $('#teamphotowrapper img'); | ||
+ | bioBoxen = [ | ||
+ | document.getElementById(divs[0]), | ||
+ | document.getElementById(divs[1]), | ||
+ | document.getElementById(divs[2]), | ||
+ | document.getElementById(divs[3]), | ||
+ | document.getElementById(divs[4]), | ||
+ | document.getElementById(divs[5]) | ||
+ | ]; | ||
+ | bioBox.innerHTML = bioBoxen[0].innerHTML; | ||
+ | }); | ||
</script> | </script> | ||
</head> | </head> | ||
Line 303: | Line 305: | ||
</div> | </div> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</div></div> | </div></div> | ||
</html> | </html> |
Revision as of 07:13, 29 August 2015
- Project
- Modeling
- Lab
- Human
Practices - Parts
- About Us
Team
Members
Anja
melodious pipetting expert
Anna
lab photojournalist and cell destroyer
Charlotte
number cruncher
Harun
chief nerd
Lisa
self-appointed benevolent leader-for-life
Mike
busy beaver