You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
5.1 KiB
120 lines
5.1 KiB
5 years ago
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||
|
<title>Covid 19</title>
|
||
|
|
||
|
<!-- <link href="apexcharts/style/styles.css" rel="stylesheet" /> -->
|
||
|
<link rel="stylesheet" href="bootstrap-4.3.1/css/bootstrap.min.css">
|
||
|
<link rel="stylesheet" href="css/appstyle.css">
|
||
|
<link href="select2-4.0.13/dist/css/select2.min.css" rel="stylesheet" />
|
||
|
<link href="lightpick/css/lightpick.css" rel="stylesheet" />
|
||
|
|
||
|
<script src="apexcharts/dist/apexcharts.min.js"></script>
|
||
|
<script src="js/classes.js"></script>
|
||
|
<script src="js/functions.js"></script>
|
||
|
<script src="js/webcall.js"></script>
|
||
|
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<?php //include "./menu.html"
|
||
|
?>
|
||
|
<div class="top-bar">
|
||
|
<!--MENU START-->
|
||
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
||
|
<a class="navbar-brand" href="index.php">Covid-19</a>
|
||
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||
|
<span class="navbar-toggler-icon"></span>
|
||
|
</button>
|
||
|
|
||
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||
|
<ul class="navbar-nav mr-auto">
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link" href="index.php">All Continent<span class="sr-only">(current)</span></a>
|
||
|
</li>
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link" href="country.php">By Continent</a>
|
||
|
</li>
|
||
|
<li class="nav-item active">
|
||
|
<a class="nav-link" href="countryInDates.php">Country in dates</a>
|
||
|
</li>
|
||
|
<li class="nav-item">
|
||
|
<a class="nav-link" href="continentsInDates.php">Continent in dates</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</nav>
|
||
|
</div>
|
||
|
<!--MENU END-->
|
||
|
|
||
|
|
||
|
<div class="container header">
|
||
|
<div class="row">
|
||
|
<div class="col-12 text-center header-title">
|
||
|
<span class="title">Covid-19 Cases by Country</span>
|
||
|
</div>
|
||
|
<div class="col-12 text-right">
|
||
|
<span class="meta">
|
||
|
<span class="meta-label">Last updated:</span>
|
||
|
<span id="lastDate" class="meta-value"></span>
|
||
|
</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row pt-4 pb-4">
|
||
|
<div class="col-md-4 offset-md-2 col-xs-12">
|
||
|
<!-- <select id="countrySelector" class="form-control" data-shadow="true" data-mini="true" onchange="WebCall.renderAllCountryCasesDeathsByContinent('#chartCases', '#chartDeaths', this.value, event);showIfNotEqualsHideElse(this.value, 'none','.chart-title')"></select> -->
|
||
|
<div class="country-selection-wr"><select id="countrySelector" class="form-control" data-shadow="true" data-mini="true"></select></div>
|
||
|
</div>
|
||
|
<div class="col-md-4 col-xs-2">
|
||
|
<input type="text" id="datesField" placeholder="Select Dates">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="container-fluid center-content">
|
||
|
<div class="row">
|
||
|
<div class="col-md-12 col-xs-12">
|
||
|
<div class="chart-title">Cases</div>
|
||
|
<div id="chart"></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<script src="jquery/jquery-3.5.1.min.js"></script>
|
||
|
<!-- <script src="propper/propper.min.js"></script> -->
|
||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||
|
<script src="bootstrap-4.3.1/js/bootstrap.min.js"></script>
|
||
|
<script src="select2-4.0.13/dist/js/select2.min.js"></script>
|
||
|
<script src="lightpick/moment.js"></script>
|
||
|
<script src="lightpick/lightpick.js"></script>
|
||
|
|
||
|
<script>
|
||
|
$(function() {
|
||
|
Window.selector = WebCall.initalizeCountriesSelector('#countrySelector');
|
||
|
Window.selector.on('select2:select', function(e) {
|
||
|
var data = e.params.data;
|
||
|
WebCall.renderCasesByCountryAndDate('#chart', data.id, Window.picker.toString('DD/MM/YYYY'))
|
||
|
});
|
||
|
Window.picker = initDatePicker('datesField', function(dateString) {
|
||
|
WebCall.renderCasesByCountryAndDate('#chart', Window.selector.select2('data')[0].id, Window.picker.toString('DD/MM/YYYY'))
|
||
|
});
|
||
|
WebCall.renderLastDate('#lastDate');
|
||
|
});
|
||
|
</script>
|
||
|
<footer class="fixed-bottom bg-dark">
|
||
|
<div class="footer-content">
|
||
|
<div class="content">
|
||
|
<div class="text">
|
||
|
POWERED BY Tsamantiotis Iraklis - Binas Georgios
|
||
|
© 2020
|
||
|
All Rights Reserved.
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</footer>
|
||
|
</body>
|
||
|
|
||
|
</html>
|