From bb6c557b0ec2c154d4da7aa3b291eebe942b9046 Mon Sep 17 00:00:00 2001 From: dumpfmprod Date: Tue, 6 Apr 2010 21:49:33 -0400 Subject: Deleted static files, updated css --- static/away.js | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100755 static/away.js (limited to 'static/away.js') diff --git a/static/away.js b/static/away.js deleted file mode 100755 index cf4b19c..0000000 --- a/static/away.js +++ /dev/null @@ -1,28 +0,0 @@ -var UnseenMsgCounter = 0; -var OrigTitle = $('title').text(); -var HasFocus = true; - -function onFocus() { - HasFocus = true; - UnseenMsgCounter = 0; - $('title').text(OrigTitle); -} - -function onBlur() { - HasFocus = false; -} - -$(window).blur(onBlur); -$(window).focus(onFocus); - -function titleUpdater() { - if (HasFocus || UnseenMsgCounter == 0 || $('title').text() != OrigTitle) { - $('title').text(OrigTitle); - } else { - var plural = UnseenMsgCounter > 1 ? 's' : ''; - $('title').text(UnseenMsgCounter + ' new dump' + plural + '! | ' + OrigTitle); - } - setTimeout(titleUpdater, 2000); -} - -setTimeout(titleUpdater, 2000); \ No newline at end of file -- cgit v1.2.3-70-g09d2