App-SlideServer
view release on metacpan or search on metacpan
share/public/slides.js view on Meta::CPAN
var self= this
if (!config)
config= self.config
if (!config.websocket_url)
config.websocket_url= 'slidelink.io'
if (!config.mode)
config.mode= 'obs';
if (config.code_highlight === undefined && window.hljs)
config.code_highlight= function(el){ window.hljs.highlightElement(el) }
if (config.mode == 'presenter' && (config.key == null || config.key.length == 0))
config.key= null;//TODO: getCookieVal('access_key');
self.config= config
// Generic button and checkbox handlers
this._button_dispatch= function(ev) {
try {
self[this.dataset.method].call(self, ev);
} catch (e) {
console.log('Calling slides.'+this.dataset.method+': ', e);
}
};
this._enter_dispatch= function(ev) {
( run in 0.415 second using v1.01-cache-2.11-cpan-e9199f4ba4c )