test
continuous-integration/drone/push Build is passing Details

ServeurDeTest
Noé GARNIER 2 years ago
parent 9bf6f40aa5
commit 7e4d60917e

@ -63,14 +63,16 @@
</body> </body>
<script> <script>
function checkIsReady() { function checkIsReady() {
console.log("checkIsReady");
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open('POST', 'http://82.165.180.114/Scripted/WEB/index.php?action=waiting', true); xhr.open('POST', 'http://82.165.180.114/Scripted/WEB/index.php?action=waiting', true);
xhr.responseType = 'text'; xhr.responseType = 'text';
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") { console.log(xhr.responseText);
window.location.href = 'http://82.165.180.114/Scripted/WEB/index.php?action=goToGame&idPartie="' + <?php echo $_SESSION['idPartie'] ?> + '"&index=1"' if (xhr.responseText == "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);
} }

@ -62,7 +62,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="index.php?action=addToQueu"> <a class="btn" href="index.php?action=addToQueue">
<span>LANCER</span> <span>LANCER</span>
</a> </a>
</div> </div>

Loading…
Cancel
Save