diff options
| author | timb <timb@mb.local> | 2010-02-11 03:54:41 -0800 |
|---|---|---|
| committer | timb <timb@mb.local> | 2010-02-11 03:54:41 -0800 |
| commit | c6c120b9aa3b081fc9724f083b72bfc7f83ebce7 (patch) | |
| tree | 7f32faf9425a2b23da92240436da903eadc96df3 /static/js/pichat.js | |
| parent | 3352b2dfdf82955d58fca2dd08e4a4d5fc289c93 (diff) | |
enabled webcam upload\!
Diffstat (limited to 'static/js/pichat.js')
| -rwxr-xr-x | static/js/pichat.js | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 48b11ae..de01f53 100755 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -213,11 +213,14 @@ function initChat() { scrollToEnd() scrollWatcher() + + // see /static/webcam/webcam.js + webcam.init() + setTimeout(refresh, 1000); } - function initProfile() { $('.logged-dump .content').each(function() { var t = $(this); @@ -307,4 +310,18 @@ function scrollToEnd(){ function scrollWatcher(){ scrollIfPossible() setTimeout(scrollWatcher, 500) +} + +// well fuck webkit for not supporting {text-decoration: blink} + +function blinkStart(){ + blinkTimer = setInterval(function(){ + $(".blink").removeClass("blink").addClass("blink-turning-off") + $(".blink-off").removeClass("blink-off").addClass("blink") + $(".blink-turning-off").removeClass("blink-turning-off").addClass("blink-off") + },500); +} + +function blinkStop(){ + clearInterval(blinkTimer); }
\ No newline at end of file |
