Advertisement
PalsyP

Untitled

Aug 4th, 2024
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. This is the layout for each stat, repeated.... Eg. Shots on Goal
  2.  
  3. <div id="match-detail_statistic" class="Fk" data-id="match-detail_statistic">
  4. <div class="hf" data-id="statistic_header">
  5. <span class="Bk Jo" data-id="statistic_home-stat">14</span>
  6. <div class="Im" data-id="statistic_stat-name">Shots on Goal</div>
  7. <span class="Ci" data-id="statistic_away-stat">3</span>
  8. </div>
  9. <span>
  10. <span class="yf" data-testid="match-detail_statistic_stat-bar">
  11. <span class="progress-bar" role="progressbar" aria-label="Example with label" style="width: 25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">25%</div>
  12. <div class="Mf" data-testid="match-detail_statistic_compact-stat-name">Shots on target</div>
  13. <span class="progress-bar" role="progressbar" aria-label="Example with label" style="width: 25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">25%</div>
  14. </span>
  15. </span>
  16. </div>
  17.  
  18. As you can see, as my data in the database is 1 stat per row, eg.
  19.  
  20. Array (
  21. .....
  22. [26] => Array
  23. (
  24. [fixtureID] => 1035550
  25. [teamID] => 40
  26. [HorA] => H
  27. [type] => Shots on Goal
  28. [value] => 14
  29. )
  30.  
  31. [27] => Array
  32. (
  33. [fixtureID] => 1035550
  34. [teamID] => 39
  35. [HorA] => A
  36. [type] => Shots on Goal
  37. [value] => 3
  38. )
  39. etc
  40. )
  41.  
  42. I'm not sure how to acheive what I desire.
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement