-
Notifications
You must be signed in to change notification settings - Fork 3
/
data.html
209 lines (190 loc) · 11.2 KB
/
data.html
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
204
205
206
207
208
209
<!doctype html>
<html lang="en-us">
<head>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-163901291-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-163901291-1');
</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="canonical" href="https://maskbanao.com">
<link rel="alternate" hreflang="en" href="https://maskbanao.com">
<meta property="og:locale" content="en_US">
<meta property="og:url" content="https://maskbanao.com" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Mask Banao - The Science">
<meta property="og:description" content="Here’s how you can use ten minutes, a piece of cloth and an old sewing machine to save someone's life.">
<meta property="og:site_name" content="Mask Banao">
<meta property="og:image" content="https://maskbanao.com/images/Web-Preview.jpg" />
<meta property="og:image:width" content="3600">
<meta property="og:image:height" content="1890">
<meta property="og:image:alt" content="https://maskbanao.com" />
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:title" content="Mask Banao - The Science">
<meta property="twitter:site" content="@maskbanao">
<meta property="twitter:image" content="https://maskbanao.com/images/Web-Preview.jpg" />
<meta property="twitter:image:alt" content="https://maskbanao.com" />
<meta name="twitter:creator" content="@maskbanao">
<meta name="msapplication-TileColor" content="#00aba9">
<meta name="theme-color" content="#ffffff">
<meta name="title" content="Mask Banao">
<meta name="description" content="Here’s how you can use ten minutes, a piece of cloth and an old sewing machine to save someone's life.">
<title>Mask Banao - The Science</title>
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="styles/font-awesome-all.min.css" type="text/css">
<link rel="stylesheet" href="styles/leaflet.css" />
<link rel="stylesheet" href="styles/main.css" type="text/css">
<link rel="stylesheet" href="styles/data.css" type="text/css">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap" rel="stylesheet">
</head>
<body>
<div id="header">
<nav class="navbar">
<a href="index.html" class="navbar-logo">
<img src="images/Mask Banao Logo long.svg" alt="Mask Banao" />
</a>
<button id="navbar-hamburger"></button>
<ul id="navigation">
<li><a class="share-button" id="share-button1">Share Campaign</a></li>
<li><a href="science.html">The Science</a></li>
<li><a href="data.html" class="active">Data</a></li>
<li><a href="social.html">Social Media</a></li>
<li><a href="donate.html" class="nav-underline">Support us</a></li>
<li><a href="index.html#make-a-mask" class="button">Make a mask</a></li>
</ul>
<div class="language-container">
<!-- <div class="language-switcher">
English
</div> -->
</div>
</nav>
</div>
<div class="container">
<!--<div id="map-container">-->
<!--<div class="legend">-->
<!--<h3>Current Active Cases</h3>-->
<!--<ul>-->
<!--<li>More than 1000</li>-->
<!--<li>More than 750</li>-->
<!--<li>More than 500</li>-->
<!--<li>More than 250</li>-->
<!--<li>More than 100</li>-->
<!--<li>More than 50</li>-->
<!--<li>More than 10</li>-->
<!--<li>More than 1</li>-->
<!--<li>Unknown</li>-->
<!--</ul>-->
<!--</div>-->
<!--<div class="map" id="data"></div>-->
<!--</div>-->
<h2 class="dark-green center-text graph-title">Pakistan COVID-19 cases</h2>
<div class="epidemic-graph">
<iframe src="https://datastudio.google.com/embed/reporting/1PLVi5amcc_R5Gh928gTE8-8r8-fLXJQF/page/R24IB" allowfullscreen frameborder="0"></iframe>
<!-- <iframe src="http://epidemicforecasting.org/?selection=PK" scrolling="no" frameborder="0"></iframe> -->
</div>
<div class="graph-source">
Source:
<!-- <a class="green" href="http://epidemicforecasting.org/">epidemicforecasting.org</a> -->
<a class="green" target="_blank" href="http://covid.gov.pk/">covid.gov.pk</a>
</div>
</div>
<div id="share-section">
<div class="share-dialog">
<header>
<h3 class="dialog-title">Share this campaign</h3>
<button class="close-button"><svg><use href="#close"></use></svg></button>
</header>
<div class="targets">
<a class="button" href="https://www.facebook.com/sharer/sharer.php?u=https://maskbanao.com" target="_blank">
<svg>
<use href="#facebook"></use>
</svg>
<span>Facebook</span>
</a>
<a class="button" href="https://twitter.com/intent/tweet?hashtags=MaskBanao,MaskBanaoJaanBachao&original_referer=http%3A%2F%2Flocalhost%2F&ref_src=twsrc%5Etfw&text=%20Ten%20minutes%20and%20a%20piece%20of%20cloth%20can%20save%20a%20citizen%E2%80%99s%20life.%20Here%E2%80%99s%20how%20you%20can%20challenge%20COVID-19.%20&tw_p=tweetbutton&url=http%3A%2F%2Fmaskbanao.com%2F" target="_blank">
<svg>
<use href="#twitter"></use>
</svg>
<span>Twitter</span>
</a>
<a class="button" href="https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fmaskbanao.com">
<svg>
<use href="#linkedin"></use>
</svg>
<span>LinkedIn</span>
</a>
<a class="button" onclick="copyToClipboard('https://maskbanao.com/')">
<span>Copy Link</span>
</a>
</div>
</div>
<svg class="hidden">
<defs>
<symbol id="share-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-share"><path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path><polyline points="16 6 12 2 8 6"></polyline><line x1="12" y1="2" x2="12" y2="15"></line></symbol>
<symbol id="facebook" viewBox="0 0 24 24" fill="#3b5998" stroke="#3b5998" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-facebook"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path></symbol>
<symbol id="twitter" viewBox="0 0 24 24" fill="#1da1f2" stroke="#1da1f2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-twitter"><path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path></symbol>
<symbol id="email" viewBox="0 0 24 24" fill="#777" stroke="#fafafa" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-mail"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></symbol>
<symbol id="linkedin" viewBox="0 0 24 24" fill="#0077B5" stroke="#0077B5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-linkedin"><path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle></symbol>
<symbol id="close" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x-square"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="9" x2="15" y2="15"></line><line x1="15" y1="9" x2="9" y2="15"></line></symbol>
</defs>
</svg>
</div>
<div class="backdrop"></div>
<script>
const shareButton1 = document.querySelector('#share-button1');
const shareDialog = document.querySelector('.share-dialog');
const closeButton = document.querySelector('.close-button');
const backdrop = document.querySelector('.backdrop');
shareButton1.addEventListener('click', event => {
if (navigator.share) {
navigator.share({
title: 'Mask Banao',
url: document.URL
}).then(() => {
console.log('Thanks for sharing!');
})
.catch(console.error);
} else {
shareDialog.classList.add('is-open');
document.querySelector(".backdrop").style.display = "block";
}
});
backdrop.addEventListener('click', closeDialog);
closeButton.addEventListener('click', closeDialog);
function closeDialog() {
shareDialog.classList.remove('is-open');
document.querySelector(".backdrop").style.display = "none";
}
const copyToClipboard = str => {
const el = document.createElement('textarea'); // Create a <textarea> element
el.value = str; // Set its value to the string that you want copied
el.setAttribute('readonly', ''); // Make it readonly to be tamper-proof
el.style.position = 'absolute';
el.style.left = '-9999px'; // Move outside the screen to make it invisible
document.body.appendChild(el); // Append the <textarea> element to the HTML document
const selected =
document.getSelection().rangeCount > 0 // Check if there is any content selected previously
? document.getSelection().getRangeAt(0) // Store selection if found
: false; // Mark as false to know no selection existed before
el.select(); // Select the <textarea> content
document.execCommand('copy'); // Copy - only works as a result of a user action (e.g. click events)
document.body.removeChild(el); // Remove the <textarea> element
if (selected) { // If a selection existed before copying
document.getSelection().removeAllRanges(); // Unselect everything on the HTML document
document.getSelection().addRange(selected); // Restore the original selection
}
};
</script>
<button onclick="scrollToTopFn()" id="scrollToTop" title="Go to top"><i class="fa fa-angle-double-up"></i></button>
<script src="js/pagescroll.js"></script>
<script src="js/axios.js"></script>
<!--<script src="js/leaflet.js"></script>-->
<!--<script src="js/pakistan_data.js"></script>-->
<!--<script src="js/pakistan_districts.js"></script> -->
<!--<script src="js/map.js"></script>-->
<script src="js/navbar.js"></script>
</body>
</html>