Skip to content

Commit

Permalink
Open notes in new window, instead of printing to console
Browse files Browse the repository at this point in the history
It can be tedious to load up the speaker notes, with the whole having to
open the javascript console, and clicking on the link.

This simplifies it by automatically opening the notes in a new window.
Most browsers will warn that it's trying to open a pop-up, but it's easy
enough to allow it.
  • Loading branch information
technicalpickles committed Sep 9, 2012
1 parent e6e8028 commit 77d338f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/speakernotes/client.js
Expand Up @@ -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); window.open(window.location.origin + '/notes/' + socketId, 'notes-' + socketId)


Reveal.addEventListener( 'slidechanged', function( event ) { Reveal.addEventListener( 'slidechanged', function( event ) {
var nextindexh; var nextindexh;
Expand Down

0 comments on commit 77d338f

Please sign in to comment.