body.append(k, v)); fetch('/api/contact', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: body, }) .then(r => { if (!r.ok) throw new Error(r.status); sent = true; $el.reset(); }) .catch(() => { error = true; }) .finally(() => { sending = false; }) "> Website (leave blank)