Team:UNITN-Trento/JS/Parts
From 2013.igem.org
(Difference between revisions)
("." insted of "-"... -_-) |
("." insted of "-"... -_-) |
||
Line 1: | Line 1: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
oSch(function() { | oSch(function() { | ||
- | if ( $(".tn-parts-container .content"). | + | if ( $(".tn-parts-container .content").height() >= $("#tn-main-wrap-wrap").scrollTop()+10 ) { |
$(".tn-parts-container .menu").css({ 'margin-top' : $("#tn-main-wrap-wrap").scrollTop()+10 }); | $(".tn-parts-container .menu").css({ 'margin-top' : $("#tn-main-wrap-wrap").scrollTop()+10 }); | ||
} | } | ||
}); | }); | ||
}); | }); |
Revision as of 12:52, 19 September 2013
$(document).ready(function() { oSch(function() { if ( $(".tn-parts-container .content").height() >= $("#tn-main-wrap-wrap").scrollTop()+10 ) { $(".tn-parts-container .menu").css({ 'margin-top' : $("#tn-main-wrap-wrap").scrollTop()+10 }); } }); });