From acbefa1190f263942f83b8be33bd909ef45e2f7c Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Sun, 1 Jul 2012 16:56:06 -0400 Subject: [PATCH] tweaks to slidenotes --- README.md | 2 +- index.html | 4 ++-- js/reveal.slidenotes.js | 2 +- lib/slidenotes/index.js | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e55c339d..854b30ef 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ You'll also need to [install Node.js](http://nodejs.org/); then, install the ser Once Node.js and the dependencies are installed, run the following command from the root directory: - node slidenotes + node lib/slidenotes By default, the slides will be served at [localhost:1947](http://localhost:1947). diff --git a/index.html b/index.html index a3378f11..c8bdfedf 100644 --- a/index.html +++ b/index.html @@ -317,7 +317,7 @@ linkify( 'a' ); - + + \ No newline at end of file diff --git a/js/reveal.slidenotes.js b/js/reveal.slidenotes.js index d3473019..b686ec97 100644 --- a/js/reveal.slidenotes.js +++ b/js/reveal.slidenotes.js @@ -5,7 +5,7 @@ var socket = io.connect(window.location.origin); var socketId = Math.random().toString().slice(2); - console.log('View slide notes at ' + window.location.origin + '/_notes/' + socketId); + console.log('View slide notes at ' + window.location.origin + '/notes/' + socketId); Reveal.addEventListener( 'slidechanged', function( event ) { var nextindexh; diff --git a/lib/slidenotes/index.js b/lib/slidenotes/index.js index 1c0585c5..1d36c4db 100644 --- a/lib/slidenotes/index.js +++ b/lib/slidenotes/index.js @@ -30,7 +30,7 @@ app.get("/", function(req, res) { fs.createReadStream(opts.baseDir + '/index.html').pipe(res); }); -app.get("/_notes/:socketId", function(req, res) { +app.get("/notes/:socketId", function(req, res) { fs.readFile(opts.baseDir + 'lib/slidenotes/notes.html', function(err, data) { res.send(Mustache.to_html(data.toString(), { @@ -44,5 +44,5 @@ app.get("/_notes/:socketId", function(req, res) { app.listen(opts.port || null); console.log("Your slides are at http://localhost" + (opts.port ? (':' + opts.port) : '')); -console.log("Your notes are at http://localhost" + (opts.port ? (':' + opts.port) : '') + '/_notes'); +// console.log("Your notes are at http://localhost" + (opts.port ? (':' + opts.port) : '') + '/notes'); console.log("Advance through your slides and your speaker notes will advance automatically");