mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-06-15 18:54:47 -04:00
wip
This commit is contained in:
parent
94ffb80f49
commit
258d578ad3
22 changed files with 385 additions and 26 deletions
|
@ -2,8 +2,8 @@ let div = document.createElement("div");
|
|||
div.classList = "hidden toast";
|
||||
document.body.appendChild(div);
|
||||
let timeout: NodeJS.Timeout | undefined;
|
||||
export function toast(html: string) {
|
||||
div.classList = "toast visible";
|
||||
export function toast(html: string, className = "") {
|
||||
div.classList = "toast visible " + className;
|
||||
div.innerHTML = html;
|
||||
if (timeout) {
|
||||
clearTimeout(timeout);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue