new game stuff, analytics

This commit is contained in:
sky
2026-02-07 14:45:30 -05:00
parent 49e542b3e9
commit 71f377ac18
20 changed files with 144 additions and 562 deletions

View File

@ -7,7 +7,7 @@
<!-- initialize externals -->
<!-- initialize my stuff -->
<script src="/js/all.min.js"></script>
<script src="/js/all.min.js" async></script>
<script src="/js/main.js"></script>
<script src="https://js.hcaptcha.com/1/api.js" async defer></script>
@ -41,11 +41,11 @@
})
).json();
if (data.success == true) {
console.log("Token: ", data.token);
// console.log("Token: ", data.token);
document.cookie = `token=${data.token}; expires=${new Date(new Date().setMonth(new Date().getMonth() + 6)).toUTCString()}; path=/;`;
location.href = "/u/";
} else {
console.log("Error: ", data.reason);
// console.log("Error: ", data.reason);
document.getElementById("title").innerText = "Failed to login";
document.getElementById("reason").innerText = data.reason;
document.getElementById("popup").style.display = "flex";