breakout71/src/toast.ts

8 lines
215 B
TypeScript
Raw Normal View History

2025-04-08 10:36:30 +02:00
export function toast(html){
const div =document.createElement('div')
div.classList='toast'
div.innerHTML=html
document.body.appendChild(div)
// TOast
// setTimeout(()=>div.remove() , 500 )
}