stream: add stream argument

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2022-04-06 23:03:21 +08:00
parent eb70a3a181
commit f2d1cd2627

View File

@ -862,9 +862,10 @@
if (typeof query['dependencies'] !== 'undefined') delete query['dependencies']; if (typeof query['dependencies'] !== 'undefined') delete query['dependencies'];
return query; return query;
} }
var presenter = !!getQueryHash().s; var presenter = !!getQueryHash().s;
var stream = !!getQueryHash().stream;
// More info about initialization & config: // More info about initialization & config:
// - https://revealjs.com/initialization/ // - https://revealjs.com/initialization/
// - https://revealjs.com/config/ // - https://revealjs.com/config/
@ -879,19 +880,19 @@
Reveal.initialize({ Reveal.initialize({
hash: true, hash: true,
controls: presenter ? false : true, controls: presenter ? false : (stream ? false : true),
progress: true, progress: true,
history: true, history: true,
center: true, center: true,
controlsTutorial: presenter ? false : true, controlsTutorial: presenter ? false : (stream ? false : true),
slideNumber: presenter ? null : 'c/t', slideNumber: presenter ? null : (stream ? null : 'c/t'),
// The "normal" size of the presentation, aspect ratio will be preserved // The "normal" size of the presentation, aspect ratio will be preserved
// when the presentation is scaled to fit different resolutions. Can be // when the presentation is scaled to fit different resolutions. Can be
// specified using percentage units. // specified using percentage units.
width: 1920, width: 1280,
height: 1080, height: 800,
// Factor of the display size that should remain empty around the content // Factor of the display size that should remain empty around the content
margin: 0.1, margin: 0.1,