diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-07-01 16:43:43 -0400 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2012-07-01 16:43:43 -0400 |
commit | 9608ac9d2dbe7ef4161d64c88865290ccaca6c30 (patch) | |
tree | 619fd9152cbb2175ac233e285e9a6831fae58117 /lib | |
parent | e2ba1c114211621682ee9d9f4c21c6c44b8c3acb (diff) | |
download | fosdem-2018-presentation-9608ac9d2dbe7ef4161d64c88865290ccaca6c30.tar fosdem-2018-presentation-9608ac9d2dbe7ef4161d64c88865290ccaca6c30.tar.gz |
adjust whitespace of notes code to match rest of project
Diffstat (limited to 'lib')
-rw-r--r-- | lib/slidenotes/index.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/slidenotes/index.js b/lib/slidenotes/index.js index 26b0463..1c0585c 100644 --- a/lib/slidenotes/index.js +++ b/lib/slidenotes/index.js @@ -10,34 +10,34 @@ var staticDir = express.static; io = io.listen(app); var opts = { - port : 1947, - baseDir : __dirname + '/../../' + port : 1947, + baseDir : __dirname + '/../../' }; io.sockets.on('connection', function(socket) { - socket.on('slidechanged', function(slideData) { - socket.broadcast.emit('slidedata', slideData); - }); + socket.on('slidechanged', function(slideData) { + socket.broadcast.emit('slidedata', slideData); + }); }); app.configure(function() { - [ 'css', 'assets', 'js', 'lib' ].forEach(function(dir) { - app.use('/' + dir, staticDir(opts.baseDir + dir)); - }); + [ 'css', 'assets', 'js', 'lib' ].forEach(function(dir) { + app.use('/' + dir, staticDir(opts.baseDir + dir)); + }); }); app.get("/", function(req, res) { - fs.createReadStream(opts.baseDir + '/index.html').pipe(res); + fs.createReadStream(opts.baseDir + '/index.html').pipe(res); }); app.get("/_notes/:socketId", function(req, res) { - fs.readFile(opts.baseDir + 'slidenotes/notes.html', function(err, data) { - res.send(Mustache.to_html(data.toString(), { - socketId : req.params.socketId - })); - }); - // fs.createReadStream(opts.baseDir + 'slidenotes/notes.html').pipe(res); + fs.readFile(opts.baseDir + 'lib/slidenotes/notes.html', function(err, data) { + res.send(Mustache.to_html(data.toString(), { + socketId : req.params.socketId + })); + }); + // fs.createReadStream(opts.baseDir + 'slidenotes/notes.html').pipe(res); }); // Actually listen |