change tables id
This commit is contained in:
parent
ac590f6314
commit
9029fa6840
|
@ -65,11 +65,13 @@ function battleship(bot1,bot2,gridWidth,gridHeight,nbShip1,nbShip2,nbShip3,nbShi
|
||||||
//alert(xhr.responseText);
|
//alert(xhr.responseText);
|
||||||
try{
|
try{
|
||||||
var boats = JSON.parse(this.responseText);
|
var boats = JSON.parse(this.responseText);
|
||||||
//for
|
for( var player=1; player <= 2 ; player ++){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(e){
|
catch(e){
|
||||||
document.getElementById('logs').innerHTML = xhr.responseText;
|
document.getElementById('logs').innerHTML = xhr.responseText;
|
||||||
|
|
|
@ -6,3 +6,4 @@ td{min-width: 15px; height: 15px;}
|
||||||
.battleshipGrid tr{}
|
.battleshipGrid tr{}
|
||||||
.battleshipGrid tr td{border: 1px dashed green;}
|
.battleshipGrid tr td{border: 1px dashed green;}
|
||||||
.battleshipGrid tr th{text-align: center;}
|
.battleshipGrid tr th{text-align: center;}
|
||||||
|
.shipOn{background-color: black;}
|
Loading…
Reference in New Issue
Block a user