location while error
All checks were successful
Build Docker / deploy (push) Successful in 43s
Build Docker / build (push) Successful in 1m8s

This commit is contained in:
2026-05-10 18:27:40 +03:00
parent 289194d5d8
commit 283ffff080

View File

@@ -49,6 +49,7 @@ document.addEventListener("DOMContentLoaded", () => {
} catch (err) {
console.error(err);
window.location.href = '#answer';
showErrors(JSON.parse(err.message));
}
});
@@ -68,13 +69,12 @@ const fieldMap = {
errorElem.className = 'formError';
errorElem.style.cssText = `
color: red;
margin-top: 10px;
margin-bottom: 10px;
font-size: medium;
line-height: 100%;
transition: 3s;
text-decoration: underline;
font-weight: bold;
font-family: Arial, sans-serif;
`;
el.after(errorElem);
});