Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michał Woźniak
covid
Commits
73873816
Commit
73873816
authored
Apr 11, 2020
by
Michał Woźniak
Browse files
prematurely pushed the unfinished menu, fixed
parent
7c2dd48c
Pipeline
#174
passed with stage
in 1 second
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
covid.js
View file @
73873816
...
...
@@ -1593,10 +1593,8 @@ document.addEventListener('DOMContentLoaded', (e)=>{
document
.
querySelector
(
'
input[type=date][name=chart-start-date]
'
).
addEventListener
(
'
click
'
,
(
e
)
=>
{
e
.
target
.
parentElement
.
click
()
})
//
/*document.getElementById('site-menu-button-rate').addEventListener('click', (e)=>{
document.getElementById('menu-shown').checked = false;
})*/
// reset settings
document
.
getElementById
(
'
chart-reset-settings
'
).
addEventListener
(
'
click
'
,
(
e
)
=>
{
// set the radio button groups to their defaults
document
...
...
@@ -1618,6 +1616,12 @@ document.addEventListener('DOMContentLoaded', (e)=>{
}
})
//
/*document.getElementById('site-menu-button-rate').addEventListener('click', (e)=>{
document.getElementById('menu-shown').checked = false;
})*/
// fill out the covid data box
getCovidData
()
.
then
((
data
)
=>
{
...
...
index.html
View file @
73873816
...
...
@@ -409,16 +409,16 @@
<div
class=
"sources"
><a
href=
"https://github.com/CSSEGISandData/COVID-19"
>
source
</a></div>
<div
id=
"sites-data-container"
>
<div
class=
"sites-menu-container left"
id=
"site-menu-control-container"
>
<input
type=
"checkbox"
id=
"menu-shown"
name=
"menu-shown"
/>
<label
id=
"site-menu-control"
for=
"menu-shown"
>
☰
</label>
<
!--
input type="checkbox" id="menu-shown" name="menu-shown"/>
<label id="site-menu-control" for="menu-shown">☰</label
--
>
<a
href=
"#clear-all"
id=
"clear-all-sites"
>
↻
</a>
<div
class=
"sites-menu"
>
<
!--
div class="sites-menu">
<p>Show 6 sites with:</p>
<input type="button" id="site-menu-button-rate" value="largest growth rate"/>
<input type="button" id="site-menu-button-percentage" value="highest percentage of population infected"/>
<input type="button" id="site-menu-button-deaths" value="most deaths"/>
<input type="button" id="site-menu-button-active-drop" value="greatest drop of number of active cases"/>
</div>
</div
--
>
</div>
<div
class=
"site-data-container"
>
<h2><select
class=
"sites-select"
tabindex=
"1"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment