diff -r 8a25cd7b2761 -r 83cf3d8be396 client/js/main.js --- a/client/js/main.js Tue Feb 21 15:28:05 2012 +0100 +++ b/client/js/main.js Tue Feb 21 19:20:44 2012 +0100 @@ -78,6 +78,37 @@ } } +function showTooltip(_t, _x, _y) { + $("#btv-tooltip").html('

' + + _t.from_user + + ' (' + + _t.from_user_name + +')

' + + _t.text + +'

').show().css({ + "left": _x + "px", + "top": _y + "px", + }) +} + +function hideTooltip() { + $("#btv-tooltip").hide(); +} + +function showControlPanel() { + $("#btv-cp-container").dequeue().animate({ + "left": 0 + }); +} + +function hideControlPanel() { + $("#btv-cp-container").dequeue().animate({ + "left": "-315px" + }); +} + $(function() { columnCounts = columnKeywords.map(function() { return 0; @@ -137,7 +168,7 @@ var _id = toDel[_j].id_str; world.DestroyBody(b2bod[_id]); - $('#'+_id).delay(10).hide("slow").queue(function() { + $('#'+_id).fadeTo(500, 0, function() { $(this).remove(); }); } @@ -156,6 +187,8 @@ } }); + $("#btv-cp-container").mouseover(showControlPanel).mouseout(hideControlPanel); + $("#btv-cp-champ-filtre").keyup(function() { updateLastTweetList(); });