try to draw 1000*1000 svg grig

This commit is contained in:
Gnieark 2016-06-29 12:56:59 +02:00
parent 64f9faf277
commit b844b80af1

View File

@ -18,7 +18,7 @@ function tron(bot1,bot2,xdcheck){
document.getElementById('fightResult').removeChild(document.getElementById('fightResult').firstChild); document.getElementById('fightResult').removeChild(document.getElementById('fightResult').firstChild);
} }
// draw border; // draw border;
var svg = createElem('svg',{'id':'map','width':'1000','height':'1000'}); var svg = createElementNS('svg',{'id':'map','width':'1000','height':'1000'});
var rect=createElemNS('rect',{'x':'0','y':'0','width':'1000','height':'1000','style':'stroke:#000000; fill:none;'}); var rect=createElemNS('rect',{'x':'0','y':'0','width':'1000','height':'1000','style':'stroke:#000000; fill:none;'});
svg.appendChild(rect); svg.appendChild(rect);