3 ème essaie
continuous-integration/drone/push Build is failing Details

ServeurDeTest
Noé GARNIER 2 years ago
parent c5f3f12e46
commit da577ecde6

@ -3,20 +3,8 @@ window.onload = function () {
xhr.open('POST', 'http://82.165.180.114/Scripted/index.php?action=getPlayersPseudo', true); xhr.open('POST', 'http://82.165.180.114/Scripted/index.php?action=getPlayersPseudo', 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 () { var players = xhr.onload = function () {
var players = JSON.parse(xhr.responseText); return JSON.parse(xhr.responseText);
// if (players[0] != null) {
// var player1 = players[0];
// }
// if (players[1] != null) {
// var player2 = players[1];
// }
// if (players[2] != null) {
// var player3 = players[2];
// }
// if (players[3] != null) {
// var player4 = players[3];
// }
}; };
xhr.send(null); xhr.send(null);
data = []; data = [];

Loading…
Cancel
Save