Commit 73873816 authored by Michał Woźniak's avatar Michał Woźniak
Browse files

prematurely pushed the unfinished menu, fixed

parent 7c2dd48c
Pipeline #174 passed with stage
in 1 second
......@@ -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)=>{
......
......@@ -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">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment