Spaces:
Runtime error
Runtime error
Commit
·
5fcb670
1
Parent(s):
24c0fdf
Update styling
Browse files- Templates/index.html +3 -3
Templates/index.html
CHANGED
|
@@ -320,7 +320,7 @@
|
|
| 320 |
<th>Date</th>
|
| 321 |
<th>Away</th>
|
| 322 |
<th>Home</th>
|
| 323 |
-
<th>O/U
|
| 324 |
<th>Winner</th>
|
| 325 |
<th>Predicted O/U</th>
|
| 326 |
</tr>
|
|
@@ -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', 'Home'];
|
| 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' || column === 'Home') {
|
| 389 |
const img = document.createElement('img');
|
| 390 |
img.src = `/Static/${game[column]}.webp`;
|
| 391 |
img.alt = game[column];
|
|
|
|
| 320 |
<th>Date</th>
|
| 321 |
<th>Away</th>
|
| 322 |
<th>Home</th>
|
| 323 |
+
<th>O/U</th>
|
| 324 |
<th>Winner</th>
|
| 325 |
<th>Predicted O/U</th>
|
| 326 |
</tr>
|
|
|
|
| 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 Team', 'Home Team'];
|
| 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 Team' || column === 'Home Team') {
|
| 389 |
const img = document.createElement('img');
|
| 390 |
img.src = `/Static/${game[column]}.webp`;
|
| 391 |
img.alt = game[column];
|