change tables id

This commit is contained in:
Gnieark 2015-12-15 12:41:49 +01:00
parent ac590f6314
commit 9029fa6840
2 changed files with 6 additions and 3 deletions

View File

@ -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;

View File

@ -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;}