From f2d1cd26271a1e0ef474085049b3d35bc003e2d5 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Wed, 6 Apr 2022 23:03:21 +0800 Subject: [PATCH] stream: add stream argument Signed-off-by: Sean Cross --- index.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index f110bfb..d0f366e 100644 --- a/index.html +++ b/index.html @@ -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,