Speichern Banner ausblenden
This commit is contained in:
parent
bac63bbde9
commit
2356e5f2f8
|
@ -104,3 +104,15 @@
|
|||
<% session.message[2] = 'none' %>
|
||||
<% } %>
|
||||
<% } %>
|
||||
|
||||
<script>
|
||||
setTimeout(() => {
|
||||
const alerts = document.querySelectorAll('.alert');
|
||||
alerts.forEach(alert => {
|
||||
alert.style.transition = 'opacity 0.5s';
|
||||
alert.style.opacity = '0';
|
||||
setTimeout(() => alert.remove(), 500);
|
||||
});
|
||||
}, 3000)
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue