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