|
@@ -408,6 +408,7 @@
|
|
* Asynchronously calls the Reveal.js API of the main frame.
|
|
* Asynchronously calls the Reveal.js API of the main frame.
|
|
*/
|
|
*/
|
|
function callRevealApi( methodName, methodArguments, callback ) {
|
|
function callRevealApi( methodName, methodArguments, callback ) {
|
|
|
|
+
|
|
var callId = ++lastRevealApiCallId;
|
|
var callId = ++lastRevealApiCallId;
|
|
pendingCalls[callId] = callback;
|
|
pendingCalls[callId] = callback;
|
|
window.opener.postMessage( JSON.stringify( {
|
|
window.opener.postMessage( JSON.stringify( {
|
|
@@ -417,6 +418,7 @@
|
|
methodName: methodName,
|
|
methodName: methodName,
|
|
arguments: methodArguments
|
|
arguments: methodArguments
|
|
} ), '*' );
|
|
} ), '*' );
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -535,7 +537,7 @@
|
|
|
|
|
|
function getTimings( callback ) {
|
|
function getTimings( callback ) {
|
|
|
|
|
|
- callRevealApi( 'getSlidesMetaInfo', [], function ( slides ) {
|
|
|
|
|
|
+ callRevealApi( 'getSlidesAttributes', [], function ( slideAttributes ) {
|
|
callRevealApi( 'getConfig', [], function ( config ) {
|
|
callRevealApi( 'getConfig', [], function ( config ) {
|
|
var defaultTiming = config.defaultTiming;
|
|
var defaultTiming = config.defaultTiming;
|
|
if (defaultTiming == null) {
|
|
if (defaultTiming == null) {
|
|
@@ -544,8 +546,8 @@
|
|
}
|
|
}
|
|
|
|
|
|
var timings = [];
|
|
var timings = [];
|
|
- for ( var i in slides ) {
|
|
|
|
- var slide = slides[ i ];
|
|
|
|
|
|
+ for ( var i in slideAttributes ) {
|
|
|
|
+ var slide = slideAttributes[ i ];
|
|
var timing = defaultTiming;
|
|
var timing = defaultTiming;
|
|
if( slide.hasOwnProperty( 'data-timing' )) {
|
|
if( slide.hasOwnProperty( 'data-timing' )) {
|
|
var t = slide[ 'data-timing' ];
|
|
var t = slide[ 'data-timing' ];
|