strikes
This commit is contained in:
parent
273a493520
commit
5c9c007d4a
|
@ -29,9 +29,10 @@ function fight(xd_check){
|
|||
document.getElementById('logs').innerHTML = 'erreur' +xhr.responseText;
|
||||
return;
|
||||
}
|
||||
if( strike['target'] <> ''){
|
||||
var coords = strike['target'].split(",");
|
||||
document.getElementById( 'bot' + strike['opponent'] + '-' + coords[1] + '-' + coords[0]).innerHTML = "X";
|
||||
|
||||
}
|
||||
var p=createElem("p");
|
||||
p.innerHTML=strike['log'];
|
||||
document.getElementById('logs').appendChild(p);
|
||||
|
|
Loading…
Reference in New Issue
Block a user