MediaWiki:SupportPage.js: Difference between revisions
Content deleted Content added
tinkering |
change scroll offset again, try to align with top of TOC |
||
Line 51:
var fromTop = $(this).scrollTop(); // Get container scroll position
var currentSection = toc.filter(function(item) {
return fromTop > item.anchor.offset().top -
});
currentSection = currentSection[currentSection.length - 1];
|