|
|
Line 1: |
Line 1: |
| {{ETH_Zurich}} | | {{ETH_Zurich}} |
| {{:Team:ETH_Zurich/homeStyleCss}} | | {{:Team:ETH_Zurich/homeStyleCss}} |
| + | {{:Team:ETH_Zurich/homeSlideshow}} |
| <html> | | <html> |
− |
| |
− | <script>
| |
− | var homeMainStates = [
| |
− | document.getElementById('mainState0'),
| |
− | document.getElementById('mainState1'),
| |
− | document.getElementById('mainState2'),
| |
− | document.getElementById('mainState3'),
| |
− | document.getElementById('mainState4')
| |
− | ];
| |
− | var homeMainCaptions = [
| |
− | "<p>Caption1</p>",
| |
− | "<p>Caption2</p>",
| |
− | "<p>Caption3</p>",
| |
− | "<p>Caption4</p>",
| |
− | "<p>Caption5</p>"
| |
− | ];
| |
− | var curMainState = 0;
| |
− | var numMainStates = homeMainStates.length;
| |
− | $(function() {
| |
− | for (var i=0;i<numMainStates;i++) {
| |
− | homeMainStates[i].disabled = true;
| |
− | }
| |
− | document.getElementById('homeMainCaption').innerHTML = homeMainCaptions[0];
| |
− | });
| |
− |
| |
− | function changeState(dir) {
| |
− | if (document.getElementById('homeMainContainer').className == "content") {
| |
− | document.getElementById('homeMainContainer').className = "content running";
| |
− | if (dir==1) {
| |
− | if (curMainState == numMainStates-1) {
| |
− | curMainState = numMainStates;
| |
− | while (curMainState--) {
| |
− | homeMainStates[curMainState].disabled = true;
| |
− | }
| |
− | } else {
| |
− | homeMainStates[curMainState+1].disabled = false;
| |
− | }
| |
− | } else {
| |
− | if (curMainState) {
| |
− | homeMainStates[curMainState].disabled = true;
| |
− | } else {
| |
− | curMainState = 1;
| |
− | }
| |
− | }
| |
− | curMainState += dir;
| |
− | document.getElementById('homeMainCaption').innerHTML = homeMainCaptions[curMainState];
| |
− | setTimeout(function(){document.getElementById('homeMainContainer').className = "content";},700);
| |
− | }
| |
− | }
| |
− | </script>
| |
− |
| |
− |
| |
− | <!--<script type="text/javascript" src="https://2015.igem.org/Template:ETH_Zurich/lightbox.min.js?action=raw&ctype=text/javascript"></script>-->
| |
− |
| |
− | <style>
| |
− | #homeMainArrowNext, #homeMainArrowPrev {
| |
− | position:absolute;
| |
− | top:50%;
| |
− | font-size:500%;
| |
− | display:none;
| |
− | }
| |
− | #homeMainArrowNext {
| |
− | right:0;
| |
− | }
| |
− | #homeMainArrowPrev {
| |
− | left:0;
| |
− | }
| |
− | #homeMainContainer:hover #homeMainArrowNext, #homeMainContainer:hover #homeMainArrowPrev {
| |
− | display:block;
| |
− | }
| |
− | </style>
| |
| | | |
| <img id="homepageLogo" src="https://static.igem.org/mediawiki/2015/c/c9/MicroBeaconLogo.png"> | | <img id="homepageLogo" src="https://static.igem.org/mediawiki/2015/c/c9/MicroBeaconLogo.png"> |
The microbial beacon for cancer detection