From 8468d82433cd04952e1fdc0ce68363a2cf618b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Jur=C4=8Da?= Date: Sun, 18 Feb 2018 21:30:17 +0100 Subject: fixed showing speaker's view with timings/pacing while serving the presentation from the file system --- js/reveal.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'js/reveal.js') 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, -- cgit v1.2.3 From 6a2c5b4de833c73f656945253e7b72e31870c88a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Jur=C4=8Da?= Date: Tue, 20 Feb 2018 10:30:56 +0100 Subject: documentation --- js/reveal.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'js/reveal.js') diff --git a/js/reveal.js b/js/reveal.js index 091372e..9a1422f 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -3901,6 +3901,9 @@ } + /** + * Returns an array of objects where each object represents the attributes on its respective slide. + */ function getSlidesMetaInfo() { var slides = getSlides(); -- cgit v1.2.3 From 250580fc4c97f83185e46f9d0e22286d0a01d3af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Jur=C4=8Da?= Date: Tue, 20 Feb 2018 16:08:29 +0100 Subject: added missing documentation --- js/reveal.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/reveal.js') diff --git a/js/reveal.js b/js/reveal.js index 9a1422f..12d67bf 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -5269,6 +5269,8 @@ // 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 -- cgit v1.2.3