index: further differentiate between presenter and viewer

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2019-01-12 15:23:41 +08:00
parent 9e8ecd0346
commit 1c1dcc435d

View File

@ -733,15 +733,17 @@
<script src="js/reveal.js"></script>
<script>
var presenter = !!Reveal.getQueryHash().s;
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
controls: presenter ? false : true,
progress: true,
history: true,
center: true,
controlsTutorial: false,
controlsTutorial: presenter ? false : true,
slideNumber: 'c/t',
slideNumber: presenter ? 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
@ -776,7 +778,7 @@
{ src: 'lib/js/socket.io.js', async: true },
{
src: Reveal.getQueryHash().s ?
src: presenter ?
'plugin/multiplex/master.js' :
'plugin/multiplex/client.js', async: true
},