|
|
@ -4,6 +4,7 @@
|
|
|
|
xhr.responseType = 'text';
|
|
|
|
xhr.responseType = 'text';
|
|
|
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
|
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
|
|
var playersPseudo = xhr.onload = function () {
|
|
|
|
var playersPseudo = xhr.onload = function () {
|
|
|
|
|
|
|
|
console.log(xhr.responseText);
|
|
|
|
return JSON.parse(xhr.responseText);
|
|
|
|
return JSON.parse(xhr.responseText);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
xhr.send(null);
|
|
|
|
xhr.send(null);
|
|
|
@ -20,7 +21,8 @@
|
|
|
|
xhr.responseType = 'text';
|
|
|
|
xhr.responseType = 'text';
|
|
|
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
|
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
|
|
var score = xhr.onload = function () {
|
|
|
|
var score = xhr.onload = function () {
|
|
|
|
return JSON.parse(xhr.responseText);
|
|
|
|
console.log(xhr.responseText);
|
|
|
|
|
|
|
|
return JSON.parse(xhr.responseText);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
xhr.send(null);
|
|
|
|
xhr.send(null);
|
|
|
|
for (i = 0; i < score.length; i++) {
|
|
|
|
for (i = 0; i < score.length; i++) {
|
|
|
@ -39,7 +41,7 @@
|
|
|
|
xhr.responseType = 'text';
|
|
|
|
xhr.responseType = 'text';
|
|
|
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
|
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
|
|
var score = xhr.onload = function () {
|
|
|
|
var score = xhr.onload = function () {
|
|
|
|
return JSON.parse(xhr.responseText);
|
|
|
|
return JSON.parse(xhr.responseText);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
xhr.send(null);
|
|
|
|
xhr.send(null);
|
|
|
|
for (i = 0; i < score.length; i++) {
|
|
|
|
for (i = 0; i < score.length; i++) {
|
|
|
@ -58,7 +60,7 @@
|
|
|
|
xhr.responseType = 'text';
|
|
|
|
xhr.responseType = 'text';
|
|
|
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
|
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
|
|
var score = xhr.onload = function () {
|
|
|
|
var score = xhr.onload = function () {
|
|
|
|
return JSON.parse(xhr.responseText);
|
|
|
|
return JSON.parse(xhr.responseText);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
xhr.send(null);
|
|
|
|
xhr.send(null);
|
|
|
|
for (i = 0; i < score.length; i++) {
|
|
|
|
for (i = 0; i < score.length; i++) {
|
|
|
@ -77,7 +79,7 @@
|
|
|
|
xhr.responseType = 'text';
|
|
|
|
xhr.responseType = 'text';
|
|
|
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
|
|
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
|
|
var score = xhr.onload = function () {
|
|
|
|
var score = xhr.onload = function () {
|
|
|
|
return JSON.parse(xhr.responseText);
|
|
|
|
return JSON.parse(xhr.responseText);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
xhr.send(null);
|
|
|
|
xhr.send(null);
|
|
|
|
for (i = 0; i < score.length; i++) {
|
|
|
|
for (i = 0; i < score.length; i++) {
|
|
|
|