Fixe url demo anonymous

This commit is contained in:
Gregoire Parant 2020-12-15 16:03:59 +01:00
parent 22eb941084
commit 403400b170

View File

@ -55,11 +55,11 @@
<script src="bundle.js"></script> <script src="bundle.js"></script>
<script> <script>
function startDemo() { function startDemo() {
let playUrl = window.location.protocol + "//play."+window.location.host+"/_/global/gparant.github.io/tcm-client/Demo/demo-v1.json"; let playUrl = window.location.protocol + "//play."+window.location.host+'/_/global/gparant.github.io/tcm-client/Demo/demo-v1.json';
window.open(playUrl, '_blank'); window.open(playUrl, '_blank');
} }
function startGame() { function startGame() {
let playUrl = window.location.protocol + "//play."+window.location.host; let playUrl = window.location.protocol + "//play."+window.location.host+'/_/global/npeguin.github.io/office-map/map.json';
window.open(playUrl, '_blank'); window.open(playUrl, '_blank');
} }
function startConsole() { function startConsole() {
@ -126,19 +126,19 @@
<a class="custom-link start" <a class="custom-link start"
style="padding-top: 4px;font-size: 18px;" style="padding-top: 4px;font-size: 18px;"
target="_BLANK" onclick="startConsole()" title="YOUR ADVENTURE!"> target="_BLANK" onclick="startConsole()" title="YOUR ADVENTURE!">
YOUR WORKADVENTURE! CREATE YOUR MAP
</a> </a>
</div> </div>
<div class="col col-lg-3"> <div class="col col-lg-3">
<a class="custom-link play" target="_BLANK" onclick="startDemo()" title="DEMO!"> <a class="custom-link play" target="_BLANK" onclick="startDemo()" title="DEMO!">
TRY DEMO! TUTORIAL
</a> </a>
</div> </div>
</div> </div>
<div style="min-height: 100px" class="row buttons-row justify-content-md-center pt-5"> <div style="min-height: 100px" 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 anonymous contribute" target="_BLANK" onclick="startGame()" title="FEEDBACK"> <a class="custom-link anonymous contribute" target="_BLANK" onclick="startGame()" title="FEEDBACK">
BE ANONYMOUS DEMO (Anonymous)
</a> </a>
</div> </div>
</div> </div>