--- 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('<img class="btv-tooltip-image" src="'
+ + _t.profile_image_url
+ + '" /><p class="btv-tooltip-name"><span>'
+ + _t.from_user
+ + '</span> (<span>'
+ + _t.from_user_name
+ +'</span>)</p><p>'
+ + _t.text
+ +'</p><div class="btv-tooltip-arrow"></div>').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();
});