Spaces:
Sleeping
Sleeping
File size: 740 Bytes
e511669 f2a701f e511669 f2a701f e511669 f2a701f e511669 f2a701f e511669 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
hide_code = """
() => {
const confirmationMessage = document.getElementById('confirmation-message');
const feedbackWarning = document.getElementById('feedback-warning');
confirmationMessage.style.display = 'block';
confirmationMessage.style.opacity = 1;
feedbackWarning.style.display = 'none';
setTimeout(() => {
confirmationMessage.style.transition = 'opacity 5s';
confirmationMessage.style.opacity = 0;
}, 1000);
setTimeout(() => {
confirmationMessage.style.display = 'none';
feedbackWarning.style.display = 'block';
}, 6200); // 2000ms for transition
}
"""
# Add CSS for the fade-out effect
hide_css = """
<style>
#confirmation-message {
opacity: 1;
}
</style>
""" |