diff --git a/src/arenas/Battleship/js.js b/src/arenas/Battleship/js.js index 05a6260..a3f314d 100644 --- a/src/arenas/Battleship/js.js +++ b/src/arenas/Battleship/js.js @@ -36,7 +36,7 @@ function fight(xd_check){ var p=createElem("p"); p.innerHTML=strike['log']; document.getElementById('logs').appendChild(p); - + document.getElementById("logs").scrollTop=document.getElementById("logs").scrollHeight; if( strike['continue'] == 1){ fight(xd_check); } diff --git a/src/arenas/Battleship/style.css b/src/arenas/Battleship/style.css index 86eef23..15e9060 100644 --- a/src/arenas/Battleship/style.css +++ b/src/arenas/Battleship/style.css @@ -3,7 +3,7 @@ article p label {float:left; text-align:right; width:60%} article p select {} td{min-width: 15px; height: 15px;} #fightResult{display:table;} -#logs{display:block;padding-left:10px; height: 300px; overflow-y: scroll;} +#logs{display:block;padding-left:10px; height: 200px; overflow-y: scroll;} .battleshipGrid{display:table-cell; padding-left:10px; border-collapse:collapse; margin: 20px 20px 20px 20px;} .nofloat{float: none;} .battleshipGrid tr{}