Validation work

This commit is contained in:
Dominic Ferrando
2025-04-22 20:25:26 -04:00
parent 024280e96d
commit 0c657ae1c5
8 changed files with 225 additions and 134 deletions
+1 -2
View File
@@ -132,8 +132,7 @@ body {
margin: auto;
}
#newPostForm button,
#newThreadForm button {
#newPostForm button {
display: block;
margin-left: auto;
}
+5
View File
@@ -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);
}