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'); | |
- | + | (hiddenDiv.css('display') == "none") ? | |
+ | function(){ alert('hidden'); } : | ||
+ | function(){ alert('not hidden'); } ; | ||
- | + | return false; } ); | |
- | + | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 00:49, 15 September 2012