MediaWiki:SupportPage.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 44:
for (var i = 0; i < toc.length; i++) {
toc[i].link.on( 'click', toc[i], smoothScroll );
}
 
// Fix if coming in with a fragment link
if ( window.location.hash ) {
var offsetTop = $(window.location.hash).offset().top;
window.scroll( 0, offsetTop - scrollOffset );
}