From e38534f89c3fb10f77bee3efbfb6663847904619 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Wed, 29 Jun 2016 11:46:10 +0200 Subject: [PATCH] try to draw 1000*1000 svg grig --- src/arenas/tron/js.js | 6 ++---- src/arenas/tron/public.php | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/arenas/tron/js.js b/src/arenas/tron/js.js index d691dac..349dcd5 100644 --- a/src/arenas/tron/js.js +++ b/src/arenas/tron/js.js @@ -9,14 +9,12 @@ function createElem(type,attributes){ function tron(bot1,bot2,xdcheck){ //empty - while (document.getElementById('fightResult').firstChild) { - document.getElementById('fightResult').removeChild(document.getElementById('fightResult').firstChild); - } + var mapImg = createElem('svg',{'alt' : 'map','width':'200','height':'200'}); // "circle" may be any tag name mapImg.innerHTML = ''; - document.getElementById('fightResult').appendChild(mapImg); + document.getElementById('mainArticle').appendChild(mapImg); } diff --git a/src/arenas/tron/public.php b/src/arenas/tron/public.php index 31beac5..b50ddb6 100644 --- a/src/arenas/tron/public.php +++ b/src/arenas/tron/public.php @@ -13,7 +13,7 @@ require_once(__DIR__."/functions.php"); $bots=get_Bots_Array('tron'); ?> -
+

-
+
\ No newline at end of file