MediaWiki:SupportPage.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
new toc code |
No edit summary |
||
Line 45: | Line 45: | ||
var fromTop = $(this).scrollTop(); // Get container scroll position |
var fromTop = $(this).scrollTop(); // Get container scroll position |
||
var currentSection = toc.filter(function(item) { |
var currentSection = toc.filter(function(item) { |
||
return fromTop > item.anchor.offset().top - |
return fromTop > item.anchor.offset().top - 64; |
||
}); |
}); |
||
currentSection = currentSection[currentSection.length - 1]; |
currentSection = currentSection[currentSection.length - 1]; |