resolve notes merge conflict
This commit is contained in:
21
js/reveal.js
21
js/reveal.js
@ -4098,6 +4098,23 @@
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of objects where each object represents the attributes on its respective slide.
|
||||
*/
|
||||
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.
|
||||
*
|
||||
@ -5454,6 +5471,10 @@
|
||||
// Returns an Array of all slides
|
||||
getSlides: getSlides,
|
||||
|
||||
// Returns an Array of objects representing the attributes on
|
||||
// the slides
|
||||
getSlidesMetaInfo: getSlidesMetaInfo,
|
||||
|
||||
// Returns the total number of slides
|
||||
getTotalSlides: getTotalSlides,
|
||||
|
||||
|
Reference in New Issue
Block a user