try to draw 1000*1000 svg grig

This commit is contained in:
Gnieark 2016-06-29 13:51:05 +02:00
parent a532b3468f
commit 3c9b76835f

View File

@ -12,7 +12,7 @@ function createElemNS(type,attributes){
return elem;
}
function applyInitMessage(){
function applyInitMessage(request){
if(request.readyState == 4){
if(request.status == 200) {
alert ("ok");
@ -37,7 +37,7 @@ function tron(bot1,bot2,xdcheck){
document.getElementById("fightResult").appendChild(svg);
//ask arena to send bots init messages
var request = new XMLHttpRequest();
var request = new XMLHttpRequest(request);
request.onreadystatechange = applyInitMessage;
request.open("POST", '/tron', true);
request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");