Difference between revisions of "Team:ETH Zurich"

Line 230: Line 230:
 
     document.getElementById('mainState3'),
 
     document.getElementById('mainState3'),
 
     document.getElementById('mainState4')
 
     document.getElementById('mainState4')
 +
];
 +
var homeMainCaptions = [
 +
    "<p>Caption1</p>",
 +
    "<p>Caption2</p>",
 +
    "<p>Caption3</p>",
 +
    "<p>Caption4</p>",
 +
    "<p>Caption5</p>"
 
];
 
];
 
var curMainState = 0;
 
var curMainState = 0;
Line 237: Line 244:
 
         homeMainStates[i].disabled = true;
 
         homeMainStates[i].disabled = true;
 
     }
 
     }
 +
    document.getElementById('homeMainCaption').innerHTML = homeMainCaptions[0];
 
});
 
});
  
Line 259: Line 267:
 
     }
 
     }
 
     curMainState += dir;
 
     curMainState += dir;
 +
    document.getElementById('homeMainCaption').innerHTML = homeMainCaptions[curMainState];
 
     setTimeout(function(){document.getElementById('homeMainContainer').className = "content";},700);
 
     setTimeout(function(){document.getElementById('homeMainContainer').className = "content";},700);
 
     }
 
     }

Revision as of 18:38, 10 September 2015

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

The microbial beacon        for cancer detection