Add documentation

delete unused test map
This commit is contained in:
GRL 2021-08-27 14:49:57 +02:00
parent cb7b98de0d
commit ebcf4a6ae3
7 changed files with 47 additions and 152 deletions

View file

@ -3,7 +3,7 @@
<head>
<title>Custom Iframe Menu</title>
</head>
<body>
<a href="https://workadventu.re/">GO TO WA BY IFRAME</a>
<body style="text-align: center">
<p style="color: whitesmoke">This is an iframe in a custom menu.</p>
</body>
</html>

View file

@ -14,7 +14,7 @@
})
</script>
</head>
<body>
<p>This iframe send you a message in the chat.</p>
<body style="text-align: center">
<p style="color: whitesmoke">This is an iframe in a custom menu.</p>
</body>
</html>

View file

@ -1,10 +1,10 @@
let menuIframeApi = undefined;
WA.ui.registerMenuCommand('TO WA', () => {
WA.ui.registerMenuCommand('custom callback menu', () => {
WA.nav.openTab("https://workadventu.re/");
})
WA.ui.registerMenuCommand('TO WA BY IFRAME', {iframe: 'customIframeMenu.html'});
WA.ui.registerMenuCommand('custom iframe menu', {iframe: 'customIframeMenu.html'});
WA.room.onEnterZone('iframeMenu', () => {
menuIframeApi = WA.ui.registerMenuCommand('IFRAME USE API', {iframe: 'customIframeMenuApi.html', allowApi: true});