Commit 113a753f authored by Aral Balkan's avatar Aral Balkan

Add progress bar to current slide in presenter view

(And don’t add it to the upcoming slide.)
parent b0dd2533
......@@ -442,19 +442,28 @@
*/
function setupIframes( data ) {
var params = [
var baseParamsList = [
'receiver',
'progress=true',
'history=false',
'transition=none',
'autoSlide=0',
'backgroundTransition=none'
].join( '&' );
]
// Show progress on current slide.
currentParamsList = baseParamsList.slice()
currentParamsList.push('progress=true')
var currentParams = currentParamsList.join('&')
// Turn off progress on upcoming slide.
var upcomingParamsList = baseParamsList.slice()
upcomingParamsList.push('progress=false')
var upcomingParams = upcomingParamsList.join('&')
var urlSeparator = /\?/.test(data.url) ? '&' : '?';
var hash = '#/' + data.state.indexh + '/' + data.state.indexv;
var currentURL = data.url + urlSeparator + params + '&postMessageEvents=true' + hash;
var upcomingURL = data.url + urlSeparator + params + '&controls=false' + hash;
var currentURL = data.url + urlSeparator + currentParams + '&postMessageEvents=true' + hash;
var upcomingURL = data.url + urlSeparator + upcomingParams + '&controls=false' + hash;
currentSlide = document.createElement( 'iframe' );
currentSlide.setAttribute( 'width', 1280 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment