added buttons
This commit is contained in:
@ -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") {
|
||||
|
@ -52,8 +52,8 @@
|
||||
<div class="box">
|
||||
<img src="../static/gameimages/iowavmichiganst.png" class="game-window-image">
|
||||
<div class="game-window-title">Iowa Vs. Michigan St</div><br>
|
||||
<button class="buy-or-bid" onclick="this.location.href='buy'">Buy $55<br> or Bid</button>
|
||||
<button class="buy-or-bid" onclick="this.location.href='sell'">Sell</button>
|
||||
<button class="buy-or-bid" onclick="location.href='buy'">Buy $55<br> or Bid</button>
|
||||
<button class="buy-or-bid" onclick="this.location.href='sell'">Sell</button><br>
|
||||
<marketData><a href="market">Market Data</a></marketData>
|
||||
|
||||
|
||||
@ -66,15 +66,15 @@
|
||||
<div class="box">
|
||||
<img src="../static/gameimages/iowavpurdue.png" class="game-window-image">
|
||||
<div class="game-window-title">Iowa Vs. Purdue</div>
|
||||
<button class="buy-or-bid" onclick="this.location.href='buy'">Buy $25<br>or Bid</button>
|
||||
<button class="buy-or-bid" onclick="this.location.href='sell'">Sell</button>
|
||||
<button class="buy-or-bid" onclick="location.href='buy'">Buy $25<br>or Bid</button>
|
||||
<button class="buy-or-bid" onclick="this.location.href='sell'">Sell</button><br><br>
|
||||
<marketData><a href="market">Market Data</a></marketData>
|
||||
</div>
|
||||
<div class="box">
|
||||
|
||||
<img src="../static/gameimages/iowavminnesota.png" class="game-window-image">
|
||||
<div class="game-window-title">Iowa Vs. Minnesota</div>
|
||||
<button class="buy-or-bid" onclick="this.location.href='buy'">Buy $45<br>or Bid</button>
|
||||
<button class="buy-or-bid" onclick="location.href='buy'">Buy $45<br>or Bid</button>
|
||||
<a href="sell?game=iowavminnesota" class="sell-home">Sell</a> <br><br>
|
||||
<marketData><a href="market">Market Data</a></marketData>
|
||||
|
||||
@ -82,7 +82,7 @@
|
||||
<div class="box">
|
||||
<img src="../static/gameimages/iowavrutgers.png" class="game-window-image">
|
||||
<div class="game-window-title">Iowa Vs Rutgers</div>
|
||||
<button class="buy-or-bid" onclick="check_sign_in('iowavrutgers')">Buy $20<br>or Bid</button>
|
||||
<button class="buy-or-bid" onclick="location.href='buy'">Buy $20<br>or Bid</button>
|
||||
<a href="sell?game=iowavrutgers" class="sell-home">Sell</a> <br><br>
|
||||
<marketData><a href="market">Market Data</a></marketData>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user