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'];
return query;
}
var presenter = !!getQueryHash().s;
var stream = !!getQueryHash().stream;
// More info about initialization & config:
// - https://revealjs.com/initialization/
// - https://revealjs.com/config/
@ -879,19 +880,19 @@
Reveal.initialize({
hash: true,
controls: presenter ? false : true,
controls: presenter ? false : (stream ? false : true),
progress: true,
history: 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
// when the presentation is scaled to fit different resolutions. Can be
// specified using percentage units.
width: 1920,
height: 1080,
width: 1280,
height: 800,
// Factor of the display size that should remain empty around the content
margin: 0.1,