Update website for demo and anonymous conection

This commit is contained in:
Gregoire Parant 2020-12-14 20:27:56 +01:00
parent b1f1942807
commit f8c3a10930

View File

@ -54,8 +54,16 @@
<link rel="stylesheet" href="main.css"> <link rel="stylesheet" href="main.css">
<script src="bundle.js"></script> <script src="bundle.js"></script>
<script> <script>
function startDemo() {
let playUrl = window.location.protocol + "//play."+window.location.host+"/_/global/gparant.github.io/tcm-client/Demo/demo-v1.json";
window.open(playUrl, '_blank');
}
function startGame() { function startGame() {
let playUrl = window.location.protocol + "//play."+window.location.host+"/_/global/npeguin.github.io/office-map/map.json"; let playUrl = window.location.protocol + "//play."+window.location.host;
window.open(playUrl, '_blank');
}
function startConsole() {
let playUrl = window.location.protocol + "//admin."+window.location.host;
window.open(playUrl, '_blank'); window.open(playUrl, '_blank');
} }
function shareFB() { function shareFB() {
@ -114,13 +122,23 @@
</div> </div>
<div class="row buttons-row justify-content-md-center pt-5"> <div class="row buttons-row justify-content-md-center pt-5">
<div class="col col-lg-3"> <div class="col col-lg-3">
<a class="custom-link start" href="/choose-map.html" title="WORK IN PRIVATE"> <a class="custom-link start" target="_BLANK" onclick="startConsole()" title="YOUR ADVENTURE!">
WORK IN PRIVATE YOUR ADVENTURE!
</a> </a>
</div> </div>
<div class="col col-lg-3"> <div class="col col-lg-3">
<a class="custom-link play" target="_BLANK" onclick="startGame()" title="WORK ONLINE"> <a class="custom-link play" target="_BLANK" onclick="startDemo()" title="DEMO!">
TRY IT NOW! TRY DEMO!
</a>
</div>
<div class="col col-lg-3">
<a class="custom-link contribute" target="_BLANK" onclick="startGame()" title="FEEDBACK">
BE ANONYMOUS
</a>
</div>
<div class="col-lg-12">
<a onclick="startGame()">
Continue on anonymous
</a> </a>
</div> </div>
</div> </div>
@ -169,9 +187,9 @@
<div> <div>
<p>Remote work? Friend party? Use WorkAdventure as you prefer.</p> <p>Remote work? Friend party? Use WorkAdventure as you prefer.</p>
<p>Click the button below to come and say hi!</p> <p>Click the button below to come and say hi!</p>
<p class="bubble-action"><span onclick="startGame()"> <p class="bubble-action"><span onclick="startDemo()">
<img src="static/images/playicon.png" /> <img src="static/images/playicon.png" />
TRY IT NOW ! DEMO!
</span></p> </span></p>
</div> </div>
</div> </div>