Team:ETH Zurich/tpl/read-more

From 2014.igem.org

(Difference between revisions)
Line 13: Line 13:
$up = $p.parent();
$up = $p.parent();
$ps = $up.children();
$ps = $up.children();
-
$r = $ps.find('.read-more');
 
$ps.each(function() {
$ps.each(function() {
totalHeight += $(this).outerHeight();
totalHeight += $(this).outerHeight();
-
});
 
-
 
-
$r.each(function() {
 
-
totalHeight -= $(this).outerHeight();
 
});
});
-
totalHeight -= 6em
+
totalHeight -= $p.height();
$up
$up

Revision as of 14:37, 15 August 2014