User:Argenti Aertheri/jQuery tweaks.js

// To Bottom $(function {	function scrolldown(e) {		e.preventDefault;		$('html').animate({scrollTop: $(document).height});	}	function scrollup(e) {		e.preventDefault;	//	var scrollBottom = $(document).height - $(window).height - $(window).scrollTop;		$('html').animate({scrollTop: $(document).height - $(window).height - $(window).scrollTop});	}	$("body").append(" ▼ ");	$("#arrow-down").css({ "font-size": "32px", "bottom":"0", "left": "8px", "position":"fixed","display":"block" }).click(scrolldown);	$("body").append(" ▲ ");	$("#arrow-up").css({ "font-size": "32px", "bottom":"40px", "left": "8px", "position":"fixed","display":"block" }).click(scrollup); });