try to draw 1000*1000 svg grig
This commit is contained in:
parent
f34ce07226
commit
0577612b2d
|
@ -8,10 +8,7 @@ function createElem(type,attributes){
|
||||||
|
|
||||||
|
|
||||||
function tron(bot1,bot2,xdcheck){
|
function tron(bot1,bot2,xdcheck){
|
||||||
//empty
|
var mapImg = createElem('svg',{'alt' : 'map','width':'200px','height':'200px','xmlns':'http://www.w3.org/2000/svg'});
|
||||||
|
|
||||||
|
|
||||||
var mapImg = createElem('svg',{'alt' : 'map','width':'200','height':'200'});
|
|
||||||
// "circle" may be any tag name
|
// "circle" may be any tag name
|
||||||
mapImg.innerHTML = ' <rect id="rect1" x="10" y="10" width="50" height="80" style="stroke:#000000; fill:none;"/>';
|
mapImg.innerHTML = ' <rect id="rect1" x="10" y="10" width="50" height="80" style="stroke:#000000; fill:none;"/>';
|
||||||
document.getElementById('mainArticle').appendChild(mapImg);
|
document.getElementById('mainArticle').appendChild(mapImg);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user