Skip to content

Commit

Permalink
Updated country code flag
Browse files Browse the repository at this point in the history
  • Loading branch information
devphenom committed Nov 25, 2021
1 parent bbe06d1 commit 322e08c
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions js/ui.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const globalRecord = (globalRec) => {
document.getElementById(
"totalConfirmed"
).innerText = globalRec.TotalConfirmed.toLocaleString("en");
document.getElementById("totalConfirmed").innerText =
globalRec.TotalConfirmed.toLocaleString("en");
document.getElementById(
"newConfirmed"
).innerText = `+${globalRec.NewConfirmed.toLocaleString("en")}`;
Expand All @@ -11,15 +10,13 @@ const globalRecord = (globalRec) => {
document.getElementById("newActive").innerText = `+${(
globalRec.NewConfirmed - globalRec.NewRecovered
).toLocaleString("en")}`;
document.getElementById(
"totalRecovered"
).innerText = globalRec.TotalRecovered.toLocaleString("en");
document.getElementById("totalRecovered").innerText =
globalRec.TotalRecovered.toLocaleString("en");
document.getElementById(
"newRecovered"
).innerText = `+${globalRec.NewRecovered.toLocaleString("en")}`;
document.getElementById(
"totalDeath"
).innerText = globalRec.TotalDeaths.toLocaleString("en");
document.getElementById("totalDeath").innerText =
globalRec.TotalDeaths.toLocaleString("en");
document.getElementById(
"newDeath"
).innerText = `+${globalRec.NewDeaths.toLocaleString("en")}`;
Expand Down Expand Up @@ -74,9 +71,8 @@ const topCountries = (value) => {
return `<li class="list-group-item border-0 font-weight-bold d-flex align-items-center pointer top-countries" id = ${
cased.CountryCode
}>
<img src="https://www.countryflags.io/${
cased.CountryCode
}/shiny/32.png"class="img-fluid mr-2"/>
<img src="
https://flagcdn.com/16x12/${cased.CountryCode.toLowerCase()}.png" class="img-fluid mr-2"/>
${cased.Country}
<div class="ml-auto text-primary">${cased.TotalConfirmed.toLocaleString(
"en"
Expand Down

1 comment on commit 322e08c

@vercel
Copy link

@vercel vercel bot commented on 322e08c Nov 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.