-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.js
More file actions
15 lines (12 loc) · 697 Bytes
/
ui.js
File metadata and controls
15 lines (12 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class UI {
paint(res) {
var current = document.getElementById('current');
var total = document.getElementById('total');
var recover = document.getElementById('recover');
var death = document.getElementById('death');
current.textContent = res["Dadra and Nagar Haveli and Daman and Diu"].districtData.Daman.active;
total.textContent = res["Dadra and Nagar Haveli and Daman and Diu"].districtData.Daman.confirmed;
recover.textContent = res["Dadra and Nagar Haveli and Daman and Diu"].districtData.Daman.recovered;
death.textContent = res["Dadra and Nagar Haveli and Daman and Diu"].districtData.Daman.deceased;
}
}