new game stuff, analytics
This commit is contained in:
@ -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";
|
||||
|
||||
Reference in New Issue
Block a user