added buttons

This commit is contained in:
Liam Stamper
2023-09-24 13:58:27 -05:00
parent edc3417eb2
commit f4c57c7cdd
2 changed files with 15 additions and 7 deletions

View File

@ -2,6 +2,13 @@
<html lang="en">
{% if session %}
{% else %}
<script>window.onload = function() { window.location.href="login"}</script>
{% endif %}
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@ -38,7 +45,8 @@
<script>
const game = new URLSearchParams(window.location.search).get("game");
console.log(game);
const game_title = document.getElementById("buy-game-title");
const game_title = document.getElementById("game-window-title");
if (game === "iowavmichiganst") {
game_title.textContent = "Iowa vs Michigan State"
} else if (game === "iowavrutgers") {