aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-04-22 14:06:58 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-04-22 14:06:58 +0200
commitce05138f9a9065526ee584d2f59e48952910522f (patch)
tree42b6435207eb0f0fbefac5d2afe4de4ea6b5c79a /plugin
parent9b2851376dee7a29e6142c011b3af80d6d917a87 (diff)
downloadperl-software-in-gnu-guix-ce05138f9a9065526ee584d2f59e48952910522f.tar
perl-software-in-gnu-guix-ce05138f9a9065526ee584d2f59e48952910522f.tar.gz
dont toggle paused/overview modes needlessly when setting state
Diffstat (limited to 'plugin')
-rw-r--r--plugin/notes/notes.html10
-rw-r--r--plugin/notes/notes.js2
2 files changed, 9 insertions, 3 deletions
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html
index 15c7ae9..95cc525 100644
--- a/plugin/notes/notes.html
+++ b/plugin/notes/notes.html
@@ -249,7 +249,13 @@
*/
function setupIframes( data ) {
- var url = data.url + '?receiver&progress=false&overview=false&history=false';
+ var params = [
+ 'receiver',
+ 'progress=false',
+ 'history=false'
+ ];
+
+ var url = data.url + '?' + params.join( '&' );
var hash = '#/' + data.state.indexh + '/' + data.state.indexv;
currentSlide = document.createElement( 'iframe' );
@@ -261,7 +267,7 @@
nextSlide = document.createElement( 'iframe' );
nextSlide.setAttribute( 'width', 640 );
nextSlide.setAttribute( 'height', 512 );
- nextSlide.setAttribute( 'src', url + '&controls=false' + hash );
+ nextSlide.setAttribute( 'src', url + '&controls=false&transition=none&backgroundTransition=none' + hash );
document.querySelector( '#next-slide' ).appendChild( nextSlide );
}
diff --git a/plugin/notes/notes.js b/plugin/notes/notes.js
index 31efd81..a0b6a5a 100644
--- a/plugin/notes/notes.js
+++ b/plugin/notes/notes.js
@@ -14,7 +14,7 @@ var RevealNotes = (function() {
function openNotes() {
var jsFileLocation = document.querySelector('script[src$="notes.js"]').src; // this js file path
jsFileLocation = jsFileLocation.replace(/notes\.js(\?.*)?$/, ''); // the js folder path
- var notesPopup = window.open( jsFileLocation + 'notes.html', 'reveal.js - Notes', 'width=1120,height=850' );
+ var notesPopup = window.open( jsFileLocation + 'notes.html', 'reveal.js - Notes', 'width=1100,height=700' );
/**
* Connect to the notes window through a postmessage handshake.