index: further differentiate between presenter and viewer
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
		
							
								
								
									
										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 | ||||||
| 				}, | 				}, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user