Skip to content

Commit

Permalink
wtfasdasd
Browse files Browse the repository at this point in the history
  • Loading branch information
Sridatta Thatipamala authored and Sridatta Thatipamala committed Mar 10, 2011
1 parent 92a4c71 commit c2ba62a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 87 deletions.
83 changes: 0 additions & 83 deletions public/index.html

This file was deleted.

22 changes: 18 additions & 4 deletions server.js
Expand Up @@ -16,10 +16,22 @@ app.use(express.errorHandler({ showStack: true, dumpExceptions: true }));
// //




app.get('/:room/:instrument', function(req, res){ app.get('/', function(req, res){

var room = Math.floor(uCount/3);
res.render('index', {locals: {instrument: req.params.instrument, room: req.params.room}}); var instrument;

switch(uCount%3){
case 0:
instrument = 'piano';
break;
case 1:
instrument = 'bass';
break;
case 2:
instrument = 'drum';
break;
}
uCount++;
res.render('index', {locals: {instrument: instrument, room: room}});
}); });




Expand All @@ -36,6 +48,8 @@ var everyone = require("./lib/nowServerLib.js").initialize(server);


everyone.now.receiveTick = function(){}; everyone.now.receiveTick = function(){};


uCount = 0;

setInterval(function(){everyone.now.receiveTick();}, 2000); setInterval(function(){everyone.now.receiveTick();}, 2000);


everyone.now.filterNote = function(type, note, id, room){ everyone.now.filterNote = function(type, note, id, room){
Expand Down

0 comments on commit c2ba62a

Please sign in to comment.