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