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

ServeurDeTest
Noé GARNIER 2 years ago
parent 8c66e453dd
commit 4294b5b021

@ -35,13 +35,13 @@
function checkIsEnd() {
console.log("checkIsEnd");
var xhr = new XMLHttpRequest();
xhr.open('POST', 'http://82.165.180.114/Scripted/WEB/index.php?action=endGame', true);
xhr.open('POST', 'http://82.165.180.114/Scripted/WEB/index.php?action=getGameEtat', true);
xhr.responseType = 'text';
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onload = function () {
console.log(xhr.responseText);
if (xhr.responseText == "2") {
window.location.href = 'http://82.165.180.114/Scripted/WEB/index.php?action=getGameEtat'
window.location.href = 'http://82.165.180.114/Scripted/WEB/index.php?action=endGame'
}
};
xhr.send(null);

Loading…
Cancel
Save