educational variant

This commit is contained in:
sky
2025-11-19 10:41:46 -05:00
parent 5045f30a4e
commit ef7c90840b
7 changed files with 455 additions and 0 deletions

View File

@ -50,6 +50,17 @@
}
}
}
function setRecat() {
let domain = prompt("domain");
if(domain) {
fetch("/api/recat", {
method: "POST",
body: JSON.stringify({domain: domain})
})
.then(data => data.text())
.then(data => alert(data));
}
}
</script>
</head>
<alerts> </alerts>
@ -57,6 +68,7 @@
<h1 class="title">admin page</h1>
<sections>
<button onclick="sendAnnouncement()">send announcement</button>
<button onclick="setRecat()">set a domain to recat</button>
</sections>
</body>
</html>