ajout de la purge
authorRomain <romain.vuillemot@gmail.com>
Tue, 21 Feb 2012 13:24:55 +0100
changeset 19 f3299dfd0eac
parent 18 4d96494f6de5
child 20 d40e200bcd99
ajout de la purge
client/js/main.js
client/js/tweetanim.js
client/js/tweetvote-anim.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();
         }
 });
     
--- 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(); 
--- 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);