Spaces:
Running
Running
Commit
Β·
974b3b2
1
Parent(s):
7777f3b
Formatting
Browse files- Templates/index.html +10 -4
Templates/index.html
CHANGED
@@ -229,6 +229,10 @@
|
|
229 |
100% { transform: translateX(-100%); }
|
230 |
}
|
231 |
|
|
|
|
|
|
|
|
|
232 |
</style>
|
233 |
|
234 |
<div class="scroll-banner">
|
@@ -386,13 +390,14 @@
|
|
386 |
|
387 |
const winnerEmojiDiv = document.createElement('div');
|
388 |
winnerEmojiDiv.className = 'emoji';
|
|
|
389 |
if (moneyline.Winner === moneyline.Result) {
|
390 |
winnerEmojiDiv.textContent = 'β
';
|
391 |
} else {
|
392 |
winnerEmojiDiv.textContent = 'β';
|
393 |
}
|
394 |
if (moneyline.Result === 'N/A') {
|
395 |
-
winnerEmojiDiv.textContent =
|
396 |
}
|
397 |
wrapperDiv.appendChild(winnerEmojiDiv);
|
398 |
|
@@ -403,7 +408,7 @@
|
|
403 |
const winnerOverlayDiv = document.createElement('div');
|
404 |
winnerOverlayDiv.className = 'overlay';
|
405 |
winnerOverlayDiv.textContent = `${(moneyline.Probabilities[0] * 100).toFixed(2)}%`;
|
406 |
-
wrapperDiv.appendChild(winnerOverlayDiv);
|
407 |
winnerCell.appendChild(wrapperDiv);
|
408 |
|
409 |
const overUnderCell = row.cells[row.cells.length - 1];
|
@@ -427,13 +432,14 @@
|
|
427 |
|
428 |
const overEmojiDiv = document.createElement('div');
|
429 |
overEmojiDiv.className = 'emoji';
|
|
|
430 |
if (data.over_unders[index]['Over/Under'] === data.over_unders[index]['Result']) {
|
431 |
overEmojiDiv.textContent = 'β
';
|
432 |
} else {
|
433 |
overEmojiDiv.textContent = 'β';
|
434 |
}
|
435 |
if (data.over_unders[index]['Result'] === 'N/A') {
|
436 |
-
overEmojiDiv.textContent = ''
|
437 |
}
|
438 |
overUnderDiv.appendChild(overEmojiDiv);
|
439 |
|
@@ -444,7 +450,7 @@
|
|
444 |
const overUnderOverlayDiv = document.createElement('div');
|
445 |
overUnderOverlayDiv.className = 'overlay';
|
446 |
overUnderOverlayDiv.textContent = `${(data.over_unders[index]['Probability'][0] * 100).toFixed(2)}%`;
|
447 |
-
overUnderDiv.appendChild(overUnderOverlayDiv);
|
448 |
|
449 |
overUnderCell.appendChild(overUnderDiv);
|
450 |
|
|
|
229 |
100% { transform: translateX(-100%); }
|
230 |
}
|
231 |
|
232 |
+
.emoji {
|
233 |
+
margin-left: 5px;
|
234 |
+
color: rgb(114, 114, 114);
|
235 |
+
}
|
236 |
</style>
|
237 |
|
238 |
<div class="scroll-banner">
|
|
|
390 |
|
391 |
const winnerEmojiDiv = document.createElement('div');
|
392 |
winnerEmojiDiv.className = 'emoji';
|
393 |
+
|
394 |
if (moneyline.Winner === moneyline.Result) {
|
395 |
winnerEmojiDiv.textContent = 'β
';
|
396 |
} else {
|
397 |
winnerEmojiDiv.textContent = 'β';
|
398 |
}
|
399 |
if (moneyline.Result === 'N/A') {
|
400 |
+
winnerEmojiDiv.textContent = `(${(moneyline.Probabilities[0] * 100).toFixed(1)}%)`;
|
401 |
}
|
402 |
wrapperDiv.appendChild(winnerEmojiDiv);
|
403 |
|
|
|
408 |
const winnerOverlayDiv = document.createElement('div');
|
409 |
winnerOverlayDiv.className = 'overlay';
|
410 |
winnerOverlayDiv.textContent = `${(moneyline.Probabilities[0] * 100).toFixed(2)}%`;
|
411 |
+
//wrapperDiv.appendChild(winnerOverlayDiv);
|
412 |
winnerCell.appendChild(wrapperDiv);
|
413 |
|
414 |
const overUnderCell = row.cells[row.cells.length - 1];
|
|
|
432 |
|
433 |
const overEmojiDiv = document.createElement('div');
|
434 |
overEmojiDiv.className = 'emoji';
|
435 |
+
|
436 |
if (data.over_unders[index]['Over/Under'] === data.over_unders[index]['Result']) {
|
437 |
overEmojiDiv.textContent = 'β
';
|
438 |
} else {
|
439 |
overEmojiDiv.textContent = 'β';
|
440 |
}
|
441 |
if (data.over_unders[index]['Result'] === 'N/A') {
|
442 |
+
overEmojiDiv.textContent = `(${(data.over_unders[index]['Probability'][0] * 100).toFixed(1)}%)`;
|
443 |
}
|
444 |
overUnderDiv.appendChild(overEmojiDiv);
|
445 |
|
|
|
450 |
const overUnderOverlayDiv = document.createElement('div');
|
451 |
overUnderOverlayDiv.className = 'overlay';
|
452 |
overUnderOverlayDiv.textContent = `${(data.over_unders[index]['Probability'][0] * 100).toFixed(2)}%`;
|
453 |
+
//overUnderDiv.appendChild(overUnderOverlayDiv);
|
454 |
|
455 |
overUnderCell.appendChild(overUnderDiv);
|
456 |
|