aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-27 22:43:30 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-27 22:43:30 -0700
commit27946c102d9542bd0a36ccb0f3d167e0f18645c6 (patch)
tree0ed0f807dec4749fb95954f9ac6284c849edca38 /include
parent55351114facbe2a911b75e906c88b1b5ac5765bb (diff)
downloadvolse-hubzilla-27946c102d9542bd0a36ccb0f3d167e0f18645c6.tar.gz
volse-hubzilla-27946c102d9542bd0a36ccb0f3d167e0f18645c6.tar.bz2
volse-hubzilla-27946c102d9542bd0a36ccb0f3d167e0f18645c6.zip
animate the sparkler, author was getting sparkled on own page
Diffstat (limited to 'include')
-rw-r--r--include/main.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/main.js b/include/main.js
index 8245cef2f..3b6528ee9 100644
--- a/include/main.js
+++ b/include/main.js
@@ -43,6 +43,7 @@
$.ajaxSetup({cache: false});
msie = $.browser.msie ;
NavUpdate();
+ sparkler();
// Allow folks to stop the ajax page updates with the pause/break key
$(document).keypress(function(event) {
if(event.keyCode == '19') {
@@ -59,6 +60,20 @@
});
});
+ var spark = false;
+ function sparkler() {
+ if(spark) {
+ $('.sparkle').css({cursor: 'pointer'});
+ spark = false;
+ }
+ else {
+ $('.sparkle').css({cursor: 'crosshair'});
+ spark = true;
+ }
+ setTimeout(sparkler,500);
+ }
+
+
function NavUpdate() {
if($('#live-network').length) { src = 'network'; liveUpdate(); }