summaryrefslogtreecommitdiffhomepage
path: root/js/reveal.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 230d001..091372e 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -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,