This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
render.js
203 lines (171 loc) · 10.3 KB
/
render.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
// render.js
window.data = [
{
"date": "March 25",
"day": "Thursday",
"desc":`
<p> Pune Couple, Maharashtra's First Coronavirus Patients, Set to be Discharged Today</p>
<p>The couple, admitted to a hospital here on March 9, will be taken home in an ambulance of the Pune Municipal Corporation.</p>
<a href="https://www.news18.com/amp/news/india/first-coronavirus-patients-from-maharashtra-recover-set-to-go-home-2550003.html">View full news report here.</a>
`
},
{
"date": "March 24",
"day": "Wednesday",
"desc": `<p>Prime Minister Narendra Modi adresses the nation and implements a complete lockdown in the country.</p>
<p>The lockdown is supposed to be for 21 days. People have been requested to be where ever they are.</p>
<p> Meanwhile in Pune more cases for the coronavirus emerged. One of them being from Infosys</p>
`
},
{
"date":"March 23",
"day": "Tuesday",
"desc": `<p>The Maharashtra government locksdown the State. Though, people are still being careless and coming out on the streets.</p>
<p> Government issues advisory notice for people to stay at home.<p>`
},
{
"date": "March 22",
"day" : "Monday",
"desc": `<p>The Janta Curfew is in effect all-over India from 7am to 9pm today. In this period, people have been requested to stay at home and co-operate with the Government to stop the spread of the virus.</p>`
},
{
"date": "March 21",
"day": "Saturday",
"desc": `
<p> Indians prepare for the \` Janta Curfew \` that will be on effect all-over India on March 22nd from 7:00AM to 9:00PM</p>
`
},
{
"date": "March 20",
"day": "Friday",
"desc": `
<p>Pune woman with no foreign tour history tests coronavirus positive</p>
<p>The woman, who is currently on ventilator support at Bharti Hospital, tested positive for coronavirus<p>
<p>The woman does not have travel history to a foreign country, but had travelled to Vashi in Navi Mumbai to attend a wedding</p>
<a href=https://www.livemint.com/news/india/pune-woman-with-no-foreign-tour-history-tests-coronavirus-positive-11584772244036.html>View full news report here.</a>
`
},
{
"date": "March 19",
"day": "Thursday",
"desc":`
<p>Coronavirus: Pune companies warned of 'harsh' action for not following work from home directive</p>
<a href=https://www.google.com/amp/s/m.businesstoday.in/lite/story/coronavirus-pune-companies-warned-of-harsh-action-not-following-work-from-home/1/398622.html>View full news report here.</a>
`
},
{
"date": "March 18",
"day": "Wednesday",
"desc": `<p>Another positive case recorded in Pune city. The latest patient had a travel history to France and Netherlands.</p>
<p>With this, the total number of positive coronavirus cases in Maharashtra has reached 42 while Pune alone has reported 18 cases.</p>
<p><a href="https://www.indiatoday.in/india/story/pune-records-another-positive-coronavirus-case-maharashtra-count-goes-up-to-42-1656731-2020-03-18">View full report here</a></p>
The Divisional Commissioner warned of strict action against people who violate home quarantine norms.
<p>A 64-year-old man who had tested positive for the coronavirus died in Mumbai on Tuesday, taking the total death toll in India to 3.</p>
`
},
{
"date": "March 17",
"day": "Tuesday",
"desc":`<p> No positive cases yet. </p>`
},
{
"date": "March 16",
"day": "Monday",
"desc":`
<p>Section 144 has been imposed in the Pimpri-Chinchwad area of Pune after it turned into a concentration zone for coronavirus cases in the region. As many as 16 coronavirus cases have been reported from Pune. Most of the infected have had a connection to Pimpri-Chinchwad.</p>
<p><a href="https://www.google.com/amp/s/www.indiatvnews.com/amp/news/india/pune-coronavirus-outbreak-section-144-imposed-pimpri-chinchwad-covid19-598740">View full report here</a></p>`
},
{
"date": "March 15",
"day": "Sunday",
"desc":`<p>2 more cases spotted in Pune.
Total count rises to 17 in the city.</p>`
},
{
"date": "March 14",
"day": "Saturday",
"desc":`
<p>5 more test positive in Pune City.</p>
<p>Four of them had come in contact with a group which had returned from Dubai. Some members of this group have already tested positive.</p>
<p>It took the number of confirmed cases to 15 in the city.</p>
<p><a href="https://www.google.com/amp/s/m.timesofindia.com/india/five-more-coronavirus-patients-in-pune-area-maharashtra-count-31/amp_articleshow/74632315.cms">View full report here</a></p>`},
{
"date": "March 13",
"day": "Friday",
"desc":`<p>A student from the US tests positive. Total 10 cases in Pune.</p>
<p>Coronavirus has been declared an epidemic in Mumbai, Navi Mumbai, Nagpur, Pune and Pimpri Chinchwad.</p>
<p>The move comes close on the heels of similar decisions being taken by the governments of Kerala, Delhi and Karnataka</p>
<p><a href="https://www.google.com/amp/s/www.livemint.com/news/india/coronavirus-maharashtra-orders-closure-of-malls-cinema-halls-in-five-cities-until-31-march/amp-11584102050561.html">View full report here</a></p>
<p>Different parents’ groups, Aam Admi Party (AAP) and transport owners want schools to shut down in the wake of more people testing positive for coronavirus in the city.</p>
<p><a href="https://m.timesofindia.com/city/pune/covid-19-in-pune-chorus-rises-to-cancel-exams-shut-down-schools/amp_articleshow/74604613.cms">View full report here</a></p>`
},
{
"date": "March 12",
"day": "Thursday",
"desc":`<p>Three more cases of coronavirus were detected on Wednesday in Pune, with a total number of patients now standing at eight. Of the 51 people who were quarantined at Naidu hospital, following the first contact between the virus and city this week, two patients’ reports are inconclusive; the rest 48 results are awaited</p>
<p><a href="https://www.google.com/amp/s/punemirror.indiatimes.com/pune/civic/3-new-coronavirus-cases-with-51-in-quarantine-total-8-positive-in-pune/amp_articleshow/74582712.cms">View full report here</a></p>`
},
{
"date": "March 11",
"day": "Wednesday",
"desc":`<p>More 5 have tested positive for the virus in Pune City.
Accenture in Blue ridge IT park was evacuated when the daughter of the couple that had returned from Dubai had tested positive.</p>
<p>The following information is provided by a reddit user who works at Accenture.
He gives clarity on the situation and to avoid rumours:</p>
<ol>
<li>The Blue Ridge IT Park is in Hindjawadi Phase 2.</li>
<li>As of March12 Blue Ridge IT Park is not closed down. Accenture is located in 3rd floor IT-01 building and it was temporary evacuated on March12 for deep cleaning. The remaining floors of the building as well as all 9 other buildings and common areas are still open… as of March12.</li>
<li>The daughter who works at Accenture (of the couple from Dubai) has received a positive test result, however, she does not work for the Blue Ridge office. The cleaning was precautionary.</li>
</ol>
<p>As of March 12 the following measures are in place at Blue Ridge</p>
<ol>
<li>All food handlers in Qubix are required masks</li>
<li>All housekeepers and security staff are required to wear masks (not verified in all buildings!)</li>
<li>Thermal scans of all employees entering the buildings</li>
<li>Emergency stairwells are open to use instead of cramped elevators (not verified in all buildings!)</li>
<li>Increased disinfecting of common surfaces like door handles, buttons, etc.</li>
</ol>
<p>Mass screening has started for testing people on Singhad road as the first cases were detected there.</p>
<p>After the cab driver that had tested positive yesterday for corona, Ola and Uber have issued a precaution regarding the pick up of passengers from the airport.
They are distributing sanitizers and masks to their drivers and ensuring safety of all the stakeholders.</p>
<p><a href="https://www.google.com/amp/s/www.businessinsider.in/business/startups/news/coronavirus-pandemic-heres-what-flipkart-zomato-swiggy-ola-uber-are-doing-for-delivery-agents-and-cabbies-who-cant-work-from-home/amp_articleshow/74589898.cms">View a news report here</a></p>`
},
{
"date": "March 9-10",
"day": "Monday-Tuesday",
"desc":`<p>The first 2 cases of Corona Virus emerged and after further tests, total 5 are infectes with the virus in the city.
A couple, their and a cabby is infected. The couple had recently returned from Dubai.</p>
<p>Many schools in Singhad road are planned to shut for 2 days.
Authorities have warned traders to not take advantage of the situation by over pricing the masks and sanitizers.</p>
<p>A Report from the Pune Times website:-</p>
<p>In view of five persons testing positive for the coronavirus infection in Pune, three schools in Sinhgad Road area have decided to remain closed for the next two-three days. Nanded City School and Pawar Public School, located at Nanded city township, will remain shut till Saturday.</p>
<p>Total travellers quarantined in Pune: 12</p>
<p><a href="https://www.google.com/amp/s/m.timesofindia.com/city/pune/as-pune-couple-test-positive-for-covid-19-mayor-says-dont-panic/amp_articleshow/74561100.cms">View a news report here</a></p>`
}
];
$.ajax({
url: "https://coronavirus-tracker-api.herokuapp.com/v2/locations?country_code=IN&timelines=true",
method: "GET"
}).done(function (data) {
document.getElementById("confirmed").innerHTML = data.locations[0].latest.confirmed;
document.getElementById("deaths").innerHTML = data.locations[0].latest.deaths;
console.log(data.locations[0].latest)
document.getElementById("recovered").innerHTML = data.locations[0].latest.recovered;
$(document).ready(function() {
var mainDiv = $("#main-div");
$(".loading").fadeOut(1750);
var temp = `<br>
<div class="d-flex flex-column flex-md-row flex-items-center flex-md-items-center">
<div class="col-12 col-md-10 d-flex flex-column flex-justify-center flex-items-center flex-md-items-start pl-md-4">
<h1 class="text-normal lh-condensed">DATE</h1>
<p class="h4 text-gray text-normal mb-2">DAY</p>
</div>
<div class=container-md>DESCRIPTION</div>
</div>`
for(var i=0;i<window.data.length;i++) {
var outHtml = temp.replace("DAY", "<i><strong>"+window.data[i].day+"</strong></i>").replace("DATE", window.data[i].date).replace("DESCRIPTION",window.data[i].desc)
mainDiv.append(outHtml)
}
ScrollReveal({ reset: true }).reveal('p', {delay: 4})
});
})