Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
decker
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
decker
decker
Commits
ab4850f6
Commit
ab4850f6
authored
Nov 01, 2020
by
Mario Botsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integrate question engine into menu
parent
4e84d75e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
resource/support/js/engine.js
resource/support/js/engine.js
+6
-2
resource/support/plugins/menu/menu.js
resource/support/plugins/menu/menu.js
+3
-0
No files found.
resource/support/js/engine.js
View file @
ab4850f6
...
...
@@ -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
...
...
resource/support/plugins/menu/menu.js
View file @
ab4850f6
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment