Added django templates and dynamic pages

This commit is contained in:
Allen
2023-09-23 23:02:36 -05:00
parent 2834da98c1
commit 3916475c54
24 changed files with 1696 additions and 1 deletions

15
frontend/static/script.js Normal file
View File

@ -0,0 +1,15 @@
let USER_SIGNED_IN = false;
function check_sign_in(game) {
const is_user_signed_in = localStorage.getItem("USER_SIGNED_IN");
if (is_user_signed_in !== null && is_user_signed_in === 'true') {
window.location.href = "./buy.html?game=" + game;
} else {
window.location.href = "./signin.html";
}
}
function set_user_signed_in() {
localStorage.setItem('USER_SIGNED_IN', true);
}