Skip to content

Commit

Permalink
Fix winning projection display
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Bryan committed Jun 23, 2024
1 parent 28b14fe commit 8bd6b80
Showing 1 changed file with 179 additions and 4 deletions.
183 changes: 179 additions & 4 deletions playoffs/2017.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,19 @@
{ targets: [0,1,2], className: 'dt-body-center dt-head-center' }
]
});

$('#projectionTable').DataTable({
paging: false,
searching: false,
info: false,
order: [
[1, 'asc'],
],
ordering: false,
columnDefs: [
{ targets: [0,1,2], className: 'dt-body-center dt-head-center' }
]
});
}
</script>
</head>
Expand Down Expand Up @@ -277,7 +290,7 @@ <h2 href="#round1">Round 1</h2>
</th>
<th>Points</th>
<th>Rank</th>
<th>Possible Points</th>
<th>Maximum Possible Points</th>
</tr>
<tr>
<td class="person">Benedict</td>
Expand Down Expand Up @@ -1231,7 +1244,7 @@ <h2 href="#round2">Round 2</h2>
</th>
<th>Points</th>
<th>Rank</th>
<th>Possible Points</th>
<th>Maximum Possible Points</th>
</tr>
<tr>
<td class="person">Benedict</td>
Expand Down Expand Up @@ -1755,7 +1768,7 @@ <h2 href="#round3">Round 3</h2>
</th>
<th>Points</th>
<th>Rank</th>
<th>Possible Points</th>
<th>Maximum Possible Points</th>
</tr>
<tr>
<td class="person">Benedict</td>
Expand Down Expand Up @@ -2064,7 +2077,7 @@ <h2 href="#round4">Round 4</h2>
</th>
<th>Points</th>
<th>Rank</th>
<th>Possible Points</th>
<th>Maximum Possible Points</th>
</tr>
<tr>
<td class="person">Benedict</td>
Expand Down Expand Up @@ -2250,5 +2263,167 @@ <h2 href="#round4">Round 4</h2>
</tr>
</table>
</div>
<div>
<h2 href="projections">Final Projection</h2>
<table id="projectionTable" class="table table-striped containing_table table-hover fw-bold">
<thead>
<tr>
<th></th>
<th>
<div class="pick pittsburgh penguins">
<img src="https://assets.nhle.com/logos/nhl/svg/PIT_dark.svg" alt="PIT" />
</div>
</th>
<th>
<div class="pick nashville predators">
<img src="https://assets.nhle.com/logos/nhl/svg/NSH_dark.svg" alt="NSH" />
</div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>4</td>
<td class="incorrect">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Marc (55 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Jake (21 pts), Nickall (21 pts)</td>
</tr>
<tr>
<td>2nd: Kiersten (50 pts)</td>
</tr>
<tr>
<td>3rd: Derrick (45 pts)</td>
</tr>
</table>
</div>
</td>
<td class="incorrect">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Marc (51 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Jake (17 pts)</td>
</tr>
<tr>
<td>2nd: Derrick (49 pts)</td>
</tr>
<tr>
<td>3rd: Nathan (46 pts)</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>5</td>
<td class="incorrect">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Marc (55 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Nickall (21 pts)</td>
</tr>
<tr>
<td>2nd: Derrick (45 pts)</td>
</tr>
<tr>
<td>3rd: Benedict (44 pts), Glenda (44 pts)</td>
</tr>
</table>
</div>
</td>
<td class="incorrect">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Marc (51 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Jake (22 pts)</td>
</tr>
<tr>
<td>2nd: Derrick (49 pts)</td>
</tr>
<tr>
<td>3rd: Nathan (46 pts)</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>6</td>
<td class="correct">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Glenda (55 pts), Marc (55 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Jake (21 pts), Nickall (21 pts)</td>
</tr>
<tr>
<td>2nd: </td>
</tr>
<tr>
<td>3rd: Derrick (50 pts), Jaclyn (50 pts)</td>
</tr>
</table>
</div>
</td>
<td class="incorrect">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Derrick (60 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Jake (17 pts)</td>
</tr>
<tr>
<td>2nd: Nathan (57 pts)</td>
</tr>
<tr>
<td>3rd: Marc (51 pts)</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>7</td>
<td class="incorrect">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Marc (66 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Jake (21 pts)</td>
</tr>
<tr>
<td>2nd: Derrick (45 pts)</td>
</tr>
<tr>
<td>3rd: Glenda (44 pts)</td>
</tr>
</table>
</div>
</td>
<td class="incorrect">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Marc (56 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Jake (17 pts)</td>
</tr>
<tr>
<td>2nd: Steph (52 pts)</td>
</tr>
<tr>
<td>3rd: Derrick (49 pts)</td>
</tr>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>

0 comments on commit 8bd6b80

Please sign in to comment.