Team:UCLondon/Templates/Content-Slide
From 2012e.igem.org
(Difference between revisions)
Line 39: | Line 39: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | + | $('.slide a').click(function() { | |
var hiddenDiv = $(this).parent().children('.caption').children('.interact'); | var hiddenDiv = $(this).parent().children('.caption').children('.interact'); | ||
var dispVal = hiddenDiv.css('display'); | var dispVal = hiddenDiv.css('display'); | ||
if (dispVal == 'none'){ | if (dispVal == 'none'){ | ||
- | + | ||
- | + | hiddenDiv.css('display', 'block'); | |
} else { | } else { | ||
- | + | hiddenDiv.css('display', 'none'); | |
} | } |
Revision as of 01:07, 15 September 2012