Team:ETH Zurich/js/slide hidden content.js
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
- | $(". | + | $(".hide_toggle").slideUp(0); |
- | $(". | + | $(".show_trigger").toggle(function() { |
$(this).text('Show less'); | $(this).text('Show less'); | ||
}, function() { | }, function() { |
Revision as of 22:46, 13 June 2014
$(".hide_toggle").slideUp(0); $(".show_trigger").toggle(function() {
$(this).text('Show less'); }, function() { $(this).text('Show more'); }).click(function(){ $(this).prev(".toggle").animate({ height: "toggle", opacity: "toggle" }, "slow"); });