Template:Team:Valencia Biocampus/Templates/Header
From 2014.igem.org
(Difference between revisions)
Line 165: | Line 165: | ||
*/ | */ | ||
} | } | ||
+ | if ($('.tocWrapperiGEM').length ) { | ||
+ | var tocWrapperOffsetLeft = $('.tocWrapper').offset().left; | ||
+ | $('.tocWrapperiGEM').affix({ | ||
+ | offset: { | ||
+ | top: $('.tab-pane.active').offset().top | ||
+ | , bottom: function () { | ||
+ | return (this.bottom = $('.footer').outerHeight(true)) | ||
+ | } | ||
+ | } | ||
+ | }) | ||
+ | /* | ||
+ | $('.tocWrapperiGEM').on('affixed.bs.affix', function () { | ||
+ | //alert(tocWrapperOffsetLeft ); | ||
+ | $('.affix').css('left', tocWrapperOffsetLeft); | ||
+ | }) | ||
+ | $('.tocWrapperiGEM').on('affixed-top.bs.affix', function () { | ||
+ | $('.affix-top').css('left', 'auto'); | ||
+ | }) | ||
+ | */ | ||
+ | } | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 23:50, 17 October 2014