MediaWiki:SupportPage.js: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
move collapsible code for continents/countries here
No edit summary
Line 44: Line 44:
for (var i = 0; i < toc.length; i++) {
for (var i = 0; i < toc.length; i++) {
toc[i].link.on( 'click', toc[i], smoothScroll );
toc[i].link.on( 'click', toc[i], smoothScroll );
}

// Fix if coming in with a fragment link
if ( window.location.hash ) {
window.scroll( 0, window.scrollY - scrollOffset );
}
}