File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,6 @@ <h2 id="title">All Over The World</h2>
50
50
< div id ="search ">
51
51
< input type ="text " name ="search-input " id ="search-input " onkeyup ="searchCountry() " placeholder ="SEARCH HERE... ">
52
52
</ div >
53
- <!-- ########################## LOADING ########################-->
54
- < div class ="loading__container ">
55
- < div class ="loading "> </ div >
56
- Loading...
57
- </ div >
58
53
< div class ="error_container ">
59
54
< p class ="error-msg " style ="margin:0;text-align: center; "> </ p >
60
55
</ div >
Original file line number Diff line number Diff line change 2
2
let country_name_array = [ ] ;
3
3
function getTodayStatus ( )
4
4
{
5
- let loading = document . querySelector ( ".loading__container" ) ;
6
- loading . style [ "display" ] = "flex" ;
5
+
7
6
let status_link = "https://corona.lmao.ninja/v2/all" ;
8
7
$ . getJSON ( status_link , function ( data )
9
8
{
@@ -53,9 +52,7 @@ function getTodayStatus()
53
52
{
54
53
$ ( "#recovered-no" ) . append ( recovered + decreases + Math . abs ( today_recovered ) + "</span>" ) ;
55
54
}
56
- $ ( "#active-no" ) . append ( active ) ;
57
- let loading = document . querySelector ( ".loading__container" ) ;
58
- loading . style [ "display" ] = "none" ;
55
+ $ ( "#active-no" ) . append ( active ) ;
59
56
} ) . fail ( handleError ) ;
60
57
getCountryStatus ( )
61
58
You can’t perform that action at this time.
0 commit comments