From: Eric J. Duran Date: Tue, 16 Oct 2012 21:48:34 +0000 (-0400) Subject: Adding images directory to staticDir so we can search images X-Git-Tag: 2.1.0~30 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f70dcd3c9f26c09169d8f58443898661d9fea179;p=reveal.js.git Adding images directory to staticDir so we can search images --- diff --git a/images/readme.md b/images/readme.md new file mode 100644 index 0000000..c3df390 --- /dev/null +++ b/images/readme.md @@ -0,0 +1 @@ +Images directory diff --git a/plugin/speakernotes/index.js b/plugin/speakernotes/index.js index e8c8023..17314f3 100644 --- a/plugin/speakernotes/index.js +++ b/plugin/speakernotes/index.js @@ -21,7 +21,7 @@ io.sockets.on('connection', function(socket) { }); app.configure(function() { - [ 'css', 'js', 'plugin', 'lib' ].forEach(function(dir) { + [ 'css', 'js', 'images', 'plugin', 'lib' ].forEach(function(dir) { app.use('/' + dir, staticDir(opts.baseDir + dir)); }); }); @@ -43,8 +43,8 @@ app.get("/notes/:socketId", function(req, res) { // Actually listen app.listen(opts.port || null); -var brown = '\033[33m', - green = '\033[32m', +var brown = '\033[33m', + green = '\033[32m', reset = '\033[0m'; var slidesLocation = "http://localhost" + ( opts.port ? ( ':' + opts.port ) : '' );