MediaWiki:Common.js: Difference between revisions

From Vintage Story Wiki
No edit summary
No edit summary
Line 388: Line 388:
$(document).ready(function() {
$(document).ready(function() {
   $("#treeviewtable").treetable();
   $("#treeviewtable").treetable();
   alert("shit");
   alert(window.location.hash);
   $('html, body').animate({
   $('html, body').animate({
         scrollTop: $("" + window.location.hash).offset().top
         scrollTop: $("#" + window.location.hash).offset().top
     }, 2000);
     }, 2000);
});
});