Difference between revisions of "Team:ETH Zurich/homeSlideshow"

Line 16: Line 16:
 
     "<p>Droplets with green bacteria can be separated from the rest for further analysis.</p>",
 
     "<p>Droplets with green bacteria can be separated from the rest for further analysis.</p>",
 
     "<p>Caption6</p>"
 
     "<p>Caption6</p>"
];
 
var homeMainImages = [
 
    "https://static.igem.org/mediawiki/2015/2/26/ETH_homepage_slideshow.png",
 
    "https://static.igem.org/mediawiki/2015/6/64/ETH_homepage_slideshow2.png",
 
    "https://static.igem.org/mediawiki/2015/6/64/ETH_homepage_slideshow2.png",
 
    "https://static.igem.org/mediawiki/2015/6/64/ETH_homepage_slideshow2.png",
 
    "https://static.igem.org/mediawiki/2015/6/64/ETH_homepage_slideshow2.png",
 
    "https://static.igem.org/mediawiki/2015/6/64/ETH_homepage_slideshow2.png"
 
 
];
 
];
 
var curMainState = 0;
 
var curMainState = 0;
Line 56: Line 48:
 
     curMainState += dir;
 
     curMainState += dir;
 
     document.getElementById('homeMainCaption').innerHTML = homeMainCaptions[curMainState];
 
     document.getElementById('homeMainCaption').innerHTML = homeMainCaptions[curMainState];
    document.getElementById('homepageImage').src = homeMainImages[curMainState];
 
 
     setTimeout(function(){document.getElementById('homeMainContainer').className = "content";},700);
 
     setTimeout(function(){document.getElementById('homeMainContainer').className = "content";},700);
 
     }
 
     }

Revision as of 09:37, 18 September 2015