add registration

This commit is contained in:
KingKDot
2026-04-19 18:24:50 -05:00
parent 86c1897406
commit d12dc04709
15 changed files with 1735 additions and 5 deletions
+11
View File
@@ -3,6 +3,17 @@ const user = document.getElementById("user");
const pass = document.getElementById("pass");
const errEl = document.getElementById("error");
(async () => {
try {
const res = await fetch("/api/registration/status");
const data = await res.json();
if (data.enabled) {
const el = document.getElementById("register-link");
if (el) el.style.display = "";
}
} catch {}
})();
if (typeof anime !== "undefined") {
const particles = document.querySelectorAll(".particle");
particles.forEach((particle, i) => {