-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
154 lines (151 loc) · 7.31 KB
/
index.php
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="COVID-19/coronavirus effected data visualization">
<meta name="robots" content="index, follow">
<title>Interactive visualization of weekly and daily change in Covid-19 cases by country</title>
<meta property="og:image" content="./images/home.png" />
<link rel="shortcut icon" href="favicon.png">
<link rel="stylesheet" href="./lib/css//bootstrap.min.css?v=<?php echo time();?>">
<link rel="stylesheet" href="./css/dashboard.css?v=<?php echo time();?>">
<link rel="stylesheet" href="./css/dc.css?v=<?php echo time();?>">
<link rel="stylesheet" href="./css/custom.css?v=<?php echo time();?>">
</head>
<body class="application">
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<div class="navbar-right-content">
<a href="https://ourworldindata.org/coronavirus-source-data" target="black">[Data Source]</a> <br />
Last Updated on: <span id="lastUpdated"></span>
</div>
<a class="navbar-brand" href="./">Weekly and Daily change in COVID-19 cases by country</a>
<br>
<span class="text-danger font-weight-bold nav-counts" > Total Cases: <span id="filterCases"></span> Total Deaths: <span id="filterDeaths"></span> </span>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-sm-6">
<div class="row">
<!-- Daily change in New Cases & Deaths -->
<div class="col-sm-12">
<div class="chart-wrapper">
<div id="row_for_width" class="chart-title">
Daily change in New Cases & Deaths
<a style="float:right;" href="javascript:dc.filterAll(); dc.redrawAll();">Reset All</a>
</div>
<div class="chart-stage">
<div id="covid19-daily">
<div style="height: 20px;">
<span class="reset" style="display: none;">Range: <span class="filter"></span></span>
<a class="reset" href="javascript:covid19Daily.filterAll();dailyVolumeChart.filterAll();dc.redrawAll();" style="float: right;display: none;">Reset</a>
</div>
</div>
</div>
<div class="row">
<div id="daily-volume-chart" style="width:100%;">
</div>
<p class="muted pull-right" style="margin-right: 60px;">select a time range to zoom in</p>
</div>
</div>
</div>
<!-- Daily change in New Cases & Deaths -->
<!-- Weekly change in New Cases & Deaths -->
<div class="col-sm-12">
<div class="chart-wrapper">
<div class="chart-title">
Weekly change in New Cases & Deaths
</div>
<div class="chart-stage">
<div id="covid19-weekly">
<div style="height: 20px;">
<span class="reset" style="display: none;">Range: <span class="filter"></span></span>
<a class="reset" href="javascript:covid19Weekly.filterAll();weeklyVolumeChart.filterAll();dc.redrawAll();" style="display: none; float: right;">Reset</a>
</div>
</div>
</div>
<div class="row">
<div id="weekly-volume-chart" style="width:100%;">
</div>
<p class="muted pull-right" style="margin-right: 60px;">select a time range to zoom in</p>
</div>
</div>
</div>
<!-- Weekly change in New Cases & Deaths -->
<div class="col-sm-6">
<div class="row">
</div>
<div class="row">
</div>
</div>
</div>
</div>
<div class="col-sm-2" style="display:none;">
<div class="row">
<!-- Country Province -->
<div class="col-sm-12">
<div class="chart-wrapper">
<div class="chart-title">
<a style="float:right;" href="javascript:dc.filterAll(); dc.redrawAll();">Reset All</a>
Country
</div>
<div class="chart-stage">
<div id="country"></div>
<div id="country-axis"></div>
</div>
</div>
</div>
<!-- Country Province -->
</div>
</div>
<div class="col-sm-6">
<div class="row">
<!-- Map -->
<div class="col-sm-12">
<div class="chart-wrapper">
<div class="chart-title">
Map <div id="country-select" style="float: right;"></div>
</div>
<div class="chart-stage">
<!-- <img class="mt-1" src="./images/legend.png" style="position: absolute;"> -->
<div id="worldmap" style="width: 700px; height: 634px"></div>
</div>
</div>
</div>
<!-- Map -->
</div>
</div>
</div>
</div>
<hr>
<div class="container-fluid">
<footer>
<div style="float: right;">
<a href="https://github.com/smbasha47/covid19-data-visualization" target="blank" >
<svg class="octicon octicon-mark-github v-align-middle" height="24" viewBox="0 0 16 16" version="1.1" width="32" aria-hidden="true"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg>
</a> </div>
<div style="float: right;"> LICENSE: Apache 2.0</div>
<div style="float: left;"> Contributors: Mahaboob Basha, Srini PNV, Nithin Raju Devaraju </div>
<div style="width: 250px;margin:0 auto;">Copyright © 2020 <a href="https://www.intuceo.com" target="blank" >www.intuceo.com</a> </div>
<div style="clear: both;"></div>
</footer>
</div>
<script src="./js/jquery-3.4.1.min.js?v=<?php echo time();?>"></script>
<script src="./js/crossfilter.js?v=<?php echo time();?>"></script>
<script src="./js/d3.js?v=<?php echo time();?>"></script>
<script src="./js/dc.js?v=<?php echo time();?>"></script>
<script src='./js/drawcharts.js?v=<?php echo time();?>' type='text/javascript'></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-162177579-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-162177579-1');
</script>
</body>
</html>