summaryrefslogtreecommitdiff
path: root/static/away.js
diff options
context:
space:
mode:
authordumpfmprod <dumpfmprod@ubuntu.(none)>2010-04-06 21:49:33 -0400
committerdumpfmprod <dumpfmprod@ubuntu.(none)>2010-04-06 21:49:33 -0400
commitbb6c557b0ec2c154d4da7aa3b291eebe942b9046 (patch)
tree06be29104d80a5533ec76eb9693ce52cae802438 /static/away.js
parenta136333cfc240a9fa7a76e44344dd6dd6eaade96 (diff)
Deleted static files, updated css
Diffstat (limited to 'static/away.js')
-rwxr-xr-xstatic/away.js28
1 files changed, 0 insertions, 28 deletions
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