Spaces:
Running
Running
BraydenMoore
commited on
Commit
·
3bd66b1
1
Parent(s):
9075eb0
Update Templates/index.html
Browse files- Templates/index.html +2 -2
Templates/index.html
CHANGED
@@ -300,7 +300,7 @@
|
|
300 |
game.AwayTeam = cells[1].querySelector('img').alt;
|
301 |
game.HomeTeam = cells[2].querySelector('img').alt;
|
302 |
game.OverUnderLine = cells[3].querySelector('input').value;
|
303 |
-
|
304 |
games.push(game);
|
305 |
});
|
306 |
|
@@ -318,7 +318,7 @@
|
|
318 |
const rows = table.querySelectorAll('tr');
|
319 |
|
320 |
data.moneylines.forEach((moneyline, index) => {
|
321 |
-
const row = rows[index + 1];
|
322 |
|
323 |
const winnerCell = row.cells[row.cells.length - 2];
|
324 |
winnerCell.innerHTML = '';
|
|
|
300 |
game.AwayTeam = cells[1].querySelector('img').alt;
|
301 |
game.HomeTeam = cells[2].querySelector('img').alt;
|
302 |
game.OverUnderLine = cells[3].querySelector('input').value;
|
303 |
+
game.rowIndex = index - 1;
|
304 |
games.push(game);
|
305 |
});
|
306 |
|
|
|
318 |
const rows = table.querySelectorAll('tr');
|
319 |
|
320 |
data.moneylines.forEach((moneyline, index) => {
|
321 |
+
const row = rows[data.moneylines[index].rowIndex + 1];
|
322 |
|
323 |
const winnerCell = row.cells[row.cells.length - 2];
|
324 |
winnerCell.innerHTML = '';
|