Template:Team:Valencia Biocampus/Templates/Header
From 2014.igem.org
(Difference between revisions)
Line 164: | Line 164: | ||
}) | }) | ||
var tocWrapperOffsetLeft = $('.tocWrapper').offset().left; | var tocWrapperOffsetLeft = $('.tocWrapper').offset().left; | ||
- | $('.tocWrapper').on('top.bs.affix', function () { | + | $('.tocWrapper').on('affixed-top.bs.affix', function () { |
alert(tocWrapperOffsetLeft ); | alert(tocWrapperOffsetLeft ); | ||
$('.tocWrapper').css('left', tocWrapperOffsetLeft); | $('.tocWrapper').css('left', tocWrapperOffsetLeft); |
Revision as of 02:04, 13 October 2014