Team:ETH Zurich/Templates/interactive

From 2013.igem.org

(Difference between revisions)
 
(13 intermediate revisions not shown)
Line 3: Line 3:
<head>
<head>
<style>
<style>
 +
#content {
 +
  margin: 50px 0 0 0;
 +
}
 +
 +
#test_bild {
 +
  float: left;
 +
}
 +
#cell_holder {
 +
  float: left;
 +
  margin: 0px 0px 0px 100px;
 +
}
 +
.cell_selector{
 +
height: 18px;
 +
width: 250px;
 +
background-color: green;
 +
color: white;
 +
border: 1px solid black;
 +
}
 +
.cell_img{
 +
height: 400px;
 +
width: 400px;
 +
background-color: red;
 +
color: white;
 +
border: 1px solid black;
 +
}
</style>
</style>
 +
 +
 +
</head>
</head>
<body>
<body>
-
<div id="test_bild"><img src="https://static.igem.org/mediawiki/2013/thumb/4/4b/Fabian_iGEM.jpg/300px-Fabian_iGEM.jpg"></div>
+
<div id="content">
 +
 
 +
<div id="test_bild"><img src="https://static.igem.org/mediawiki/2013/e/e7/Plate.png"></div>
 +
<div id="cell_holder">
 +
 
 +
<p class="cell_selecto">
 +
SENDER CELL
 +
</p>
 +
<p class="cell_selector">
 +
SENDER CELL
 +
</p>
 +
 
 +
 
 +
<div id="receiver_cell" class="cell_img"><img src="https://static.igem.org/mediawiki/2013/a/a7/Receiver_cell.png"></div>
 +
 
 +
<p id="works" class="cell_selector">
 +
RECEIVER CELL
 +
</p>
 +
 
 +
<div id="sender_cell" class="cell_img"><img src="https://static.igem.org/mediawiki/2013/a/a7/Receiver_cell.png"></div>
 +
 
 +
</div>
 +
<div id="test_bild2"><img src="https://static.igem.org/mediawiki/2013/2/21/LacZ.png"></div>
 +
<div id="test_bild3"><img src="https://static.igem.org/mediawiki/2013/7/76/PhoA.png"></div>
 +
</div>
<script>
<script>
 +
$('#test_bild2').nextAll().hide();
$(document).ready(function() {
$(document).ready(function() {
-
$('#test_bild').animate({'margin-top': '900px', 'margin-left': '400px'},1000);
+
        var selector = $('.cell_selector');
 +
        var imgs = $('.cell_img');
 +
        imgs.hide();
 +
$('#test_bild2').nextAll().delay(5000).fadeIn()
 +
        selector.click(function() {
 +
          $('#test_bild2').delay(50).fadeOut()
 +
          var cur = $('this');
 +
          $('cur').delay(50).fadeOut()
 +
          ("works").siblings('.cell_img').slideUp();
 +
          document.getElementById("works").next('.cell_img').show();
 +
});
});
});
</script>
</script>

Latest revision as of 10:04, 23 August 2013

Header2.png
80px-Eth igem logo.png

SENDER CELL

SENDER CELL

RECEIVER CELL