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 1d768c9 commit d449b90
Showing 1 changed file with 209 additions and 8 deletions.
217 changes: 209 additions & 8 deletions playoffs/2021.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,54 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bryan Family Playoff Pool</title>
<title>2021 Bryan Family Playoff Pool</title>
<link href="css/csv_to_html.css" rel="stylesheet" />
<link href="css/teams.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous" />
<link href="https://cdn.datatables.net/v/dt/dt-2.0.6/datatables.min.css" rel="stylesheet" />
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://cdn.datatables.net/2.0.8/js/dataTables.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdn.datatables.net/v/dt/dt-2.0.8/datatables.min.css" rel="stylesheet" />
<script>
window.onload = function() {
$('#tiebreakerTable').DataTable({
paging: false,
searching: false,
info: false,
order: [
[1, 'desc'],
[2, 'desc'],
],
columnDefs: [
{ 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>
<body>
<div id="backToIndex">
<a href="index.html">
<strong>← Back to all years</strong>
</a>
</div>
<div>
<h1 class="text-center bg-secondary" style="--bs-bg-opacity: .2;">2021</h1>
</div>
<div id="summary">
<h2 href="overall">Overall</h2>
<table class="table table-striped containing_table table-hover" id="summaryTable">
<tr>
<th></th>
Expand All @@ -19,7 +58,7 @@
<th>Round 4</th>
<th>Total Points</th>
<th>Rank</th>
<th>Total Possible Points</th>
<th>Maximum Possible Points</th>
</tr>
<tr class=" leader">
<td class="person">Stephanie</td>
Expand Down Expand Up @@ -231,7 +270,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 @@ -1255,7 +1294,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 @@ -1817,7 +1856,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 @@ -2148,7 +2187,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 @@ -2348,5 +2387,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 montréal canadiens">
<img src="https://assets.nhle.com/logos/nhl/svg/MTL_dark.svg" alt="MTL" />
</div>
</th>
<th>
<div class="pick tampa bay lightning">
<img src="https://assets.nhle.com/logos/nhl/svg/TBL_dark.svg" alt="TBL" />
</div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>4</td>
<td class="incorrect">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Marc (48 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Robin (20 pts), Nathan (20 pts)</td>
</tr>
<tr>
<td>2nd: Stephanie (43 pts), Theodore (43 pts)</td>
</tr>
<tr>
<td>3rd: </td>
</tr>
</table>
</div>
</td>
<td class="incorrect">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Stephanie (47 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Robin (16 pts)</td>
</tr>
<tr>
<td>2nd: Marc (44 pts)</td>
</tr>
<tr>
<td>3rd: Jamie (43 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: Stephanie (48 pts), Marc (48 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Kiersten (20 pts), Robin (20 pts), Nathan (20 pts)</td>
</tr>
<tr>
<td>2nd: </td>
</tr>
<tr>
<td>3rd: Ryan (46 pts)</td>
</tr>
</table>
</div>
</td>
<td class="correct">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Stephanie (58 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Kiersten (16 pts), Robin (16 pts)</td>
</tr>
<tr>
<td>2nd: Marc (44 pts)</td>
</tr>
<tr>
<td>3rd: Nickall (39 pts)</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>6</td>
<td class="incorrect">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Marc (48 pts), Derrick (48 pts), Glenda (48 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Kiersten (20 pts), Robin (20 pts)</td>
</tr>
<tr>
<td>2nd: </td>
</tr>
<tr>
<td>3rd: </td>
</tr>
</table>
</div>
</td>
<td class="incorrect">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Nickall (50 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Kiersten (16 pts), Robin (16 pts)</td>
</tr>
<tr>
<td>2nd: Stephanie (47 pts)</td>
</tr>
<tr>
<td>3rd: Marc (44 pts), Jaclyn (44 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 (59 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Kiersten (20 pts), Nathan (20 pts)</td>
</tr>
<tr>
<td>2nd: Jake (44 pts)</td>
</tr>
<tr>
<td>3rd: Stephanie (43 pts)</td>
</tr>
</table>
</div>
</td>
<td class="incorrect">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Marc (49 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Kiersten (16 pts)</td>
</tr>
<tr>
<td>2nd: Stephanie (47 pts)</td>
</tr>
<tr>
<td>3rd: Nickall (39 pts)</td>
</tr>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>

0 comments on commit d449b90

Please sign in to comment.