gw/public/standard.js
2024-12-25 15:02:06 +01:00

16 lines
502 B
JavaScript

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>`
}
}