Spaces:
Running
Running
BraydenMoore
commited on
Commit
•
995112e
1
Parent(s):
9c42f46
Update stylings
Browse files- Templates/index.html +4 -1
Templates/index.html
CHANGED
@@ -160,6 +160,7 @@
|
|
160 |
border: 2px solid rgb(100, 100, 100) !important;
|
161 |
border-radius: 10px !important;
|
162 |
}
|
|
|
163 |
|
164 |
.hidden {
|
165 |
opacity: 0;
|
@@ -283,7 +284,7 @@
|
|
283 |
.table-div{
|
284 |
overflow-x: scroll;
|
285 |
}
|
286 |
-
}
|
287 |
|
288 |
</style>
|
289 |
|
@@ -451,6 +452,7 @@
|
|
451 |
wrapperDiv.className = 'winner-wrapper';
|
452 |
if (moneyline.Probabilities[0] > 0.6){
|
453 |
wrapperDiv.classList.add("highlight");
|
|
|
454 |
}
|
455 |
|
456 |
const winnerImg = document.createElement('img');
|
@@ -487,6 +489,7 @@
|
|
487 |
overUnderDiv.className = 'over-under-wrapper hidden';
|
488 |
if (data.over_unders[index]['Probability'][0] > 0.6){
|
489 |
overUnderDiv.classList.add("highlight");
|
|
|
490 |
}
|
491 |
|
492 |
const textDiv = document.createElement('div');
|
|
|
160 |
border: 2px solid rgb(100, 100, 100) !important;
|
161 |
border-radius: 10px !important;
|
162 |
}
|
163 |
+
.force-repaint { transform: translateZ(0); }
|
164 |
|
165 |
.hidden {
|
166 |
opacity: 0;
|
|
|
284 |
.table-div{
|
285 |
overflow-x: scroll;
|
286 |
}
|
287 |
+
}
|
288 |
|
289 |
</style>
|
290 |
|
|
|
452 |
wrapperDiv.className = 'winner-wrapper';
|
453 |
if (moneyline.Probabilities[0] > 0.6){
|
454 |
wrapperDiv.classList.add("highlight");
|
455 |
+
wrapperDiv.classList.toggle("force-repaint");
|
456 |
}
|
457 |
|
458 |
const winnerImg = document.createElement('img');
|
|
|
489 |
overUnderDiv.className = 'over-under-wrapper hidden';
|
490 |
if (data.over_unders[index]['Probability'][0] > 0.6){
|
491 |
overUnderDiv.classList.add("highlight");
|
492 |
+
overUnderDiv.classList.toggle("force-repaint");
|
493 |
}
|
494 |
|
495 |
const textDiv = document.createElement('div');
|