globalThis.addEventListener("DOMContentLoaded", () => { document.querySelectorAll("input.danger").forEach(el => { el.addEventListener("click", ev => { if (!confirm(`Really ${(el as HTMLInputElement).value}?`)) { ev.preventDefault() } }) }) })