Nothing Special   »   [go: up one dir, main page]

Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/*** To Top ***/

// Adds a link to got back to the top of the page from the footer
// Documentation at [[en:w:User:BrandonXLF/ToTop]]
// By [[en:w:User:BrandonXLF]]

$(function() {
	$('<li>')
		.html('<a>Back to top</a>')
		.attr('id', 'footer-places-totop')
		.on('click', function() {
			$('html').animate({scrollTop: 0});
		})
		.appendTo('#footer-places');
});