Commit ab4850f6 authored by Mario Botsch's avatar Mario Botsch

integrate question engine into menu

parent 4e84d75e
......@@ -26,16 +26,20 @@ async function prepareEngine(api) {
serverToken = token;
if (Reveal.isReady()) {
buildInterface(api, serverToken);
buildOverview(api, serverToken);
// buildOverview(api, serverToken);
} else {
Reveal.addEventListener("ready", _ => {
buildInterface(api, serverToken);
buildOverview(api, serverToken);
// buildOverview(api, serverToken);
});
}
if (Reveal.isReady() && Reveal.hasPlugin('menu') && Reveal.getPlugin('menu').isInit()) {
buildMenu(api, serverToken);
} else {
Reveal.addEventListener("menu-ready", _ => {
buildMenu(api, serverToken);
});
}
})
.catch(e => {
// Nothing goes without a token
......
......@@ -994,3 +994,6 @@ var RevealMenu = window.RevealMenu || (function(){
return module;
})();
// MARIO: we have to register the plugin
Reveal.registerPlugin( 'menu', RevealMenu );
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment