Skip to content

Commit

Permalink
update footnote
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthwtalbot committed Sep 13, 2021
1 parent 4e065a1 commit b8313f7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/js/components/formatters.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function DateFormatter(props) {
var date = props.value ? new Date(props.value) : new Date(props);
var hours = date.getHours();
if (!isNaN(hours)) {
var suffix = hours < 12 ? "AM" : "PM";
var suffix = hours < 12 ? "a.m." : "p.m.";
if (!hours) {
hours = 12;
} else if (hours > 12) {
Expand Down Expand Up @@ -105,30 +105,30 @@ export function reportingPercentage(pct) {
export function getFootnote(time, state, county) {
var stateNote = (
<span>
<em>% in</em> is an <a href="https://www.ap.org/topics/politics/counting-the-vote" target="_blank">AP estimate</a> of how much of the vote has been counted.{" "}
"% in" is an <a href="https://www.ap.org/topics/politics/counting-the-vote" target="_blank">AP estimate</a> of how much of the vote has been counted.{" "}
</span>
);
var countySource = county ? (
<span>
{" "}
Demographic, income and population data from the Census Bureau. {strings["margins_footnote"]}{" "} COVID-19
case data from{" "}
Demographic, income and population data from the Census Bureau. "% White" is the percentage of the population that identifies as "white alone" and not Hispanic or Latino. {strings["margins_footnote"]}{" "} COVID-19
case data from the{" "}
<a href="https://github.com/CSSEGISandData/COVID-19" target="_blank">
Center for Systems Science and Engineering at Johns Hopkins University
</a>{" "}
as of Sep. 6th.
as of Sept. 6th, 2021.
</span>
) : (
""
);
return (
<div class="source">
<div class="note">
Note: AP will only declare a winner in the race to replace California Gov. Gavin Newsom if the vote to recall Newsom is successful.{" "}
Note: The AP will declare a winner in the race to replace California Gov. Gavin Newsom only if the vote to recall Newsom is successful.{" "}
<a
href="https://www.npr.org/2020/10/29/928863973/heres-how-npr-reports-election-results"
target="_blank">
Read more about how AP calls races.
Read more about how the AP calls races.
</a>{" "}
{stateNote}
</div>
Expand Down

0 comments on commit b8313f7

Please sign in to comment.