MediaWiki:SupportPage.js: Difference between revisions

Content deleted Content added
new toc code
No edit summary
Line 45:
var fromTop = $(this).scrollTop(); // Get container scroll position
var currentSection = toc.filter(function(item) {
return fromTop > item.anchor.offset().top - 4864;
});
currentSection = currentSection[currentSection.length - 1];