blob: b31d46188ca4f6ed0ef76beeb5c79889e7c63b71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
setInterval( () => {
Array.from(document.getElementsByClassName('kysAlert')).forEach( (a) => {
a.addEventListener('click', (event) => { event.target.remove() } )
if ( a.state == undefined ) a.state = 0
if (a.state == 4) {
a.style.transition = "opacity 1s"
a.style.opacity = 0
}
if (a.state == 5) a.remove()
a.state += 1
} )
}, 1000)
|