From 27946c102d9542bd0a36ccb0f3d167e0f18645c6 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Mon, 27 Sep 2010 22:43:30 -0700 Subject: animate the sparkler, author was getting sparkled on own page --- include/main.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include') 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(); } -- cgit v1.2.3