mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-29 08:19:13 -04:00
8 lines
215 B
TypeScript
8 lines
215 B
TypeScript
![]() |
export function toast(html){
|
||
|
const div =document.createElement('div')
|
||
|
div.classList='toast'
|
||
|
div.innerHTML=html
|
||
|
document.body.appendChild(div)
|
||
|
// TOast
|
||
|
// setTimeout(()=>div.remove() , 500 )
|
||
|
}
|