Difference between revisions of "Team:ETH Zurich"
Line 201: | Line 201: | ||
function changeState(dir) { | function changeState(dir) { | ||
if (dir==1) { | if (dir==1) { | ||
− | homeMainStates[curMainState+1].disabled = false; | + | if (curMainState == 2) { |
+ | while (curMainState>0) { | ||
+ | homeMainStates[curMainState].disabled = true; | ||
+ | curMainState--; | ||
+ | } | ||
+ | } else { | ||
+ | homeMainStates[curMainState+1].disabled = false; | ||
+ | } | ||
} else { | } else { | ||
homeMainStates[curMainState].disabled = true; | homeMainStates[curMainState].disabled = true; | ||
} | } | ||
curMainState += dir; | curMainState += dir; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
</script> | </script> |
Revision as of 17:20, 10 September 2015
- Project
- Modeling
- Lab
- Human
Practices - Parts
- About Us