From 283ffff080b42894cc89348e5084250d978a3913 Mon Sep 17 00:00:00 2001 From: "MH.Dmitrii" Date: Sun, 10 May 2026 18:27:40 +0300 Subject: [PATCH] location while error --- server/frontend/main/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/frontend/main/api.js b/server/frontend/main/api.js index 0250c87..8f896e6 100644 --- a/server/frontend/main/api.js +++ b/server/frontend/main/api.js @@ -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); });