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)=>{ ...@@ -1593,10 +1593,8 @@ document.addEventListener('DOMContentLoaded', (e)=>{
document.querySelector('input[type=date][name=chart-start-date]').addEventListener('click', (e)=>{ document.querySelector('input[type=date][name=chart-start-date]').addEventListener('click', (e)=>{
e.target.parentElement.click() e.target.parentElement.click()
}) })
//
/*document.getElementById('site-menu-button-rate').addEventListener('click', (e)=>{ // reset settings
document.getElementById('menu-shown').checked = false;
})*/
document.getElementById('chart-reset-settings').addEventListener('click', (e)=>{ document.getElementById('chart-reset-settings').addEventListener('click', (e)=>{
// set the radio button groups to their defaults // set the radio button groups to their defaults
document document
...@@ -1618,6 +1616,12 @@ document.addEventListener('DOMContentLoaded', (e)=>{ ...@@ -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 // fill out the covid data box
getCovidData() getCovidData()
.then((data)=>{ .then((data)=>{
......
...@@ -409,16 +409,16 @@ ...@@ -409,16 +409,16 @@
<div class="sources"><a href="https://github.com/CSSEGISandData/COVID-19">source</a></div> <div class="sources"><a href="https://github.com/CSSEGISandData/COVID-19">source</a></div>
<div id="sites-data-container"> <div id="sites-data-container">
<div class="sites-menu-container left" id="site-menu-control-container"> <div class="sites-menu-container left" id="site-menu-control-container">
<input type="checkbox" id="menu-shown" name="menu-shown"/> <!--input type="checkbox" id="menu-shown" name="menu-shown"/>
<label id="site-menu-control" for="menu-shown"></label> <label id="site-menu-control" for="menu-shown">☰</label-->
<a href="#clear-all" id="clear-all-sites"></a> <a href="#clear-all" id="clear-all-sites"></a>
<div class="sites-menu"> <!--div class="sites-menu">
<p>Show 6 sites with:</p> <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-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-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-deaths" value="most deaths"/>
<input type="button" id="site-menu-button-active-drop" value="greatest drop of number of active cases"/> <input type="button" id="site-menu-button-active-drop" value="greatest drop of number of active cases"/>
</div> </div-->
</div> </div>
<div class="site-data-container"> <div class="site-data-container">
<h2><select class="sites-select" tabindex="1"> <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