-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
109 lines (101 loc) · 5.66 KB
/
index.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
<!doctype html>
<html lang="es">
<head>
<title>COVID-19</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- icon -->
<link rel="icon" href="icon.png">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css">
</head>
<body class="bg-dark">
<div class="container-fluid">
<div class="row justify-content-center">
<div class="col-xl-10">
<h2 id="titulo" class="text-center font-weight-normal pt-1">Casos de COVID-19</h2>
<div id="chartContent" class="mb-3">
<canvas id="myChart"></canvas>
</div>
<div class="row mb-3">
<div class="btn-group col pr-0">
<button id="selectboton" type="button" class="btn btn-dark dropdown-toggle" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">Todas las CCAA</button>
<div id="select" class="dropdown-menu w1 bg-dark">
<a class="dropdown-item" href="#" name="todos">Todas las CCAA</a>
<a class="dropdown-item" href="#" name="AN">Andalucía</a>
<a class="dropdown-item" href="#" name="AR">Aragón</a>
<a class="dropdown-item" href="#" name="AS">Principado de Asturias</a>
<a class="dropdown-item" href="#" name="IB">Islas Baleares</a>
<a class="dropdown-item" href="#" name="CN">Canarias</a>
<a class="dropdown-item" href="#" name="CB">Cantabria</a>
<a class="dropdown-item" href="#" name="CM">Castilla La Mancha</a>
<a class="dropdown-item" href="#" name="CL">Castilla y León</a>
<a class="dropdown-item" href="#" name="CT">Cataluña</a>
<a class="dropdown-item" href="#" name="CE">Ceuta</a>
<a class="dropdown-item" href="#" name="VC">Comunidad Valenciana</a>
<a class="dropdown-item" href="#" name="EX">Extremadura</a>
<a class="dropdown-item" href="#" name="GA">Galicia</a>
<a class="dropdown-item" href="#" name="MD">Comunidad de Madrid</a>
<a class="dropdown-item" href="#" name="ML">Melilla</a>
<a class="dropdown-item" href="#" name="MC">Región de Murcia</a>
<a class="dropdown-item" href="#" name="NC">Comunidad Foral de Navarra</a>
<a class="dropdown-item" href="#" name="PV">País Vasco</a>
<a class="dropdown-item" href="#" name="RI">La Rioja</a>
</div>
</div>
<div class="btn-group col">
<button id="fechasboton" type="button" class="btn btn-dark dropdown-toggle" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">Fechas</button>
<div id="fechas" class="dropdown-menu w2 bg-dark"></div>
</div>
</div>
<div class="row mb-3">
<div class="btn-group col">
<button id="graficoboton" type="button" class="btn btn-dark dropdown-toggle" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">Casos Totales</button>
<div id="grafico" class="dropdown-menu w3 bg-dark">
<a class="dropdown-item" href="#" name="total">Casos totales</a>
<a class="dropdown-item" href="#" name="diario">Casos diarios</a>
</div>
</div>
</div>
<div class="table-responsive rounded">
<table id="table" class="table table-dark w-100 mb-3 rounded"></table>
</div>
<div class="mt-3">
<p class="font-weight-bold">Notas del autor:</p>
<p>Los <span class="red px-1">activos</span> son el resultado de la resta entre los <span
class="darkest px-1">casos</span> (reemplazado por la suma entre <span class="darkest px-1">PCR+</span> y
<span class="darkest px-1">TestAc+</span> en caso de que existan), los <span
class="blue px-1">recuperados</span> y los <span class="yellow px-1">fallecidos</span>.</p>
<p>Los <span class="darkest px-1">casos</span> son reemplazados por <span class="darkest px-1">PCR+</span> y
<span class="darkest px-1">TestAc+</span> en el gráfico en caso de que existan.</p>
<p>La tabla "Casos diarios" es el resultado de la resta entre el día seleccionado y el día anterior.</p>
</div>
<div id="notas" class="mt-4"></div>
</div>
</div>
<div class="row p-5">
<div class="col text-center">
<a id="fuente"
href="https://www.mscbs.gob.es/en/profesionales/saludPublica/ccayes/alertasActual/nCov-China/situacionActual.htm"
target="_blank">Fuente</a>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<script type="text/javascript" src="jsFunctions.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.3/dist/Chart.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
</body>
</html>