├── README.md ├── style.css ├── app.js └── index.html /README.md: -------------------------------------------------------------------------------- 1 | # covid -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | body 2 | { 3 | color: mintcream; 4 | background: black; 5 | font-family: cursive; 6 | } 7 | hr{ 8 | background-color:inherit; 9 | border-style: none; 10 | border-top-style: dotted; 11 | border-color: wheat ; 12 | border-width: 6px; 13 | width: 20%; 14 | } 15 | .blogs 16 | { 17 | box-shadow: 0 0 50px #fff,-10px 0 80px #f0f,10px 0 80px #0ff; 18 | } -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | console.log('index.js loaded'); 2 | // request(`https://api.covid19india.org/state_district_wise.json`,function (err,response,body) { 3 | let submitBtn=document.getElementById('submitBtn'); 4 | submitBtn.addEventListener('click',handleClick); 5 | function handleClick(evt){ 6 | evt.preventDefault(); 7 | let selectedState=document.getElementById('state').value; 8 | //console.log(selectedState); 9 | let xhr=new XMLHttpRequest(); 10 | xhr.open("GET",'https://api.covid19india.org/state_district_wise.json',true); 11 | xhr.onload=function() 12 | { 13 | let myData=JSON.parse(this.responseText); 14 | // console.log(myData); 15 | let state=myData[`${selectedState}`]; 16 | let str=``; 17 | let distName=Object.keys(state.districtData); 18 | let distCasesArr= Object.values(state.districtData); 19 | // console.log(distName); 20 | // console.log(distCasesArr); 21 | for(let i=0;i 25 | 26 | 27 | 28 | 29 | 30 | 31 | ` 32 | str+=row1; 33 | }; 34 | str+=`
${distName[i]}Active : ${distCasesArr[i].active}Confirmed : ${distCasesArr[i].confirmed}Deceased : ${distCasesArr[i].deceased}Recovered : ${distCasesArr[i].recovered}
` 35 | document.getElementById('stateInfo').innerHTML=str; 36 | 37 | // console.log(totalCases); 38 | 39 | } 40 | xhr.send(); 41 | 42 | } -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Covid Toll 6 | 7 | 8 | 9 | 10 |
11 |

COVID-19 Case Toll

12 | 13 |

Please Select Your State

14 |
15 | 51 |
52 | 53 |
54 |
55 |
56 | 57 |
58 |
59 |
60 |
61 |
What Should You Do During COVID
62 |

This is a stressful time to say the least. Everything is impacted by COVID-19 in some way, including our work. 63 | Once we’ve taken time to acknowledge how lucky we are to work in digital, it’s time to assess if our current content strategy needs any adjusting based on current events. 64 | Wanting to write about something topical 65 | Needing to add more content to their calendars.

66 | Read Full Post 67 |
68 |
69 |
70 |
71 |
Helping public health officials combat COVID-19
72 |

As global communities respond to the COVID-19 pandemic, there has been an increasing emphasis on public health strategies, like social distancing measures, to slow the rate of transmission. In Google Maps, we use aggregated, anonymized data showing how busy certain types of places are—helping identify when a local business tends to be the most crowded....

73 | Read Full Post 74 |
75 |
76 |
77 |
78 |
Living With Covid-19: Lockdowns can only help us prepare and slow the pandemic, not cure it
79 |

With the coronavirus pandemic continuing to spread, the WHO has said that Covid-19 will be with us for a long time. This is based on the assessment that the pandemic is still in its early stages in many parts of the world such as Africa and Central and South America......

80 | Read Full Post 81 |
82 |
83 |
84 |
85 |
What To Do If You Think You are Covid Positive
86 |

Separate yourself from other people 87 | 88 | As much as possible, stay in a specific room and away from other people and pets in your home. If possible, you should use a separate bathroom. If you need to be around other people or animals in or outside of the home, wear a cloth face covering. 89 | Monitor your symptoms..

90 | Read Full Post 91 |
92 |
93 |
94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | --------------------------------------------------------------------------------