Team:UCLondon/Templates/Content-Slide

From 2012e.igem.org

(Difference between revisions)
Line 40: Line 40:
<script type="text/javascript">
<script type="text/javascript">
-
$('.slide a').click(function() {  
+
$('.slide a').click(function() {  
     var hiddenDiv = $(this).parent().children('.caption').children('.interact');
     var hiddenDiv = $(this).parent().children('.caption').children('.interact');
-
         alert(hiddenDiv.css('display'));  
+
         var dispVal = hiddenDiv.css('display');
-
       
+
-
 
+
if (dispVal == 'none'){
 +
 +
//animation
 +
hiddenDiv.parent().animate({
 +
height: 80
 +
}, 5000, funtion(){});
 +
 +
 +
 +
hiddenDiv.css('display', 'block');
 +
} else {
 +
 +
//animation
 +
hiddenDiv.parent().animate({
 +
height: 30
 +
}, 5000, funtion(){});
 +
 +
 +
 +
hiddenDiv.css('display', 'none')
 +
}
 +
     return false; } );
     return false; } );
-
 
</script>
</script>
</html>
</html>

Revision as of 01:01, 15 September 2012

Slide 1

Advancing Protein Expression

Slide 2

Watch the elevator pitch

Slide 3

Get the latest version of CUO

Example Frame