diff --git a/public/static/css/game.css b/public/static/css/game.css index 9c0556e..8df1352 100644 --- a/public/static/css/game.css +++ b/public/static/css/game.css @@ -201,7 +201,7 @@ width: 100%; } #navigation { - bottom: 30px; + bottom: 25px; left: 10px; width: 45px; } diff --git a/public/static/js/game.js b/public/static/js/game.js index 09b47d2..a21a66c 100644 --- a/public/static/js/game.js +++ b/public/static/js/game.js @@ -379,6 +379,9 @@ document.getElementById('currentRound').innerHTML = String(Game.rounds.length) + '/' + String(Game.NUMBER_OF_ROUNDS); Game.loadPano(Game.panoId, Game.pov); + + // needs to be set visible after the show guess map hid it in mobile view + document.getElementById("navigation").style.visibility = 'visible'; }, handleErrorResponse: function (error) { @@ -938,4 +941,8 @@ } }); } + + document.getElementById('returnToStart').onclick = function () { + Game.loadPano(Game.panoId, Game.pov); + } })();