diff options
author | Josh Nichols <josh@technicalpickles.com> | 2012-09-08 21:53:43 -0400 |
---|---|---|
committer | Josh Nichols <josh@technicalpickles.com> | 2012-09-08 21:53:43 -0400 |
commit | 77d338f93ae9ef443949ffe962732eeffc4964f8 (patch) | |
tree | e68dcb3f467479295fd8603301cf6db6afafcad0 /plugin | |
parent | e6e80283f24f773ee8d0a5364634a06f081a1410 (diff) | |
download | perl-software-in-gnu-guix-77d338f93ae9ef443949ffe962732eeffc4964f8.tar perl-software-in-gnu-guix-77d338f93ae9ef443949ffe962732eeffc4964f8.tar.gz |
Open notes in new window, instead of printing to console
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.
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/speakernotes/client.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/speakernotes/client.js b/plugin/speakernotes/client.js index 1aba8b8..a97ad46 100644 --- a/plugin/speakernotes/client.js +++ b/plugin/speakernotes/client.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); + window.open(window.location.origin + '/notes/' + socketId, 'notes-' + socketId) Reveal.addEventListener( 'slidechanged', function( event ) { var nextindexh; |