fix error logon page
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user