mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-29 08:19:13 -04:00
wip
This commit is contained in:
parent
4d7d57f17f
commit
b3949d8c41
11 changed files with 139 additions and 79 deletions
|
@ -2,7 +2,7 @@ let div = document.createElement("div");
|
|||
div.classList = "hidden toast";
|
||||
document.body.appendChild(div);
|
||||
let timeout: NodeJS.Timeout | undefined;
|
||||
export function toast(html) {
|
||||
export function toast(html: string) {
|
||||
div.classList = "toast visible";
|
||||
div.innerHTML = html;
|
||||
if (timeout) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue