handshake/js/flash_message.js

17 lines
433 B
JavaScript

(function() {
const flashmessagecontainer = document.querySelector('.flashmessage-container')
const closeFlashMessage = document.querySelector('.close-flash-message')
if (closeFlashMessage) {
closeFlashMessage.addEventListener('click', function(){
flashmessagecontainer.style.display = 'none'
})
}
if (flashmessagecontainer) {
setTimeout(function(){
flashmessagecontainer.style.display = 'none'
}, 8200)
}
}())