Spaces:
Running
Running
BraydenMoore
commited on
Commit
•
24c0fdf
1
Parent(s):
31a4695
Update styling
Browse files- Templates/index.html +7 -7
Templates/index.html
CHANGED
@@ -318,11 +318,11 @@
|
|
318 |
<table id="gameTable">
|
319 |
<tr>
|
320 |
<th>Date</th>
|
321 |
-
<th>Away
|
322 |
-
<th>Home
|
323 |
-
<th>
|
324 |
-
<th>
|
325 |
-
<th>Predicted
|
326 |
</tr>
|
327 |
</table>
|
328 |
</div>
|
@@ -376,7 +376,7 @@
|
|
376 |
const response = await fetch('/get_games');
|
377 |
const pulled_games = await response.json();
|
378 |
const table = document.getElementById('gameTable');
|
379 |
-
const columns = ['Date','Away
|
380 |
const lines_response = await fetch('/get_lines');
|
381 |
const lines = await lines_response.json()
|
382 |
|
@@ -385,7 +385,7 @@
|
|
385 |
|
386 |
columns.forEach((column) => {
|
387 |
const cell = row.insertCell(-1);
|
388 |
-
if (column === 'Away
|
389 |
const img = document.createElement('img');
|
390 |
img.src = `/Static/${game[column]}.webp`;
|
391 |
img.alt = game[column];
|
|
|
318 |
<table id="gameTable">
|
319 |
<tr>
|
320 |
<th>Date</th>
|
321 |
+
<th>Away</th>
|
322 |
+
<th>Home</th>
|
323 |
+
<th>O/U Line</th>
|
324 |
+
<th>Winner</th>
|
325 |
+
<th>Predicted O/U</th>
|
326 |
</tr>
|
327 |
</table>
|
328 |
</div>
|
|
|
376 |
const response = await fetch('/get_games');
|
377 |
const pulled_games = await response.json();
|
378 |
const table = document.getElementById('gameTable');
|
379 |
+
const columns = ['Date','Away', 'Home'];
|
380 |
const lines_response = await fetch('/get_lines');
|
381 |
const lines = await lines_response.json()
|
382 |
|
|
|
385 |
|
386 |
columns.forEach((column) => {
|
387 |
const cell = row.insertCell(-1);
|
388 |
+
if (column === 'Away' || column === 'Home') {
|
389 |
const img = document.createElement('img');
|
390 |
img.src = `/Static/${game[column]}.webp`;
|
391 |
img.alt = game[column];
|