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'); ?> - + @@ -34,5 +34,5 @@ $bots=get_Bots_Array('tron'); view the full logs - + \ No newline at end of file
@@ -34,5 +34,5 @@ $bots=get_Bots_Array('tron');
view the full logs