# HG changeset patch # User Romain # Date 1329827095 -3600 # Node ID f3299dfd0eac42d8db46aeb7ca23a43098c300c4 # Parent 4d96494f6de5628396fa994233d6e1700903d76b ajout de la purge diff -r 4d96494f6de5 -r f3299dfd0eac client/js/main.js --- a/client/js/main.js Tue Feb 21 12:16:44 2012 +0100 +++ b/client/js/main.js Tue Feb 21 13:24:55 2012 +0100 @@ -108,6 +108,7 @@ } _t.cat = _cat; createBallTweetForce(_t); + checkSilos(); } }); diff -r 4d96494f6de5 -r f3299dfd0eac client/js/tweetanim.js --- a/client/js/tweetanim.js Tue Feb 21 12:16:44 2012 +0100 +++ b/client/js/tweetanim.js Tue Feb 21 13:24:55 2012 +0100 @@ -3,7 +3,7 @@ var countTweets = 0; var isPlayingTweets = false; // auto start var SPEED_TWEETS = 10; -var MAX_VOTES = 5; +var MAX_VOTES = 10; var DUMP_TWEETS = 10; var toDel = []; @@ -182,7 +182,7 @@ var ids = toDel[j].shift(); world.DestroyBody(b2bod[ids.id_str]); - console.log(b2bod[ids.id_str]); + $('#'+ids.id_str).delay(10).hide("slow").queue(function() { $(this).remove(); diff -r 4d96494f6de5 -r f3299dfd0eac client/js/tweetvote-anim.js --- a/client/js/tweetvote-anim.js Tue Feb 21 12:16:44 2012 +0100 +++ b/client/js/tweetvote-anim.js Tue Feb 21 13:24:55 2012 +0100 @@ -293,7 +293,7 @@ setInterval(function() { // Check if div podiums are already loaded - if($('#podium div').size() > 0) { + if($('#podium div').size() > 0) {h $('#podium div').each( function(idx, panel) { @@ -429,6 +429,8 @@ console.log("created " + t.id_str) bodies.push(b2bod[t.id_str]); + toDel[t.cat].push(t); + $("#"+t.id_str).mouseover(function() { console.log(t.id_str);