16 lines
502 B
JavaScript
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>`
|
|
}
|
|
}
|
|
|