Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b793693

Browse files
committedMar 3, 2021
Bug fixed in country.js
1 parent c6550df commit b793693

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed
 

‎coronatracker/country.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ <h2 id="title">All Over The World</h2>
5050
<div id="search">
5151
<input type="text" name="search-input" id="search-input" onkeyup="searchCountry()" placeholder="SEARCH HERE...">
5252
</div>
53-
<!-- ########################## LOADING ########################-->
54-
<div class="loading__container">
55-
<div class="loading"></div>
56-
Loading...
57-
</div>
5853
<div class="error_container">
5954
<p class="error-msg" style="margin:0;text-align: center;"></p>
6055
</div>

‎coronatracker/country.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
let country_name_array=[];
33
function getTodayStatus()
44
{
5-
let loading=document.querySelector(".loading__container");
6-
loading.style["display"]="flex";
5+
76
let status_link="https://corona.lmao.ninja/v2/all";
87
$.getJSON(status_link,function(data)
98
{
@@ -53,9 +52,7 @@ function getTodayStatus()
5352
{
5453
$("#recovered-no").append(recovered+decreases+Math.abs(today_recovered)+"</span>");
5554
}
56-
$("#active-no").append(active);
57-
let loading=document.querySelector(".loading__container");
58-
loading.style["display"]="none";
55+
$("#active-no").append(active);
5956
}).fail(handleError);
6057
getCountryStatus()
6158

0 commit comments

Comments
 (0)
Please sign in to comment.