...
 
Commits (3)
......@@ -275,6 +275,10 @@
}
}
/* Customisations: Aral */
.overlay-element { display: none; } /* Hide the overlay buttons */
</style>
</head>
......@@ -438,19 +442,28 @@
*/
function setupIframes( data ) {
var params = [
var baseParamsList = [
'receiver',
'progress=false',
'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 );
......