<|start_filename|>new CoronaInfo dashboard/corona-info/state.js<|end_filename|>
//s1 = state name (rank 1)
//t1 = total cases (in rank 1 state)
//r1 = total recovered (in rank 1 state)
//d1 = total deaths (in rank 1 state)


var api_url2 = 'https://api.covid19india.org/data.json';

async function getData() {
	const response = await fetch(api_url);
	const data = await response.json();


	/******************/

	//rank1

	document.getElementById("s1-name").innerHTML = (data.statewise[1].state).toUpperCase();
	//  console.log(data.statewise[1].state);
	document.getElementById("s1-total").innerHTML = (data.statewise[1].confirmed);
	//  console.log(data.statewise[1].confirmed);
	document.getElementById("s1-deaths").innerHTML = (data.statewise[1].deaths);
	//	console.log(data.statewise[1].deaths);
	
	
	/******************/

	//rank2

	document.getElementById("s2-name").innerHTML = (data.statewise[2].state).toUpperCase();
	//  console.log(data.statewise[2].state);
	document.getElementById("s2-total").innerHTML = (data.statewise[2].confirmed);
	//  console.log(data.statewise[2].confirmed);
	document.getElementById("s2-deaths").innerHTML = (data.statewise[2].deaths);
	//	console.log(data.statewise[2].deaths);
	
	
	/******************/

	//rank3

	document.getElementById("s3-name").innerHTML = (data.statewise[3].state).toUpperCase();
	//  console.log(data.statewise[3].state);
	document.getElementById("s3-total").innerHTML = (data.statewise[3].confirmed);
	//  console.log(data.statewise[3].confirmed);
	document.getElementById("s3-deaths").innerHTML = (data.statewise[3].deaths);
	//	console.log(data.statewise[3].deaths);
	
	
	/******************/

	//rank4

	document.getElementById("s4-name").innerHTML = (data.statewise[4].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s4-total").innerHTML = (data.statewise[4].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s4-deaths").innerHTML = (data.statewise[4].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank5

	document.getElementById("s5-name").innerHTML = (data.statewise[5].state).toUpperCase();
	//  console.log(data.statewise[1].state);
	document.getElementById("s5-total").innerHTML = (data.statewise[5].confirmed);
	//  console.log(data.statewise[1].confirmed);
	document.getElementById("s5-deaths").innerHTML = (data.statewise[5].deaths);
	//	console.log(data.statewise[1].deaths);
	
	
	/******************/

	//rank6

	document.getElementById("s6-name").innerHTML = (data.statewise[6].state).toUpperCase();
	//  console.log(data.statewise[2].state);
	document.getElementById("s6-total").innerHTML = (data.statewise[6].confirmed);
	//  console.log(data.statewise[2].confirmed);
	document.getElementById("s6-deaths").innerHTML = (data.statewise[6].deaths);
	//	console.log(data.statewise[2].deaths);
	
	
	/******************/

	//rank7

	document.getElementById("s7-name").innerHTML = (data.statewise[7].state).toUpperCase();
	//  console.log(data.statewise[3].state);
	document.getElementById("s7-total").innerHTML = (data.statewise[7].confirmed);
	//  console.log(data.statewise[3].confirmed);
	document.getElementById("s7-deaths").innerHTML = (data.statewise[7].deaths);
	//	console.log(data.statewise[3].deaths);
	
	
	/******************/

	//rank8

	document.getElementById("s8-name").innerHTML = (data.statewise[8].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s8-total").innerHTML = (data.statewise[8].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s8-deaths").innerHTML = (data.statewise[8].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank9

	document.getElementById("s9-name").innerHTML = (data.statewise[9].state).toUpperCase();
	//  console.log(data.statewise[3].state);
	document.getElementById("s9-total").innerHTML = (data.statewise[9].confirmed);
	//  console.log(data.statewise[3].confirmed);
	document.getElementById("s9-deaths").innerHTML = (data.statewise[9].deaths);
	//	console.log(data.statewise[3].deaths);
	
	
	/******************/

	//rank10

	document.getElementById("s10-name").innerHTML = (data.statewise[10].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s10-total").innerHTML = (data.statewise[10].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s10-deaths").innerHTML = (data.statewise[10].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank11

	document.getElementById("s11-name").innerHTML = (data.statewise[11].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s11-total").innerHTML = (data.statewise[11].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s11-deaths").innerHTML = (data.statewise[11].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank12

	document.getElementById("s12-name").innerHTML = (data.statewise[12].state).toUpperCase();
	//  console.log(data.statewise[3].state);
	document.getElementById("s12-total").innerHTML = (data.statewise[12].confirmed);
	//  console.log(data.statewise[3].confirmed);
	document.getElementById("s12-deaths").innerHTML = (data.statewise[12].deaths);
	//	console.log(data.statewise[3].deaths);
	
	
	/******************/

	//rank13

	document.getElementById("s13-name").innerHTML = (data.statewise[13].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s13-total").innerHTML = (data.statewise[13].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s13-deaths").innerHTML = (data.statewise[13].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank14

	document.getElementById("s14-name").innerHTML = (data.statewise[14].state).toUpperCase();
	//  console.log(data.statewise[3].state);
	document.getElementById("s14-total").innerHTML = (data.statewise[14].confirmed);
	//  console.log(data.statewise[3].confirmed);
	document.getElementById("s14-deaths").innerHTML = (data.statewise[14].deaths);
	//	console.log(data.statewise[3].deaths);
	
	
	/******************/

	//rank15

	document.getElementById("s15-name").innerHTML = (data.statewise[15].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s15-total").innerHTML = (data.statewise[15].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s15-deaths").innerHTML = (data.statewise[15].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank16

	document.getElementById("s16-name").innerHTML = (data.statewise[16].state).toUpperCase();
	//  console.log(data.statewise[3].state);
	document.getElementById("s16-total").innerHTML = (data.statewise[16].confirmed);
	//  console.log(data.statewise[3].confirmed);
	document.getElementById("s16-deaths").innerHTML = (data.statewise[16].deaths);
	//	console.log(data.statewise[3].deaths);
	
	
	/******************/

	//rank17

	document.getElementById("s17-name").innerHTML = (data.statewise[17].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s17-total").innerHTML = (data.statewise[17].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s17-deaths").innerHTML = (data.statewise[17].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank18

	document.getElementById("s18-name").innerHTML = (data.statewise[18].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s18-total").innerHTML = (data.statewise[18].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s18-deaths").innerHTML = (data.statewise[18].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank19

	document.getElementById("s19-name").innerHTML = (data.statewise[19].state).toUpperCase();
	//  console.log(data.statewise[3].state);
	document.getElementById("s19-total").innerHTML = (data.statewise[19].confirmed);
	//  console.log(data.statewise[3].confirmed);
	document.getElementById("s19-deaths").innerHTML = (data.statewise[19].deaths);
	//	console.log(data.statewise[3].deaths);
	
	
	/******************/

	//rank20

	document.getElementById("s20-name").innerHTML = (data.statewise[20].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s20-total").innerHTML = (data.statewise[20].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s20-deaths").innerHTML = (data.statewise[20].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank21

	document.getElementById("s21-name").innerHTML = (data.statewise[21].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s21-total").innerHTML = (data.statewise[21].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s21-deaths").innerHTML = (data.statewise[21].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank22

	document.getElementById("s22-name").innerHTML = (data.statewise[22].state).toUpperCase();
	//  console.log(data.statewise[3].state);
	document.getElementById("s22-total").innerHTML = (data.statewise[22].confirmed);
	//  console.log(data.statewise[3].confirmed);
	document.getElementById("s22-deaths").innerHTML = (data.statewise[22].deaths);
	//	console.log(data.statewise[3].deaths);
	
	
	/******************/

	//rank23

	document.getElementById("s23-name").innerHTML = (data.statewise[23].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s23-total").innerHTML = (data.statewise[23].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s23-deaths").innerHTML = (data.statewise[23].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank24

	document.getElementById("s24-name").innerHTML = (data.statewise[24].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s24-total").innerHTML = (data.statewise[24].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s24-deaths").innerHTML = (data.statewise[24].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank25

	document.getElementById("s25-name").innerHTML = (data.statewise[25].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s25-total").innerHTML = (data.statewise[25].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s25-deaths").innerHTML = (data.statewise[25].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank26

	document.getElementById("s26-name").innerHTML = (data.statewise[26].state).toUpperCase();
	//  console.log(data.statewise[3].state);
	document.getElementById("s26-total").innerHTML = (data.statewise[26].confirmed);
	//  console.log(data.statewise[3].confirmed);
	document.getElementById("s26-deaths").innerHTML = (data.statewise[26].deaths);
	//	console.log(data.statewise[3].deaths);
	
	
	/******************/

	//rank27

	document.getElementById("s27-name").innerHTML = (data.statewise[27].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s27-total").innerHTML = (data.statewise[27].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s27-deaths").innerHTML = (data.statewise[27].deaths);
	//	console.log(data.statewise[4].deaths);

	
	/******************/

	//rank28

	document.getElementById("s28-name").innerHTML = (data.statewise[28].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s28-total").innerHTML = (data.statewise[28].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s28-deaths").innerHTML = (data.statewise[28].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank29

	document.getElementById("s29-name").innerHTML = (data.statewise[29].state).toUpperCase();
	//  console.log(data.statewise[3].state);
	document.getElementById("s29-total").innerHTML = (data.statewise[29].confirmed);
	//  console.log(data.statewise[3].confirmed);
	document.getElementById("s29-deaths").innerHTML = (data.statewise[29].deaths);
	//	console.log(data.statewise[3].deaths);
	
	
	/******************/

	//rank30

	document.getElementById("s30-name").innerHTML = (data.statewise[30].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s30-total").innerHTML = (data.statewise[30].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s30-deaths").innerHTML = (data.statewise[30].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank31

	document.getElementById("s31-name").innerHTML = (data.statewise[31].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s31-total").innerHTML = (data.statewise[31].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s31-deaths").innerHTML = (data.statewise[31].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank32

	document.getElementById("s32-name").innerHTML = (data.statewise[32].state).toUpperCase();
	//  console.log(data.statewise[3].state);
	document.getElementById("s32-total").innerHTML = (data.statewise[32].confirmed);
	//  console.log(data.statewise[3].confirmed);
	document.getElementById("s32-deaths").innerHTML = (data.statewise[32].deaths);
	//	console.log(data.statewise[3].deaths);
	
	
	/******************/

	//rank33

	document.getElementById("s33-name").innerHTML = (data.statewise[33].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s33-total").innerHTML = (data.statewise[33].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s33-deaths").innerHTML = (data.statewise[33].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank34

	document.getElementById("s34-name").innerHTML = (data.statewise[34].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s34-total").innerHTML = (data.statewise[34].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s34-deaths").innerHTML = (data.statewise[34].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank35

	document.getElementById("s35-name").innerHTML = (data.statewise[35].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s35-total").innerHTML = (data.statewise[35].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s35-deaths").innerHTML = (data.statewise[35].deaths);
	//	console.log(data.statewise[4].deaths);
	
	
	/******************/

	//rank36

	document.getElementById("s36-name").innerHTML = (data.statewise[36].state).toUpperCase();
	//  console.log(data.statewise[3].state);
	document.getElementById("s36-total").innerHTML = (data.statewise[36].confirmed);
	//  console.log(data.statewise[3].confirmed);
	document.getElementById("s36-deaths").innerHTML = (data.statewise[36].deaths);
	//	console.log(data.statewise[3].deaths);
	
	
	/******************/

	//rank37

	document.getElementById("s37-name").innerHTML = (data.statewise[37].state).toUpperCase();
	//  console.log(data.statewise[4].state);
	document.getElementById("s37-total").innerHTML = (data.statewise[37].confirmed);
	//  console.log(data.statewise[4].confirmed);
	document.getElementById("s37-deaths").innerHTML = (data.statewise[37].deaths);
	//	console.log(data.statewise[4].deaths);


	
	
	for(i=1;i<=37;i++)
		{
			if(document.getElementById("s"+i+"-name").innerHTML == "ANDAMAN AND NICOBAR ISLANDS")
				{
					document.getElementById("s"+i+"-name").innerHTML = "A & N ISLANDS";
				}
			
			if(document.getElementById("s"+i+"-name").innerHTML == "DADRA AND <NAME>")
				{
					document.getElementById("s"+i+"-name").innerHTML = "D & N HAVELI";
				}
		}
	
	
}




getData(); //showing the data


var interval = setInterval(function () {
	getData();
}, 120000);


<|start_filename|>thanks.js<|end_filename|>
//window.onload=function()  //executes when the page finishes loading
//{
//	setTimeout(func1, 10000);  //sets a timer which calls function func1 after 2,000 milliseconds = 2 secs.
//	
//};
//function func1()
//{
//	document.getElementById("thanks").style.transition = "all 10s ease";
//	document.getElementById("thanks").style.display = "block";
//	
//}

//function large()
//{
//	document.getElementById("donate").style.scale = "100";
//}



<|start_filename|>new CoronaInfo dashboard/corona-info/buyme.js<|end_filename|>
! function (e) {
	var t = {};

	function n(a) {
		if (t[a]) return t[a].exports;
		var o = t[a] = {
			i: a,
			l: !1,
			exports: {}
		};
		return e[a].call(o.exports, o, o.exports, n), o.l = !0, o.exports
	}
	n.m = e, n.c = t, n.d = function (e, t, a) {
		n.o(e, t) || Object.defineProperty(e, t, {
			enumerable: !0,
			get: a
		})
	}, n.r = function (e) {
		"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
			value: "Module"
		}), Object.defineProperty(e, "__esModule", {
			value: !0
		})
	}, n.t = function (e, t) {
		if (1 & t && (e = n(e)), 8 & t) return e;
		if (4 & t && "object" == typeof e && e && e.__esModule) return e;
		var a = Object.create(null);
		if (n.r(a), Object.defineProperty(a, "default", {
				enumerable: !0,
				value: e
			}), 2 & t && "string" != typeof e)
			for (var o in e) n.d(a, o, function (t) {
				return e[t]
			}.bind(null, o));
		return a
	}, n.n = function (e) {
		var t = e && e.__esModule ? function () {
			return e.default
		} : function () {
			return e
		};
		return n.d(t, "a", t), t
	}, n.o = function (e, t) {
		return Object.prototype.hasOwnProperty.call(e, t)
	}, n.p = "", n(n.s = 0)
}

([function (e, t, n) {
	var a = document.querySelector('script[data-name="BMC-Widget"]');
	window.onload = function () {
		new FontFace("Avenir Book1", "url(https://bmc-cdn.nyc3.digitaloceanspaces.com/Fonts/710789a0-1557-48a1-8cec-03d52d663d74.eot)"), new FontFace("Avenir Book2", "url(https://bmc-cdn.nyc3.digitaloceanspaces.com/Fonts/710789a0-1557-48a1-8cec-03d52d663d74.eot)"), new FontFace("Avenir Book3", "url(https://bmc-cdn.nyc3.digitaloceanspaces.com/Fonts/710789a0-1557-48a1-8cec-03d52d663d74.eot)"), new FontFace("Avenir Book4", "url(https://bmc-cdn.nyc3.digitaloceanspaces.com/Fonts/65d75eb0-2601-4da5-a9a4-9ee67a470a59.woff)"), new FontFace("Avenir Book5", "url(https://bmc-cdn.nyc3.digitaloceanspaces.com/Fonts/65d75eb0-2601-4da5-a9a4-9ee67a470a59.woff)");
		
		
		new FontFace("Avenir Book6", "url(https://bmc-cdn.nyc3.digitaloceanspaces.com/Fonts/65d75eb0-2601-4da5-a9a4-9ee67a470a59.woff)").load().then((function (e) {
			document.fonts.add(e)
		})).catch((function (e) {}));
		var e = document.createElement("div");
		
		
		e.id = "bmc-wbtn",
		e.style.display = "flex",
		e.style.alignItems = "center",
		e.style.justifyContent = "center",
		e.style.width = "8.5rem",
		e.style.height = "8.5rem",
		e.style.background = a.dataset.color,
		e.style.color = "white",
		e.style.borderRadius = "50%",
		e.style.position = "fixed", "left" == a.dataset.position ? e.style.left = a.dataset.x_margin + "px" : e.style.right = a.dataset.x_margin + "px", e.style.bottom = a.dataset.y_margin + "px", e.style.boxShadow = "0 4px 8px rgba(0,0,0,.4)", e.innerHTML = '<img src="https://cdn.buymeacoffee.com/widget/assets/coffee%20cup.svg" alt="Buy Me A Coffee" style="height: 4rem; margin: 0; padding: 0;">', e.style.zIndex = "999", e.style.cursor = "pointer", e.style.fontWeight = "600", e.style.transition = "all .2s ease";
		var t = document.createElement("div");
		t.style.position = "fixed", t.style.top = "0", t.style.left = "0", t.style.width = "0", t.style.height = "0", t.style.background = "rgba(0, 0, 0, 0)", t.style.textAlign = "center", t.style.zIndex = "9999", t.style.transition = "all .4s ease";
		var n = document.createElement("iframe");
		n.style.position = "fixed", n.style.margin = "0", n.style.border = "0", "left" == a.dataset.position ? n.style.left = "4rem" : n.style.right = "4rem", n.style.bottom = "12rem", n.style.height = "80rem", n.style.opacity = "0", n.style.width = "80vw", n.style.maxWidth = "80vw", n.style.borderRadius = "1vh", n.style.boxShadow = "0 8px 16px rgba(0,0,0,.4)", n.style.background = "#fff", n.style.backgroundImage = "url(https://cdn.buymeacoffee.com/assets/img/widget/loader.svg)", n.style.backgroundPosition = "center", n.style.backgroundSize = "10vh", n.style.backgroundRepeat = "no-repeat", n.style.zIndex = "99999", n.style.transition = "all .4s ease", n.style.maxHeight = "620px";
		var o = document.createElement("div");
		o.style.position = "fixed", o.style.display = "none", o.style.opacity = "0", "left" == a.dataset.position ? o.style.left = parseInt(a.dataset.x_margin, 10) + 84 + "px" : o.style.right = "12rem", o.style.bottom = "2.5rem", o.style.background = "#ffffff", o.style.zIndex = "999", o.style.transition = "all .4s ease", o.innerText = a.dataset.message, o.style.boxShadow = "0 4px 8px rgba(0,0,0,.3)", o.style.padding = "3vw", o.style.borderRadius = "1vh", o.style.fontSize = "1.7vh", o.style.color = "#000000", o.style.width = "auto", o.style.maxWidth = "70vw", o.style.lineHeight = "1.5", o.style.fontFamily = '"Avenir Book1", "Avenir Book2", "Avenir Book3", "Avenir Book4", "Avenir Book5", "Avenir Book6", sans-serif', o.style.display = "none", document.body.appendChild(t), t.appendChild(n), document.body.appendChild(e), document.body.appendChild(o);
		var s = 0;
		
		// payment card design
		
//		e.onclick = function () {
//			s || (n.src = "https://www.buymeacoffee.com/widget/page/" + a.dataset.id + "?description=" + encodeURIComponent(a.dataset.description) + "&color=" + encodeURIComponent(a.dataset.color)), s++, o.style.opacity = "0", o.style.display = "none", t.style.width = "100%", t.style.height = "100%", n.style.height = "100vh", n.style.opacity = "1", e.style.transform = "scale(.8)", e.innerHTML = '<svg focusable="false" aria-hidden="true" width="14" height="14"><path fill="#ffffff" d="M13.978 12.637l-1.341 1.341L6.989 8.33l-5.648 5.648L0 12.637l5.648-5.648L0 1.341 1.341 0l5.648 5.648L12.637 0l1.341 1.341L8.33 6.989l5.648 5.648z" fill-rule="evenodd"></path></svg>'
//		}, 
//			
			
			
			t.onclick = function () {
				t.href = "https://www.buymeacoffee.com/Druhin",
			t.style.width = "0", t.style.height = "0", n.style.height = "0", n.style.opacity = "0", e.style.transform = "scale(1)", e.innerHTML = '<img src="https://cdn.buymeacoffee.com/widget/assets/coffee%20cup.svg" alt="Buy Me A Coffee" style="height: 5rem; margin: 0; padding: 0;">'
		}, setTimeout((function () {
			a.dataset.message && "" != a.dataset.message && (o.style.display = "block", o.style.opacity = "1")
		}), 3e3)
	}
}]);


<|start_filename|>new CoronaInfo dashboard/corona-info/death-sort.js<|end_filename|>
// 0 means true
// 1 means false
localStorage.setItem('deaths', 0);

var audio = new Audio('CoffinRemixOP.mp3');
audio.volume = 0.5;




function deathsort() {

	if (localStorage.getItem('deaths') == 0) {

		localStorage.setItem('deaths', 1);

		//		document.getElementById("death-sort").style.marginTop = "2vh";

		document.getElementById("s0-deaths").innerHTML = "U DEAD *";

		audio.play();

		if (audio.ended) {
			document.getElementById("s0-deaths").innerHTML = "DEATHS";
			localStorage.setItem('deaths', 0);
		}


		//		let s = [];
		//		let m = [];
		//
		//		//storing the values according to cases
		//
		//		m[1] = document.getElementById("s1-deaths").innerHTML;
		//
		//		s[1] = parseInt(document.getElementById("s1-deaths").innerHTML);
		//		s[2] = parseInt(document.getElementById("s2-deaths").innerHTML);
		//		s[3] = parseInt(document.getElementById("s3-deaths").innerHTML);
		//		s[4] = parseInt(document.getElementById("s4-deaths").innerHTML);
		//		s[5] = parseInt(document.getElementById("s5-deaths").innerHTML);
		//		s[6] = parseInt(document.getElementById("s6-deaths").innerHTML);
		//		s[7] = parseInt(document.getElementById("s7-deaths").innerHTML);
		//		s[8] = parseInt(document.getElementById("s8-deaths").innerHTML);
		//		s[9] = parseInt(document.getElementById("s9-deaths").innerHTML);
		//		s[10] = parseInt(document.getElementById("s10-deaths").innerHTML);
		//		s[11] = parseInt(document.getElementById("s11-deaths").innerHTML);
		//		s[12] = parseInt(document.getElementById("s12-deaths").innerHTML);
		//		s[13] = parseInt(document.getElementById("s13-deaths").innerHTML);
		//		s[14] = parseInt(document.getElementById("s14-deaths").innerHTML);
		//		s[15] = parseInt(document.getElementById("s15-deaths").innerHTML);
		//		s[16] = parseInt(document.getElementById("s16-deaths").innerHTML);
		//		s[17] = parseInt(document.getElementById("s17-deaths").innerHTML);
		//		s[18] = parseInt(document.getElementById("s18-deaths").innerHTML);
		//		s[19] = parseInt(document.getElementById("s19-deaths").innerHTML);
		//		s[20] = parseInt(document.getElementById("s20-deaths").innerHTML);
		//		s[21] = parseInt(document.getElementById("s21-deaths").innerHTML);
		//		s[22] = parseInt(document.getElementById("s22-deaths").innerHTML);
		//		s[23] = parseInt(document.getElementById("s23-deaths").innerHTML);
		//		s[24] = parseInt(document.getElementById("s24-deaths").innerHTML);
		//		s[25] = parseInt(document.getElementById("s25-deaths").innerHTML);
		//		s[26] = parseInt(document.getElementById("s26-deaths").innerHTML);
		//		s[27] = parseInt(document.getElementById("s27-deaths").innerHTML);
		//		s[28] = parseInt(document.getElementById("s28-deaths").innerHTML);
		//		s[29] = parseInt(document.getElementById("s29-deaths").innerHTML);
		//		s[30] = parseInt(document.getElementById("s30-deaths").innerHTML);
		//		s[31] = parseInt(document.getElementById("s31-deaths").innerHTML);
		//		s[32] = parseInt(document.getElementById("s32-deaths").innerHTML);
		//		s[33] = parseInt(document.getElementById("s33-deaths").innerHTML);
		//		s[34] = parseInt(document.getElementById("s34-deaths").innerHTML);
		//		s[35] = parseInt(document.getElementById("s35-deaths").innerHTML);
		//		s[36] = parseInt(document.getElementById("s36-deaths").innerHTML);
		//		s[37] = parseInt(document.getElementById("s37-deaths").innerHTML);

		//		for (i = 1; i <= 37; i++) {
		//			console.log(s[i]);
		//			
		//			
		//		}
		//
		//		s.sort(function (a, b) {
		//			return b - a;
		//		});
		//
		//
		//		for (i = 0; i <= 37; i++) {
		//			console.log(s[i]);
		//
		//
		//		}




	} else {

		localStorage.setItem('deaths', 0);

		//		document.getElementById("death-sort").style.marginTop = "0vh";

		document.getElementById("s0-deaths").innerHTML = "DEATHS";

		audio.pause();
		audio.currentTime = 0;



	}
}


<|start_filename|>notification.js<|end_filename|>
//if (localStorage.getItem('news') == "") {
//	
//}
//else{
//	
//}

// 0 means true
// 1 means false
localStorage.setItem('notify', 0);


function notify() {

	//	getData5();

	if (localStorage.getItem('notify') == 0) {

		//changing the notification icon
		document.getElementById("notification").src = "assets/notification-off.svg";

		//saving it in the local storage
		localStorage.setItem('notify', 1);

		//bringing the card down by 10vh
		document.getElementById("card").style.marginTop = "25.5vh";
		document.getElementById("card").style.transition = "all 0.5s ease";


	} else {

		//changing the notification icon
		document.getElementById("notification").src = "assets/notification-light.svg";

		//saving it in the local storage
		localStorage.setItem('notify', 0);

		//bringing the card down by 10vh
		document.getElementById("card").style.marginTop = "9vh";
		document.getElementById("card").style.transition = "all 0.5s ease";
	}
}

// getting the latest 2 news

var api_url5 = 'https://api.covid19india.org/updatelog/log.json';

var x = "AM";

async function getData5() {
	var response5 = await fetch(api_url5);
	var data5 = await response5.json();


	//	console.log(data5);
	//	console.log(data5.length);
	//	console.log(data5[data5.length-1]);
	//	console.log(data5[data5.length-1].update);
	//	console.log(data5[data5.length - 1].timestamp);

	//	console.log(Date.now());

	function Unix_timestamp(t) {
		var dt = new Date(t * 1000);
		var hr = dt.getHours();

		//		console.log(hr);

		if (hr > 12) {
			x = "PM";
			hr = hr - 12;
		} else if (hr == 12) {
			x = "PM";
			hr = 12;
		} else if (hr < 12) {
			x = "AM";
		}

		if (hr == 00) {
			x = "AM";
			hr = 12;
		}

		var m = "0" + dt.getMinutes();
		var s = "0" + dt.getSeconds();
		return hr + ' : ' + m.substr(-2);
		console.log(hr);
	}

	//	console.log(Unix_timestamp(data5[data5.length - 1].timestamp));
	//	var tstamp = ();
	var time = Unix_timestamp(data5[data5.length - 1].timestamp);

	//	console.log(data5[data5.length - 1].timestamp);
	//	console.log(Unix_timestamp(data5[data5.length - 1].timestamp));

	//	console.log(time + " " + x);


	document.getElementById("news1-t").innerHTML = time + " " + x;


	document.getElementById("news1-c").innerHTML = (data5[data5.length - 1].update).toUpperCase();
	//	console.log(data5);


}

getData5();

//var interval5 = setInterval(function () {
//	getData5();
//}, 10000);
