From 4c628de03a8d345a3e786c406b61e81f73a3811e Mon Sep 17 00:00:00 2001
From: Gnieark
Date: Wed, 29 Jun 2016 12:09:02 +0200
Subject: [PATCH] try to draw 1000*1000 svg grig
---
src/arenas/tron/js.js | 10 ++++++----
src/arenas/tron/public.php | 6 +++---
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/src/arenas/tron/js.js b/src/arenas/tron/js.js
index dd03c32..11596b6 100644
--- a/src/arenas/tron/js.js
+++ b/src/arenas/tron/js.js
@@ -8,9 +8,11 @@ function createElem(type,attributes){
function tron(bot1,bot2,xdcheck){
- var mapImg = createElem('svg',{'version':'1.1','alt' : 'map','width':'200','height':'200','xmlns':'http://www.w3.org/2000/svg','viewBox':'0 0 20 20'});
- // "circle" may be any tag name
- mapImg.innerHTML = ' ';
- document.getElementById('mainArticle').appendChild(mapImg);
+
+ var mapImg = document.getElementById("map");
+
+ var rect=createElem('rect',{'x':'10','y':'10','width':'50','height':'80','style':'stroke:#000000; fill:none;'});
+
+ mapImg.appendChild(rect);
}
diff --git a/src/arenas/tron/public.php b/src/arenas/tron/public.php
index 02ea46c..1ceb7ca 100644
--- a/src/arenas/tron/public.php
+++ b/src/arenas/tron/public.php
@@ -34,7 +34,7 @@ $bots=get_Bots_Array('tron');
-
+
\ No newline at end of file