MediaWiki:Common.js: Difference between revisions
From Vintage Story Wiki
CreativeMD (talk | contribs) No edit summary |
CreativeMD (talk | contribs) No edit summary |
||
Line 388: | Line 388: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
$("#treeviewtable").treetable(); | $("#treeviewtable").treetable(); | ||
alert( | alert(window.location.hash); | ||
$('html, body').animate({ | $('html, body').animate({ | ||
scrollTop: $("" + window.location.hash).offset().top | scrollTop: $("#" + window.location.hash).offset().top | ||
}, 2000); | }, 2000); | ||
}); | }); |