BraydenMoore commited on
Commit
e3ac90c
·
1 Parent(s): a037ca7

Update returns

Browse files
Files changed (1) hide show
  1. Templates/index.html +7 -4
Templates/index.html CHANGED
@@ -155,6 +155,11 @@
155
  opacity: 1;
156
  }
157
 
 
 
 
 
 
158
  .hidden {
159
  opacity: 0;
160
  }
@@ -444,8 +449,7 @@
444
  const wrapperDiv = document.createElement('div');
445
  wrapperDiv.className = 'winner-wrapper';
446
  if (moneyline.Probabilities[0] > 0.6){
447
- wrapperDiv.style.border = "2px solid grey";
448
- wrapperDiv.style.borderRadius = "10px";
449
  }
450
 
451
  const winnerImg = document.createElement('img');
@@ -481,8 +485,7 @@
481
  const overUnderDiv = document.createElement('div');
482
  overUnderDiv.className = 'over-under-wrapper hidden';
483
  if (data.over_unders[index]['Probability'][0] > 0.6){
484
- overUnderDiv.style.border = "2px solid grey";
485
- overUnderDiv.style.borderRadius = "10px";
486
  }
487
 
488
  const textDiv = document.createElement('div');
 
155
  opacity: 1;
156
  }
157
 
158
+ .highlight {
159
+ border: 2px solid grey;
160
+ border-radius: 10px;
161
+ }
162
+
163
  .hidden {
164
  opacity: 0;
165
  }
 
449
  const wrapperDiv = document.createElement('div');
450
  wrapperDiv.className = 'winner-wrapper';
451
  if (moneyline.Probabilities[0] > 0.6){
452
+ wrapperDiv.classList.add("highlight");
 
453
  }
454
 
455
  const winnerImg = document.createElement('img');
 
485
  const overUnderDiv = document.createElement('div');
486
  overUnderDiv.className = 'over-under-wrapper hidden';
487
  if (data.over_unders[index]['Probability'][0] > 0.6){
488
+ overUnderDiv.classList.add("highlight");
 
489
  }
490
 
491
  const textDiv = document.createElement('div');