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