Validation work
This commit is contained in:
@@ -132,8 +132,7 @@ body {
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#newPostForm button,
|
||||
#newThreadForm button {
|
||||
#newPostForm button {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
@@ -13,6 +13,11 @@ function isOffScreen(el) {
|
||||
);
|
||||
}
|
||||
|
||||
function isHttpWarningStatus(code) {
|
||||
const warningStatuses = [429, 400, 413];
|
||||
return warningStatuses.includes(code);
|
||||
}
|
||||
|
||||
function insertAfter(referenceNode, newNode) {
|
||||
referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user