diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2018-10-04 12:32:28 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2018-10-04 12:32:37 +0200 |
commit | 8582c9aac8888bc71d2658377778279a5d5f0c34 (patch) | |
tree | 4c38d89653af23ec9f4126b4fc1fd915b2eabbad /js | |
parent | 90fc0bc466c505b5e3b6ce68532565f3dd0745ae (diff) | |
parent | 250580fc4c97f83185e46f9d0e22286d0a01d3af (diff) | |
download | perl-software-in-gnu-guix-8582c9aac8888bc71d2658377778279a5d5f0c34.tar perl-software-in-gnu-guix-8582c9aac8888bc71d2658377778279a5d5f0c34.tar.gz |
resolve notes merge conflict
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js index b071cc3..4946df5 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -4099,6 +4099,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. * * @return {number} @@ -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, |