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="d-flex justify-content-center ltext-center" style="cursor: pointer; height: 20%">
<div class="m-3">
<a class="btn" href="#" onclick="waiting()">
<a class="btn" href="index.php?action=addToQueue" onclick="waiting()">
<span>LANCER</span>
</a>
</div>
@ -69,13 +69,6 @@
</a>
</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>
@ -84,8 +77,8 @@
</body>
<script>
function displayWaiting(){
document.getElementById("waiting").innerHTML = "Waiting for Coders...";
document.getElementsByClassName("btn").style.display = "none"
document.getElementById("waiting").innerHTML = "Waiting for Coders...";
document.getElementsByClassName("btn").style.display = "none"
}
function checkIsReady() {
@ -95,7 +88,7 @@
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onload = function () {
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);

Loading…
Cancel
Save