summaryrefslogtreecommitdiff
path: root/public/scripts/notification.js
blob: e4f9fb6493ba8f2510a5d704cc8c228ec9e0b9d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function closeNotification () {
	$(".notification").slideUp (200, function () {
		$(".notification").remove ();
	});
}

$(document).ready (function () {
	notif = $(".notification");
	if (notif[0] !== undefined) {
		timer = setInterval('closeNotification()', 5000);
		
		notif.find ("a.close").click (function () {
			closeNotification ();
			return false;
		});
	}
});