index: further differentiate between presenter and viewer
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
9e8ecd0346
commit
1c1dcc435d
10
index.html
10
index.html
@ -733,15 +733,17 @@
|
|||||||
<script src="js/reveal.js"></script>
|
<script src="js/reveal.js"></script>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
var presenter = !!Reveal.getQueryHash().s;
|
||||||
|
|
||||||
// More info https://github.com/hakimel/reveal.js#configuration
|
// More info https://github.com/hakimel/reveal.js#configuration
|
||||||
Reveal.initialize({
|
Reveal.initialize({
|
||||||
controls: true,
|
controls: presenter ? false : true,
|
||||||
progress: true,
|
progress: true,
|
||||||
history: true,
|
history: true,
|
||||||
center: 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
|
// 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
|
||||||
@ -776,7 +778,7 @@
|
|||||||
|
|
||||||
{ src: 'lib/js/socket.io.js', async: true },
|
{ src: 'lib/js/socket.io.js', async: true },
|
||||||
{
|
{
|
||||||
src: Reveal.getQueryHash().s ?
|
src: presenter ?
|
||||||
'plugin/multiplex/master.js' :
|
'plugin/multiplex/master.js' :
|
||||||
'plugin/multiplex/client.js', async: true
|
'plugin/multiplex/client.js', async: true
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user