2 ème essaie
continuous-integration/drone/push Build is passing Details

ServeurDeTest
Noé GARNIER 2 years ago
parent 3aa57e274a
commit 79e4f50847

@ -59,7 +59,7 @@
<div class="row"> <div class="row">
<div class="d-flex justify-content-center ltext-center" style="cursor: pointer; height: 20%"> <div class="d-flex justify-content-center ltext-center" style="cursor: pointer; height: 20%">
<div class="m-3"> <div class="m-3">
<a class="btn" href="#" onclick="waiting()"> <a class="btn" href="index.php?action=addToQueue" onclick="waiting()">
<span>LANCER</span> <span>LANCER</span>
</a> </a>
</div> </div>
@ -69,13 +69,6 @@
</a> </a>
</div> </div>
</div> </div>
<!-- <div class="row pt-5 text-center" style="cursor: pointer; height: 20%">
<div class="col">
<a class="btn" href="index.php?action=goToHome" onclick="displayWaiting()">
<span>RETOUR</span>
</a>
</div>
</div> -->
</div> </div>
</div> </div>
@ -84,8 +77,8 @@
</body> </body>
<script> <script>
function displayWaiting(){ function displayWaiting(){
document.getElementById("waiting").innerHTML = "Waiting for Coders..."; document.getElementById("waiting").innerHTML = "Waiting for Coders...";
document.getElementsByClassName("btn").style.display = "none" document.getElementsByClassName("btn").style.display = "none"
} }
function checkIsReady() { function checkIsReady() {
@ -95,7 +88,7 @@
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onload = function () { xhr.onload = function () {
if (xhr.responseText == "1") { if (xhr.responseText == "1") {
window.location.href = 'http://82.165.180.114/Scripted/WEB/index.php?action=goToGame&idPartie="' + <?php echo $idPartie ?> + '"&index=1"' window.location.href = 'http://82.165.180.114/Scripted/WEB/index.php?action=goToGame&idPartie="' + <?php echo $_SESSION['idPartie'] ?> + '"&index=1"'
} }
}; };
xhr.send(null); xhr.send(null);

Loading…
Cancel
Save