MediaWiki:SupportPage.js: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
check for currentSection being undefined (e.g. scrolling at top of page) |
update scroll offset for new design |
||
Line 32: | Line 32: | ||
// Add smooth scrolling effect |
// Add smooth scrolling effect |
||
var scrollOffset = |
var scrollOffset = 60, // Offset in px |
||
scrollDuration = 500, // in ms |
scrollDuration = 500, // in ms |
||
smoothScroll = function(event) { |
smoothScroll = function(event) { |