3
我想使用slides.com interface创建reveal.js演示文稿以节省时间,然后添加multiplex功能以允许控制其他设备上的演示文稿。要做到这一点,我编辑的初始化选项和依赖:Multiplex功能与reveal.js幻灯片
Reveal.initialize({
multiplex:{
secret: null, // Obtained from the socket.io server. Gives this (the master) control of the 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 },
]
});
但在控制台中这个错误,这似乎深深埋在揭示代码:
Uncaught ReferenceError: head is not defined (index: 46)
当我手工制作这揭示,我可以获得复用功能(controller,listener)。但是这个版本打破了(link)。是否有另一种方法来添加从slides.com产生的演示文稿的依赖关系?
真棒,谢谢@hakim! – mike 2015-04-01 19:30:23