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

 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<html>
 
<html>
<style id="mainState0">
+
<style>
#homepageImageContainer {
+
.homeMainImage {
     background-image: url("https://static.igem.org/mediawiki/2015/2/26/ETH_homepage_slideshow.png");
+
     transition: opacity 0.5s ease-out;
     background-size: auto 100%;
+
    position:absolute !important;
 +
    height:100%;
 +
/*    top:0%;
 +
     left:0%;*/
 +
    opacity:0;
 
}
 
}
 +
#homeImage0 {
 +
    opacity:1;
 +
}
 +
 
</style>
 
</style>
 +
<style id="mainState0">
 +
#homeImage0 {opacity:1;}
 +
</style>
 +
 
<style id="mainState1">
 
<style id="mainState1">
#homepageImageContainer {
+
#homeImage1 {opacity:1;}
    background-image: url("https://static.igem.org/mediawiki/2015/6/64/ETH_homepage_slideshow2.png");
+
 
    animation: fade 1s;
+
 
}
+
@keyframes fade {
+
    0%{opacity:1;}
+
    25%{opacity:0;}
+
    50%{opacity:0;background-image: url("https://static.igem.org/mediawiki/2015/6/64/ETH_homepage_slideshow2.png");}
+
    75%{opacity:0;}
+
    100%{opacity:1;}
+
}
+
 
</style>
 
</style>
 +
 
<style id="mainState2">
 
<style id="mainState2">
#homepageImageContainer {
+
#homeImage2 {opacity:1;}
    background-image: url("https://static.igem.org/mediawiki/2015/6/64/ETH_homepage_slideshow2.png");
+
 
}
+
 
 
</style>
 
</style>
 
<style id="mainState3">
 
<style id="mainState3">
#homepageImageContainer {
+
#homeImage3 {opacity:1;}
    background-image: url("https://static.igem.org/mediawiki/2015/2/26/ETH_homepage_slideshow.png");
+
 
}
+
 
 
</style>
 
</style>
 
<style id="mainState4">
 
<style id="mainState4">
#homepageImageContainer {
+
#homeImage4 {opacity:1;}
    background-image: url("https://static.igem.org/mediawiki/2015/2/26/ETH_homepage_slideshow.png");
+
 
}
+
 
</style>
 
</style>
 
<style id="mainState5">
 
<style id="mainState5">
#homepageImageContainer {
+
#homeImage5 {opacity:1;}
    background-image: url("https://static.igem.org/mediawiki/2015/2/26/ETH_homepage_slideshow.png");
+
 
}
+
 
 +
</style>
 +
<style id="mainState6">
 +
#homeImage6 {opacity:1;}
 
</style>
 
</style>
  
Line 50: Line 57:
 
];
 
];
 
var homeMainCaptions = [
 
var homeMainCaptions = [
     "<p>Blood is extracted from patients with a risk for metastasis. Red blood cells are separated from the blood and the remaining fluid is sent through a microfluidic chip.</p>",
+
     "<h3>Flip through our slideshow or browse our page to learn about the exciting new way to detect cancer!</h3>",
     "<p>In the chip, cells will be encapsulated in a water droplet suspended in oil.</p>",
+
    "<h3>Blood is extracted from patients with a risk for metastasis. Red blood cells are separated from the blood and the remaining fluid is incubated in sTRAIL to induce apoptosis in circulating tumor cells.</h3>",
     "<p>On contact, bacteria bind to cancer cells.</p>",
+
     "<h3>Bacteria and human cells are mixed and sent through the chip.</h3>",
     "<p>When bacteria detect lactate from the cancer cells, quorum sensing is triggered and causes the bacteria to turn green.</p>",
+
     "<h3>Our bacteria express Annexin V on their membranes.</h3>",
     "<p>Droplets with green bacteria can be separated from the rest for further analysis.</p>",
+
     "<h3>Allowing them to bind to phosphatidylserine expressed on the outer membrane of the cancer cells.</h3>",
     "<p>Caption6</p>"
+
     "<h3>The bacteria sense this binding through signaling and fluoresce green.</h3>",
 +
     "<h3>A green signal indicates that a cancer cell has been found.</h3>"
 
];
 
];
 
var curMainState = 0;
 
var curMainState = 0;
Line 61: Line 69:
  
 
$(function() {
 
$(function() {
     for (var i=0;i<numMainStates;i++) {
+
     for (var i=1;i<numMainStates;i++) {
 
         homeMainStates[i].disabled = true;
 
         homeMainStates[i].disabled = true;
 
     }
 
     }

Latest revision as of 03:41, 19 September 2015