Created
September 19, 2011 22:02
-
-
Save lexs/1227747 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
// Remove links to articles that are not yet created | |
$('a.new').replaceWith(function() { | |
return $(this).contents(); | |
}); | |
// Wrap tables so we can scroll them | |
$('table.wikitable').wrap('<div class="tablewrapper" />'); | |
// Sort tables | |
sortables_init(); | |
}); | |
function scrollTo(id) { | |
// For some reason jQuery can't find some id's | |
var elem = document.getElementById(id); | |
$('html,body').animate({scrollTop: $(elem).offset().top}, 300); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment