Team:ETH Zurich/tpl/read-more

From 2014.igem.org

(Difference between revisions)
Line 12: Line 12:
$p  = $el.parent();
$p  = $el.parent();
$up = $p.parent();
$up = $p.parent();
-
$px = $up.children();
+
$ps = $up.children();
-
$ps = $px.find(":not('.read-more')");
+
$r = $ps.find('.read-more');
$ps.each(function() {
$ps.each(function() {
totalHeight += $(this).height();
totalHeight += $(this).height();
 +
});
 +
 +
$r.each(function() {
 +
totalHeight -= $(this).height();
});
});

Revision as of 14:21, 15 August 2014