Skip to content

Commit

Permalink
Update index text
Browse files Browse the repository at this point in the history
  • Loading branch information
cjwit committed Nov 19, 2020
1 parent 9c5ac25 commit 8c60e57
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 254 deletions.
2 changes: 1 addition & 1 deletion dist/assets/script.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 0 additions & 59 deletions dist/averages.html

This file was deleted.

57 changes: 0 additions & 57 deletions dist/deaths.html

This file was deleted.

18 changes: 5 additions & 13 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>COVID-19 statistics by US state: cases - Witulski</title>
<title>COVID-19 statistics by US state - Witulski</title>
<link rel='stylesheet' href='assets/bootstrap.min.css'>
<link rel='stylesheet' href='assets/styles.css'>
</head>

<body>
<div class='container' id='container'>
<div class='page-header'>
<h1>COVID-19 cases by US state since their 100th reported case</h1>
<h1>COVID-19 statistics in the United States</h1>
<p>
Last updated on <span id="date">November 17, 2020</span> with data through <span id="lastData">November 16, 2020</span>.
</p>
Expand All @@ -36,19 +36,11 @@ <h1>COVID-19 cases by US state since their 100th reported case</h1>
<div id="dailyScaled" class="chart"></div>

<p>
This chart tracks cases of COVID-19 across the USA from the date when each state first had at least 100 reported
cases. The data comes from the New York Times (see <a
href='https://www.nytimes.com/article/coronavirus-county-data-us.html?action=click&module=Spotlight&pgtype=Homepage'>here
for more information</a> and <a href='https://github.com/nytimes/covid-19-data'>here for the GitHub data</a>).
The
idea for the chart comes from <a
href='https://ourworldindata.org/grapher/covid-confirmed-cases-since-100th-case'>this similar one from Our World
in Data</a>.
This chart tracks cases of COVID-19 across the USA. The data comes from the New York Times (see <a href='https://www.nytimes.com/article/coronavirus-county-data-us.html?action=click&module=Spotlight&pgtype=Homepage'>here for more information</a> and <a href='https://github.com/nytimes/covid-19-data'>here for the GitHub data</a>).
The idea for the chart comes from <a href='https://ourworldindata.org/grapher/covid-confirmed-cases-since-100th-case'>this similar one from Our World in Data</a>.
</p>
<p>
I wouldn't depend on this for much, it's mostly a chance for me to see a graph that I wish were easier to find
while
checking to see if I remember how to use D3.js.
I wouldn't depend on this for much, it's mostly a chance for me to see a graph that I wish were easier to find while checking to see if I remember how to use D3.js.
</p>
</div>
<script src='assets/script.js'></script>
Expand Down
58 changes: 0 additions & 58 deletions dist/scaled_averages.html

This file was deleted.

58 changes: 0 additions & 58 deletions dist/scaled_cases.html

This file was deleted.

8 changes: 0 additions & 8 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ var buttons = document.getElementsByClassName("btn");
var charts = document.getElementsByClassName("chart");

var buttonListener = function() {
console.log(this.id);
for (let i = 0; i < buttons.length; i++) {
buttons[i].classList.remove("btn-default");
buttons[i].classList.add("btn-primary");
Expand All @@ -31,12 +30,5 @@ var buttonListener = function() {
}

for (let i = 0; i < buttons.length; i++) {
console.log(buttons[i]);
buttons[i].addEventListener("click", buttonListener);
}

var casesButton = document.getElementById("casesButton");
var casesScaledButton = document.getElementById("casesScaledButton");
var deathsButton = document.getElementById("deathsButton");
var dailyButton = document.getElementById("dailyButton");
var dailyScaledButton = document.getElementById("dailyScaledButton");

0 comments on commit 8c60e57

Please sign in to comment.