diff --git a/front/src/Phaser/Menu/MenuScene.ts b/front/src/Phaser/Menu/MenuScene.ts index 859317db..47e083bb 100644 --- a/front/src/Phaser/Menu/MenuScene.ts +++ b/front/src/Phaser/Menu/MenuScene.ts @@ -155,7 +155,7 @@ export class MenuScene extends Phaser.Scene { gameManager.leaveGame(this, LoginSceneName, new LoginScene()); break; case 'sparkButton': - this.goToSpark(); + this.gotToCreateMapPage(); break; case 'changeSkinButton': this.closeSideMenu(); @@ -195,8 +195,8 @@ export class MenuScene extends Phaser.Scene { this.closeGameQualityMenu(); } - private goToSpark() { - const sparkHost = 'https://'+window.location.host.replace('play.', 'admin.')+'/register'; + private gotToCreateMapPage() { + const sparkHost = 'https://'+window.location.host.replace('play.', '')+'/choose-map.html'; window.open(sparkHost, '_blank'); } } diff --git a/front/src/WebRtc/CoWebsiteManager.ts b/front/src/WebRtc/CoWebsiteManager.ts index e6d5b748..e9564222 100644 --- a/front/src/WebRtc/CoWebsiteManager.ts +++ b/front/src/WebRtc/CoWebsiteManager.ts @@ -47,6 +47,11 @@ class CoWebsiteManager { this.cowebsiteDiv.innerHTML = ``; + setTimeout(() => { + HtmlUtils.getElementByIdOrFail('cowebsite-close').addEventListener('click', () => { + this.closeCoWebsite(); + }); + }, 100); const iframe = document.createElement('iframe'); iframe.id = 'cowebsite-iframe'; diff --git a/website/dist/index.html b/website/dist/index.html index 9f0fc753..09fe52d5 100644 --- a/website/dist/index.html +++ b/website/dist/index.html @@ -61,11 +61,6 @@ function startGame() { let playUrl = window.location.protocol + "//play."+window.location.host+'/_/global/npeguin.github.io/office-map/map.json'; window.open(playUrl, '_blank'); - } - function startConsole() { - //let playUrl = window.location.protocol + "//admin."+window.location.host; - let playUrl = 'https://admin.workadventu.re'; - window.open(playUrl, '_blank'); } function shareFB() { window.open('https://www.facebook.com/sharer/sharer.php?u=https://workadventu.re/', '_blank', 'width=500,height=500'); @@ -118,27 +113,27 @@ Stay connected with your clients by providing a dedicated digital place to organize meetings, workshops.

- Stay connected with your future collaborators by organizing online event. + Engage with your future collaborators by organizing online events.

+ href="/choose-map.html"> CREATE YOUR MAP
- + TUTORIAL
- - DEMO (Anonymous) + + DEMO