show confirmation popup
This commit is contained in:
parent
94c2231a57
commit
7e8b27b49d
3 changed files with 18 additions and 11 deletions
|
|
@ -62,7 +62,7 @@
|
|||
justify-content: space-evenly;
|
||||
align-items: center;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -200px);
|
||||
transform: translate(-50%, -500px);
|
||||
transition:
|
||||
transform 2s ease-in-out;
|
||||
}
|
||||
|
|
@ -218,7 +218,7 @@ h1 {
|
|||
padding: 0 10%;
|
||||
}
|
||||
|
||||
.invite-card-content * {
|
||||
.invite-card-content > * {
|
||||
margin: 1vh auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,15 @@ window.onload = function () {
|
|||
}
|
||||
};
|
||||
|
||||
const signUpConfirmation = document.querySelector('#sign-up-success');
|
||||
|
||||
function showConfirmationAndRedirect() {
|
||||
signUpConfirmation.classList.add('revealed');
|
||||
setTimeout(() => {
|
||||
window.location.href = '/createProfile';
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
async function acceptInvite() {
|
||||
let challengeResponse;
|
||||
try {
|
||||
|
|
@ -60,9 +69,6 @@ async function acceptInvite() {
|
|||
}
|
||||
|
||||
if (verifyResponse.ok) {
|
||||
document.querySelector('#sign-up-success').style.display = 'block';
|
||||
setTimeout(() => {
|
||||
window.location.href = '/createProfile';
|
||||
}, 1000);
|
||||
showConfirmationAndRedirect();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue