Team:ETH Zurich/tpl/read-more
From 2014.igem.org
(Difference between revisions)
(12 intermediate revisions not shown) | |||
Line 5: | Line 5: | ||
var $p, $el, $ps, $up, $r, totalHeight; | var $p, $el, $ps, $up, $r, totalHeight; | ||
- | $(".carousel . | + | $(".carousel .read-more").click(function() { |
totalHeight = 0 | totalHeight = 0 | ||
Line 18: | Line 18: | ||
}); | }); | ||
- | totalHeight -= $p.height() | + | totalHeight -= $p.height(); |
$up | $up | ||
Line 27: | Line 27: | ||
}) | }) | ||
.animate({ | .animate({ | ||
- | "height": totalHeight | + | "height": totalHeight + 280 |
}); | }); | ||
Line 38: | Line 38: | ||
</script> | </script> | ||
- | + | </html> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + |
Latest revision as of 18:20, 11 October 2014