Skip to content

Commit

Permalink
Deploying to gh-pages from @ ae6df10 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilson committed Nov 11, 2024
1 parent 5632917 commit 9f2da11
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion redraw-beta/data/us2024.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion redraw-beta/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h2>Details</h2>
<td>GOP</td>
<td>Green</td>
<td>Libertarian</td>
<td>McMullin</td>
<td id="unaffiliated-header">Kennedy</td>
<td>Other</td>
</thead>
<tbody id="states"></tbody>
Expand Down
10 changes: 8 additions & 2 deletions redraw-beta/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ var setYear = function(newYear) {
'dem': 'Kamala Harris',
'gop': 'Donald Trump',
'grn': 'Jill Stein',
'una': 'Robert Kennedy',
'lib': 'Libertarian',
'una': 'Robert Kennedy',
'oth': 'Other',
};
loser = 'Kamala Harris';
Expand Down Expand Up @@ -394,7 +394,6 @@ var update = function() {
(state.oth / totalVotes * 100).toFixed(2) + '%'
];
}

})
.join("td")
.text(intWithCommas)
Expand All @@ -406,6 +405,13 @@ var update = function() {
}
});

/* Set the unaffiliated header if it is used */
document.getElementById("unaffiliated-header").textContent =
year == '2024' ? 'Kennedy' :
year == '2016i' ? 'McMullin' :
year == '2016' ? 'McMullin' :
'Unaffiliated';

/* Draw United States with colors! */
if (countyMode === 'show') {
// get current zoom level
Expand Down

0 comments on commit 9f2da11

Please sign in to comment.