From b03e7ec8f60689b4bb73867689e2f2a6c0d77db8 Mon Sep 17 00:00:00 2001 From: Alexis Faizeau Date: Thu, 28 Oct 2021 10:00:12 +0200 Subject: [PATCH] Add how to have a jitsi & cowebsite on doc --- docs/maps/api-nav.md | 2 +- docs/maps/opening-a-website.md | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/maps/api-nav.md b/docs/maps/api-nav.md index 465f8063..47ee416e 100644 --- a/docs/maps/api-nav.md +++ b/docs/maps/api-nav.md @@ -67,7 +67,7 @@ const coWebsiteWorkAdventure = await WA.nav.openCoWebSite('https://workadventu.r coWebsite.close(); ``` -### Opening/closing web page in Co-Websites +### Get all Co-Websites ``` WA.nav.getCoWebSites(): Promise diff --git a/docs/maps/opening-a-website.md b/docs/maps/opening-a-website.md index ec6c82d4..64b19f1c 100644 --- a/docs/maps/opening-a-website.md +++ b/docs/maps/opening-a-website.md @@ -5,7 +5,7 @@ ## The openWebsite property -On your map, you can define special zones. When a player will pass over these zones, a website will open (as an iframe +On your map, you can define special zones. When a player will pass over these zones, a website will open (as an iframe on the right side of the screen) In order to create a zone that opens websites: @@ -16,7 +16,7 @@ In order to create a zone that opens websites: * You may also use "`openTab`" property (of type "`string`") to open in a new tab instead. {.alert.alert-warning} -A website can explicitly forbid another website from loading it in an iFrame using +A website can explicitly forbid another website from loading it in an iFrame using the [X-Frame-Options HTTP header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options). ## Integrating a Youtube video @@ -64,3 +64,13 @@ For instance, if you want an iFrame to be able to go in fullscreen, you will use
The generated iFrame will have the allow attribute set to: <iframe allow="fullscreen">
+ +### Open a Jitsi with a co-website + +Cowebsites allow you to have several sites open at the same time. + +If you want to open a Jitsi and another page it's easy! + +You have just to [add a Jitsi to the map](meeting-rooms.md) and [add a co-website](opening-a-website.md#the-openwebsite-property) on the same layer. + +It's done!