returns to start when clicked on home symbol
All checks were successful
default-pipeline default-pipeline #126

This commit is contained in:
Balázs Vigh 2021-04-28 18:26:46 +02:00
parent b9927f79fc
commit 5c8f3d6fb9
2 changed files with 8 additions and 1 deletions

View File

@ -201,7 +201,7 @@
width: 100%;
}
#navigation {
bottom: 30px;
bottom: 25px;
left: 10px;
width: 45px;
}

View File

@ -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);
}
})();