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

most-recoveries button

parent 514cc842
......@@ -1665,6 +1665,13 @@ document.addEventListener('DOMContentLoaded', (e)=>{
}
// return new_active comparison
return adata[adata.length-1].new_active - bdata[bdata.length-1].new_active;
},
"site-menu-button-recoveries": (a, b)=>{
// make the formulas easier on the eyes
var adata = siteData[a].data
var bdata = siteData[b].data
// return deaths comparison
return bdata[bdata.length-1].recovered - adata[adata.length-1].recovered;
}
}
......
......@@ -388,6 +388,7 @@
<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-recoveries" value="most recoveries"/>
<input type="button" id="site-menu-button-active-drop" value="greatest daily drop of number of active cases"/>
</div>
</div>
......
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