Difference between revisions of "Team:ETH Zurich/Team"
Line 106: | Line 106: | ||
</style> | </style> | ||
<script> | <script> | ||
+ | var bioBox; | ||
+ | var teamPhoto; | ||
$(function() { | $(function() { | ||
− | document.getElementById('bioBox').innerHTML = document.getElementById('lisabio').innerHTML; | + | bioBox = document.getElementById('bioBox'); |
− | } | + | bioBox.innerHTML = document.getElementById('lisabio').innerHTML; |
− | ); | + | teamPhoto = $('#teamphotowrapper img') |
− | + | }); | |
+ | |||
var divs = ['lisabio','mikebio','annabio','harunbio','anjabio','charlottebio']; | var divs = ['lisabio','mikebio','annabio','harunbio','anjabio','charlottebio']; | ||
+ | var 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]) | ||
+ | ]; | ||
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)'); | |
− | + | ||
deg = deg + dir*60; | deg = deg + dir*60; | ||
cur = cur + dir; | cur = cur + dir; | ||
if (cur==-1) cur=5; | if (cur==-1) cur=5; | ||
if (cur==6) cur=0; | if (cur==6) cur=0; | ||
− | + | bioBox.innerHTML = bioBoxen[cur].innerHTML; | |
} | } | ||
</script> | </script> |
Revision as of 07:09, 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