dont toggle paused/overview modes needlessly when setting state

This commit is contained in:
Hakim El Hattab
2014-04-22 14:06:58 +02:00
parent 9b2851376d
commit ce05138f9a
3 changed files with 20 additions and 7 deletions

View File

@ -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 );
}

View File

@ -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.