Difference between revisions of "Team:ETH Zurich"

Line 192: Line 192:
 
];
 
];
 
var curMainState = 0;
 
var curMainState = 0;
var numMainStates = 2;
+
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 == 1) {
+
         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

"What I cannot create I do not understand."
- Richard Feynmann

The microbial beacon        for cancer detection

switch

Cancer facts

Collaborations

Chip