bon ok, ça fait une heure que je lutte à cause de cet oubli
This commit is contained in:
parent
9f217eeeb1
commit
e32760329a
|
@ -23,6 +23,7 @@ function connectFour(bot1,bot2,xd_check, newGame){
|
||||||
newGame = true;
|
newGame = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (newGame){
|
||||||
//empty
|
//empty
|
||||||
while (document.getElementById('fightResult').firstChild) {
|
while (document.getElementById('fightResult').firstChild) {
|
||||||
document.getElementById('fightResult').removeChild(document.getElementById('fightResult').firstChild);
|
document.getElementById('fightResult').removeChild(document.getElementById('fightResult').firstChild);
|
||||||
|
@ -40,7 +41,7 @@ function connectFour(bot1,bot2,xd_check, newGame){
|
||||||
table.appendChild(tr);
|
table.appendChild(tr);
|
||||||
}
|
}
|
||||||
document.getElementById('fightResult').appendChild(table);
|
document.getElementById('fightResult').appendChild(table);
|
||||||
|
}
|
||||||
var xhr = Ajx();
|
var xhr = Ajx();
|
||||||
xhr.onreadystatechange = function(){if(xhr.readyState == 4){
|
xhr.onreadystatechange = function(){if(xhr.readyState == 4){
|
||||||
if(xhr.status == 200) {
|
if(xhr.status == 200) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user