All checks were successful
Build and Push Docker Image / docker (push) Successful in 9s
16 lines
348 B
JavaScript
16 lines
348 B
JavaScript
// Shared small utilities
|
|
|
|
export function showToast(msg) {
|
|
const el = document.getElementById('toast');
|
|
if (!el) return;
|
|
el.textContent = msg;
|
|
el.style.opacity = '1';
|
|
setTimeout(() => {
|
|
el.style.opacity = '0';
|
|
}, 1200);
|
|
}
|
|
|
|
export function wire(el, type, handler, options) {
|
|
if (el) el.addEventListener(type, handler, options);
|
|
}
|