i am making a website and have a little message of novelty made in Html5 and css3 soq I did a btn q closes it I want qnd reacrregue it gets closed

Asked

Viewed 16 times

-2

•News | Chat is now available...
const v1 = function () {
    const closed4 = document.getElementById('new_chat_alert').style.visibility = 'hidden'
    const closed0 =  document.getElementById('new_chat_alert').style.visibility = 'visible'
    localStorage.setItem('closed0', closed0)
localStorage.setItem('closed4', closed4)
if (localStorage.closed4) {
    document.getElementById('new_chat_alert').setAttribute('style', 'visibility: hidden;')
}
   }

document.getElementById('new_chat_alert').style.visibility = v1
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.