pop up moves
This commit is contained in:
parent
ab9d502945
commit
0b3fe23cd3
2 changed files with 17 additions and 1 deletions
|
|
@ -56,7 +56,13 @@
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
transform: translateX(-50%);
|
transform: translate(-50%, -200%);
|
||||||
|
transition: transform 1s ease-in-out;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.top-notification-good.revealed {
|
||||||
|
transform: translate(-50%, 0%);
|
||||||
}
|
}
|
||||||
.top-notification-good > * {
|
.top-notification-good > * {
|
||||||
margin: 0 20px;
|
margin: 0 20px;
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,8 @@ const bigNotesAcceptedCheckbox = document.getElementById(
|
||||||
|
|
||||||
const publishOfferButton = document.getElementById('button-submit-offer');
|
const publishOfferButton = document.getElementById('button-submit-offer');
|
||||||
|
|
||||||
|
const offerCreatedPopup = document.getElementById('offer-created-confirmation');
|
||||||
|
|
||||||
function toggleCreateOfferControls() {
|
function toggleCreateOfferControls() {
|
||||||
createOfferControls.style.display =
|
createOfferControls.style.display =
|
||||||
createOfferControls.style.display === 'block' ? 'none' : 'block';
|
createOfferControls.style.display === 'block' ? 'none' : 'block';
|
||||||
|
|
@ -154,6 +156,14 @@ async function publishOffer() {
|
||||||
},
|
},
|
||||||
body: JSON.stringify({ offerDetails }),
|
body: JSON.stringify({ offerDetails }),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
offerCreatedPopup.classList.add('revealed');
|
||||||
|
setTimeout(() => {
|
||||||
|
offerCreatedPopup.classList.remove('revealed');
|
||||||
|
}, 3000);
|
||||||
|
setTimeout(() => {
|
||||||
|
offerCreatedPopup.classList.remove('revealed');
|
||||||
|
}, 3000);
|
||||||
}
|
}
|
||||||
|
|
||||||
buttonStartCreateOffer.addEventListener('click', () => {
|
buttonStartCreateOffer.addEventListener('click', () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue