client/js/tweetvote-anim.js
changeset 23 d473ebde73a3
parent 20 d40e200bcd99
child 26 83cf3d8be396
equal deleted inserted replaced
22:978c4a0e0095 23:d473ebde73a3
   291     walls[8] = createBox(world, 1690, 600, 170, 10); //  1   
   291     walls[8] = createBox(world, 1690, 600, 170, 10); //  1   
   292     
   292     
   293     setInterval(function() {
   293     setInterval(function() {
   294     
   294     
   295       // Check if div podiums are already loaded
   295       // Check if div podiums are already loaded
   296       if($('#podium div').size() > 0) {h
   296       if($('#podium div').size() > 0) {
   297         
   297         
   298         $('#podium div').each( function(idx, panel) {
   298         $('#podium div').each( function(idx, panel) {
   299        
   299        
   300         var idxWall = 5+idx;
   300         var idxWall = 5+idx;
   301         var yWall = 920-$(this).height();
   301         var yWall = 920-$(this).height();
   427   b2body.linearVelocity.Set(a, b);
   427   b2body.linearVelocity.Set(a, b);
   428   b2bod[t.id_str] = world.CreateBody(b2body);
   428   b2bod[t.id_str] = world.CreateBody(b2body);
   429   console.log("created " + t.id_str)
   429   console.log("created " + t.id_str)
   430 	bodies.push(b2bod[t.id_str]);	
   430 	bodies.push(b2bod[t.id_str]);	
   431   
   431   
   432   toDel[t.cat].push(t);
   432 //  toDel[t.cat].push(t);
   433   
   433   
   434 
   434 
   435 	$("#"+t.id_str).mouseover(function() {
   435 	$("#"+t.id_str).mouseover(function() {
   436     console.log(t.id_str);
   436     console.log(t.id_str);
   437 
   437