fixed showing speaker's view with timings/pacing while serving the presentation from the file system

This commit is contained in:
Martin Jurča
2018-02-18 21:30:17 +01:00
parent 325162692e
commit 8468d82433
3 changed files with 141 additions and 77 deletions

View File

@ -3901,6 +3901,20 @@
}
function getSlidesMetaInfo() {
var slides = getSlides();
return slides.map( function (slide) {
var meta = {};
for( var i = 0; i < slide.attributes.length; i++ ) {
var attribute = slide.attributes[ i ];
meta[ attribute.name ] = attribute.value;
}
return meta;
} );
}
/**
* Retrieves the total number of slides in this presentation.
*
@ -5252,6 +5266,8 @@
// Returns an Array of all slides
getSlides: getSlides,
getSlidesMetaInfo: getSlidesMetaInfo,
// Returns the total number of slides
getTotalSlides: getTotalSlides,