tweaks to slidenotes
This commit is contained in:
parent
9608ac9d2d
commit
acbefa1190
@ -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:
|
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).
|
By default, the slides will be served at [localhost:1947](http://localhost:1947).
|
||||||
|
|
||||||
|
@ -317,7 +317,7 @@ linkify( 'a' );
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- the next two lines enable the speaker notes server -->
|
<!-- the next two lines enable the speaker notes server -->
|
||||||
<!-- <script src="socket.io/socket.io.js"></script>
|
<script src="socket.io/socket.io.js"></script>
|
||||||
<script src="js/reveal.slidenotes.js"></script> -->
|
<script src="js/reveal.slidenotes.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
var socket = io.connect(window.location.origin);
|
var socket = io.connect(window.location.origin);
|
||||||
var socketId = Math.random().toString().slice(2);
|
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 ) {
|
Reveal.addEventListener( 'slidechanged', function( event ) {
|
||||||
var nextindexh;
|
var nextindexh;
|
||||||
|
@ -30,7 +30,7 @@ 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) {
|
app.get("/notes/:socketId", function(req, res) {
|
||||||
|
|
||||||
fs.readFile(opts.baseDir + 'lib/slidenotes/notes.html', function(err, data) {
|
fs.readFile(opts.baseDir + 'lib/slidenotes/notes.html', function(err, data) {
|
||||||
res.send(Mustache.to_html(data.toString(), {
|
res.send(Mustache.to_html(data.toString(), {
|
||||||
@ -44,5 +44,5 @@ app.get("/_notes/:socketId", function(req, res) {
|
|||||||
app.listen(opts.port || null);
|
app.listen(opts.port || null);
|
||||||
|
|
||||||
console.log("Your slides are at http://localhost" + (opts.port ? (':' + opts.port) : ''));
|
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");
|
console.log("Advance through your slides and your speaker notes will advance automatically");
|
||||||
|
Loading…
Reference in New Issue
Block a user