fix error logon page
Some checks failed
Build Docker / deploy (push) Has been cancelled
Build Docker / build (push) Has been cancelled

This commit is contained in:
2026-05-11 17:44:08 +03:00
parent 796b3158a8
commit 945e137753

View File

@@ -34,7 +34,7 @@ document.addEventListener('DOMContentLoaded', () => {
} }
} }
} catch (err) { } catch (err) {
showError(['Connection error: ' + err.message]); showError(['Connection error :(']);
} }
}); });
}); });
@@ -46,12 +46,12 @@ function showError(messages) {
errorElem.id = 'formError'; errorElem.id = 'formError';
errorElem.style.cssText = ` errorElem.style.cssText = `
color: red; color: red;
margin-top: 20px; font-size: medium;
margin-bottom: 20px; line-height: 100%;
font-size: 14px;
font-weight: 100;
line-height: 120%;
transition: 3s; transition: 3s;
text-decoration: underline;
font-weight: bold;
font-family: Arial, sans-serif;
`; `;
document.getElementById('loginForm').insertAdjacentElement('afterend', errorElem); document.getElementById('loginForm').insertAdjacentElement('afterend', errorElem);
} }