Team:ETH Zurich/Templates/interactive
From 2013.igem.org
(Difference between revisions)
(3 intermediate revisions not shown) | |||
Line 18: | Line 18: | ||
width: 250px; | width: 250px; | ||
background-color: green; | background-color: green; | ||
+ | color: white; | ||
+ | border: 1px solid black; | ||
+ | } | ||
+ | .cell_img{ | ||
+ | height: 400px; | ||
+ | width: 400px; | ||
+ | background-color: red; | ||
color: white; | color: white; | ||
border: 1px solid black; | border: 1px solid black; | ||
Line 33: | Line 40: | ||
<div id="test_bild"><img src="https://static.igem.org/mediawiki/2013/e/e7/Plate.png"></div> | <div id="test_bild"><img src="https://static.igem.org/mediawiki/2013/e/e7/Plate.png"></div> | ||
<div id="cell_holder"> | <div id="cell_holder"> | ||
+ | |||
+ | <p class="cell_selecto"> | ||
+ | SENDER CELL | ||
+ | </p> | ||
<p class="cell_selector"> | <p class="cell_selector"> | ||
SENDER CELL | SENDER CELL | ||
</p> | </p> | ||
+ | |||
+ | |||
<div id="receiver_cell" class="cell_img"><img src="https://static.igem.org/mediawiki/2013/a/a7/Receiver_cell.png"></div> | <div id="receiver_cell" class="cell_img"><img src="https://static.igem.org/mediawiki/2013/a/a7/Receiver_cell.png"></div> | ||
- | <p class="cell_selector"> | + | |
+ | <p id="works" class="cell_selector"> | ||
RECEIVER CELL | RECEIVER CELL | ||
</p> | </p> | ||
+ | |||
<div id="sender_cell" class="cell_img"><img src="https://static.igem.org/mediawiki/2013/a/a7/Receiver_cell.png"></div> | <div id="sender_cell" class="cell_img"><img src="https://static.igem.org/mediawiki/2013/a/a7/Receiver_cell.png"></div> | ||
+ | |||
</div> | </div> | ||
<div id="test_bild2"><img src="https://static.igem.org/mediawiki/2013/2/21/LacZ.png"></div> | <div id="test_bild2"><img src="https://static.igem.org/mediawiki/2013/2/21/LacZ.png"></div> | ||
- | <div id=" | + | <div id="test_bild3"><img src="https://static.igem.org/mediawiki/2013/7/76/PhoA.png"></div> |
</div> | </div> | ||
<script> | <script> | ||
Line 50: | Line 66: | ||
var selector = $('.cell_selector'); | var selector = $('.cell_selector'); | ||
var imgs = $('.cell_img'); | var imgs = $('.cell_img'); | ||
+ | imgs.hide(); | ||
$('#test_bild2').nextAll().delay(5000).fadeIn() | $('#test_bild2').nextAll().delay(5000).fadeIn() | ||
selector.click(function() { | selector.click(function() { | ||
+ | $('#test_bild2').delay(50).fadeOut() | ||
var cur = $('this'); | var cur = $('this'); | ||
- | cur.siblings(' | + | $('cur').delay(50).fadeOut() |
- | + | ("works").siblings('.cell_img').slideUp(); | |
+ | document.getElementById("works").next('.cell_img').show(); | ||
}); | }); | ||
}); | }); |
Latest revision as of 10:04, 23 August 2013
SENDER CELL
SENDER CELL
RECEIVER CELL