aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorMartin Jurča <martin.jurca@firma.seznam.cz>2018-02-18 21:30:17 +0100
committerMartin Jurča <martin.jurca@firma.seznam.cz>2018-02-20 10:29:16 +0100
commit8468d82433cd04952e1fdc0ce68363a2cf618b13 (patch)
tree1c277269da67a52eb86362916d9ecd9bea5d5956 /js
parent325162692ea2de30e4f7ebd8b858da15580844f1 (diff)
downloadperl-software-in-gnu-guix-8468d82433cd04952e1fdc0ce68363a2cf618b13.tar
perl-software-in-gnu-guix-8468d82433cd04952e1fdc0ce68363a2cf618b13.tar.gz
fixed showing speaker's view with timings/pacing while serving the presentation from the file system
Diffstat (limited to '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,