implement redirect after login

This commit is contained in:
bence committed 2023-04-16 17:48:12 +02:00
1 parent 54a4ee4d60
commit 3e4c24bbc1
6 files changed
+55 -32

No files matched your search

+1 -3
View File
@@ -69,7 +69,7 @@
printTimeForHuman: function (time) {
const minutes = Math.floor(time / 60);
const seconds = time % 60;
var time_str = '';
var time_str = '';
if (minutes == 1) {
time_str += '1 minute';
@@ -141,9 +141,7 @@
if (document.getElementById('challengeButton')) {
document.getElementById('challengeButton').onclick = function () {
MapGuesser.showModal('challenge');
document.getElementById('createNewChallengeButton').href = '/challenge/new/' + this.dataset.mapId;
document.getElementById('playMode').style.visibility = 'hidden';
var timeLimit = document.getElementById('timeLimit').value;
document.getElementById('timeLimitLabel').innerText = 'Time limit of ' + Util.printTimeForHuman(timeLimit);
};