gw/public/standard.js

17 lines
502 B
JavaScript
Raw Normal View History

2024-12-25 14:02:06 +00:00
async function entry() {
var request = await fetch("/entry", {
headers: {
referral: document.getElementById("referral-other").value
}
})
var body = await request.json();
document.getElementById("referral-key").innerText = body.referral;
document.getElementById("private-key").innerText = body.key;
if(body.err) {
document.getElementById("lelelelele").innerHTML = `<h1 style="font-weight:bold;color:red">Do not mess with me.</h1>`
}
}