javascript - Multiplex functionality with reveal.js slides -


i want create reveal.js presentations using slides.com interface save time, , add multiplex functionality allow controlling of presentation on other devices. this, edited initialize options , dependencies:

           reveal.initialize({                 multiplex:{                     secret: null, // obtained socket.io server. gives (the master) control of presentation                     id: id,                     url: nodeurl // location of socket.io server                 },                              dependencies: [                     { src: '//cdnjs.cloudflare.com/ajax/libs/socket.io/0.9.10/socket.io.min.js', async: true },                     { src: 'reveal/plugin/multiplex/client.js', async: true },                              ]             }); 

but error in console, seems buried in reveal code:

uncaught referenceerror: head not defined (index: 46) 

when produce manually in reveal, i'm able multiplex functionality (controller, listener). version breaks (link). there way of adding dependencies presentations produced slides.com?

reveal.js relies on head.js dependency loading. head.js not included in exported presentation slides since doesn't load dependencies.

to fix you'll need add head.js presentation:

<script src="https://cdnjs.cloudflare.com/ajax/libs/headjs/0.96/head.min.js"></script> 

Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -