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 fc0a566 commit 4f6949c
Showing 1 changed file with 209 additions and 8 deletions.
217 changes: 209 additions & 8 deletions playoffs/2006.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>2006 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/[email protected]/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/[email protected]/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;">2006</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">Derrick</td>
Expand Down Expand Up @@ -141,7 +180,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">Chrissy</td>
Expand Down Expand Up @@ -535,7 +574,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">Chrissy</td>
Expand Down Expand Up @@ -755,7 +794,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">Chrissy</td>
Expand Down Expand Up @@ -888,7 +927,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">Chrissy</td>
Expand Down Expand Up @@ -962,5 +1001,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 carolina hurricanes">
<img src="https://assets.nhle.com/logos/nhl/svg/CAR_19992000-20122013_dark.svg" alt="CAR" />
</div>
</th>
<th>
<div class="pick edmonton oilers">
<img src="https://assets.nhle.com/logos/nhl/svg/EDM_19971998-20102011_dark.svg" alt="EDM" />
</div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>4</td>
<td class="incorrect">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Derrick (45 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Stephanie (21 pts)</td>
</tr>
<tr>
<td>2nd: Marc (42 pts)</td>
</tr>
<tr>
<td>3rd: Jaclyn (28 pts)</td>
</tr>
</table>
</div>
</td>
<td class="incorrect">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Derrick (49 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Stephanie (25 pts)</td>
</tr>
<tr>
<td>2nd: Marc (46 pts)</td>
</tr>
<tr>
<td>3rd: Jaclyn (38 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: Derrick (45 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Stephanie (21 pts)</td>
</tr>
<tr>
<td>2nd: Marc (42 pts)</td>
</tr>
<tr>
<td>3rd: Chrissy (29 pts)</td>
</tr>
</table>
</div>
</td>
<td class="incorrect">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Derrick (49 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Stephanie (25 pts)</td>
</tr>
<tr>
<td>2nd: Marc (46 pts)</td>
</tr>
<tr>
<td>3rd: Chrissy (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: Derrick (50 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Jaclyn (23 pts)</td>
</tr>
<tr>
<td>2nd: Marc (47 pts)</td>
</tr>
<tr>
<td>3rd: Stephanie (26 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): Jaclyn (27 pts)</td>
</tr>
<tr>
<td>2nd: Marc (57 pts)</td>
</tr>
<tr>
<td>3rd: Stephanie (36 pts)</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>7</td>
<td class="correct">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Derrick (45 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Stephanie (21 pts)</td>
</tr>
<tr>
<td>2nd: Marc (42 pts)</td>
</tr>
<tr>
<td>3rd: Chrissy (24 pts)</td>
</tr>
</table>
</div>
</td>
<td class="incorrect">
<div>
<table style="width: 100%">
<tr>
<td style="width: 50%">1st: Derrick (49 pts)</td>
<td rowspan="3" style="width: 50%">Loser(s): Stephanie (25 pts)</td>
</tr>
<tr>
<td>2nd: Marc (46 pts)</td>
</tr>
<tr>
<td>3rd: Chrissy (28 pts)</td>
</tr>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>

0 comments on commit 4f6949c

Please sign in to comment.