-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathchile.html
148 lines (138 loc) · 6.83 KB
/
chile.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
<!DOCTYPE html>
<!--
Name: index.html
Purpose: This HTML file creates an interactive web map of COVID-19 cases using
data from the GitHub repository and REST API of Johns Hopkins CSSE,
DXY, KCDC, StatisticheCoronavirus, and Minsal.
Author: Huidae Cho
Since: February 2, 2020
Copyright (C) 2020, Huidae Cho <https://idea.isnew.info>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<html lang="es">
<head>
<title>COVID-19 Chile</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="refresh" content="1800" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.1.1/css/ol.css" />
<script src="https://cdn.jsdelivr.net/gh/openlayers/openlayers.github.io@master/en/v6.1.1/build/ol.js"></script>
<link rel="stylesheet" href="https://cdn.rawgit.com/Viglino/ol-ext/master/dist/ol-ext.min.css" />
<script type="text/javascript" src="https://cdn.rawgit.com/Viglino/ol-ext/master/dist/ol-ext.min.js"></script>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<script src="https://code.iconify.design/1/1.0.4/iconify.min.js"></script>
<link rel="stylesheet" href="covid-19.css" />
<script>
/*******************************************************************************
* CONFIGURATION
******************************************************************************/
// XXX: Add your Bing Maps key here and secure it from the Bing Maps Dev Center
// at https://www.bingmapsportal.com
const bingMapsKey = 'AhuHr9JixtsyKu9uSOQ8W0lIr7_gC2KiFxOlmshvRDb_BSWDkhnGX7oeS5zJzHo0';
const dataUrl = 'geodata.json'
const dataSources = '<a href="https://arcg.is/0fHmTX">CSSE</a><sup><a href="https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_daily_reports">1</a>' +
',<a href="https://services9.arcgis.com/N9p5hsImWXAccRNI/arcgis/rest/services/Nc2JKvYFoAEOFCG5JSI6/FeatureServer/1/query?where=1%3D1&outFields=*&f=json">2</a></sup>' +
', <a href="https://www.minsal.cl/nuevo-coronavirus-2019-ncov/casos-confirmados-en-chile-covid-19/">Ministerio de Salud</a>' +
'';
const mapUnits = 'metric';
// median days from first symptom to death
const averageDaysFromConfirmedToDeath = 14;
const plotsMenuItems = [
'Cumulative',
'Increase',
'CFR',
'Confirmed',
'Recovered',
'Deaths',
];
const hasDuplicateData = [
'South Korea',
'Italy',
'Chile',
];
const countryToDisplay = 'Chile';
// OPTIONAL TRANSLATION
const words = {
'Data sources': 'Fuentes de datos',
'confirmed': 'confirmados',
'recovered': 'recuperados',
'deaths': 'fallecidos',
'death': 'fallecido', // singular
'active': 'activo',
'Confirmed': 'Confirmados',
'Recovered': 'Recuperados',
'Deaths': 'Fallecidos',
'Active': 'Activo',
'Cumulative': 'Acumulativo',
'Increase': 'Incremento',
'Others': 'Otros',
};
const getTextFunctions = {
};
/*******************************************************************************
* END OF CONFIGURATION
******************************************************************************/
</script>
</head>
<body>
<div id="header">
<h1>COVID-19 en Chile (V3.0)</h1>
<!-- <span id="virus" class="iconify" data-icon="mdi:virus"></span> -->
<div class="follow-me">
<div class="icons">
<a href="https://github.com/javierconcha/covid-19-Chile"><span class="iconify" data-icon="fa-solid:code-branch"></span></a>
<a href="https://github.com/javierconcha"><span class="iconify" data-icon="fa-brands:github"></span></a>
<a href="https://twitter.com/javierconchas"><span class="iconify" data-icon="fa-brands:twitter"></span></a>
<a href="https://www.researchgate.net/profile/Javier_Concha"><span class="iconify" data-icon="fa-brands:researchgate"></span></a>
<a href="https://www.linkedin.com/in/javieralonsoconcha/"><span class="iconify" data-icon="fa-brands:linkedin"></span></a>
</div>
<div class="author">Creado por <a href="https://sites.google.com/view/javierconcha">Javier A. Concha</a></div>
</div>
<div class="desktop-block">
Modificado de este <a href="https://app.isnew.info/covid-19/">mapa del Covid-19</a>. Datos provistos por el <span id="data-sources"></span> y actualizados alrededor de las 11AM hora local.
<!-- All times are local except for plots in UTC. -->
¿No estas seguro si contrajiste el virus y necesitas el test? <a href="https://coronavirus.udec.cl/"> Haz click aquí.</a>
Disclaimer: Este es un proyecto en desarrollo y de forma voluntaria. El autor no se hace responsable por los daños causados por esta página web. <a href="mailto:jaconcha@gmail.com">¿Sugerencias?</a>
</div>
<div class="mobile-block">
<p style="font-size:13px">
Modificado de este <a href="https://app.isnew.info/covid-19/">mapa del Covid-19</a> por <a href="https://sites.google.com/view/javierconcha">Javier A. Concha</a>. <a href="https://www.minsal.cl/nuevo-coronavirus-2019-ncov/casos-confirmados-en-chile-covid-19/">Datos</a> actualizados alrededor de las 11AM hora local.
<!-- Local times except for plots in UTC. -->
<a href="https://coronavirus.udec.cl/">¿Necesito el test? </a>
<!-- <a href="mailto:jaconcha@gmail.com">¿Sugerencias?</a> -->
</p>
</div>
<!-- <div id="data-sources"></div> -->
<!-- <div id="legend"><span class="iconify" data-icon="mdi:map-legend"></span> Confirmed: logarithmic, Others: area proportional to confirmed, Active rate: opacity</div> -->
<div id="country-links-wrap"><span id="country-links"> </span></div>
</div>
<div id="map"></div>
<div id="info">
<div id="summary">
<h2>Chile Total</h2>
<div id="last-updated-label">Actualización:</div><div id="last-updated"></div>
<table id="global-stats">
<tr class="confirmed"><td>Confirmados:</td><td id="total-confirmed" class="numeric"></td></tr>
<tr class="recovered"><td>Recuperados:</td><td id="total-recovered" class="numeric"></td></tr>
<tr class="deaths"><td>Fallecidos:</td><td id="total-deaths" class="numeric"></td></tr>
</table>
<div class="cfr">CFR<sup><a href="https://www.worldometers.info/coronavirus/coronavirus-death-rate/"><span class="iconify" data-icon="fa:external-link"></span></a></sup>: <span id="cfr"></span></div>
</div>
<div id="plots">
<div id="plots-menu" class="plots-menu"></div>
<div id="plot"></div>
</div>
<div id="stats-by-province"></div>
</div>
<script src="covid-19.js"></script>
</body>
</html>