blueweather/dashboard.html

206 lines
8.9 KiB
HTML
Raw Normal View History

2019-07-11 14:45:36 +02:00
<!doctype html>
2019-07-11 21:26:36 +02:00
<html lang="en" style="height: 100%">
2019-07-11 14:45:36 +02:00
2019-07-11 14:53:18 +02:00
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
2019-07-11 15:49:10 +02:00
<title>BlueWeather</title>
2019-07-11 14:45:36 +02:00
2019-07-16 18:05:44 +02:00
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
<link rel="icon" href="img/favicon.ico" type="image/x-icon">
2019-07-11 14:45:36 +02:00
2019-07-11 14:53:18 +02:00
<!-- Custom styles for this template -->
<link href="css/dashboard.css" rel="stylesheet">
2019-07-12 18:08:39 +02:00
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- libs for datepicker -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<script src="https://unpkg.com/gijgo@1.9.13/js/gijgo.min.js" type="text/javascript"></script>
<link href="https://unpkg.com/gijgo@1.9.13/css/gijgo.min.css" rel="stylesheet" type="text/css" />
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
2019-07-11 14:53:18 +02:00
</head>
2019-07-11 14:45:36 +02:00
2019-07-11 21:26:36 +02:00
<body style="height: 100%;">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark shadow">
<!-- left part of toolbar -->
<a class="navbar-brand" href="index.html">BlueWeather</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 ml-auto">
<li class="nav-item dropdown no-arrow">
<a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false" style="padding: 0;">
<img class="img-profile rounded-circle" height="30" src="https://source.unsplash.com/QAB-WJcbgJk/60x60">
</a>
<!-- Dropdown - User Information -->
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="userDropdown">
<a class="dropdown-item" href="#">
<span data-feather="user"></span>
Profile
</a>
<a class="dropdown-item" href="#">
<span data-feather="settings"></span>
Settings
</a>
<a class="dropdown-item" href="#">
<i class="fas fa-list fa-sm fa-fw mr-2 text-gray-400"></i>
Activity Log
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#logoutModal">
<span data-feather="log-out"></span>
Logout
</a>
</div>
</li>
</ul>
</div>
2019-07-11 14:53:18 +02:00
</nav>
2019-07-11 14:45:36 +02:00
2019-07-11 21:26:36 +02:00
<div class="container-fluid" style="height: 100%">
<div class="row" style="height: 100%">
<!-- Nav bar on the left side -->
<nav class="col-md-2 d-none d-md-block bg-light sidebar" style="padding-top:0;">
2019-07-11 14:53:18 +02:00
<div class="sidebar-sticky">
<ul class="nav flex-column">
<li class="nav-item">
2019-07-14 17:53:07 +02:00
<a class="nav-link" id="navbarPage-1Link" onclick="dashboard.updateParams({page: -1})" href="#">
2019-07-11 14:53:18 +02:00
<span data-feather="home"></span>
Dashboard <span class="sr-only">(current)</span>
</a>
</li>
</ul>
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
2019-07-11 15:17:05 +02:00
<span>Sensors</span>
2019-07-11 15:17:05 +02:00
<a class="d-flex align-items-center text-muted" href="#">
<span data-feather="plus-circle"></span>
</a>
</h6>
<ul class="nav flex-column mb-2" id="sensorsList">
2019-07-11 14:53:18 +02:00
<li class="nav-item">
<a class="nav-link" href="#">
<div class="spinner-border spinner-border-sm" role="status">
<span class="sr-only">Loading...</span>
</div>
2019-07-11 14:53:18 +02:00
</a>
</li>
</ul>
</div>
</nav>
2019-07-11 14:45:36 +02:00
<!-- Main content area -->
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4" style="padding-top: 0; height: 90%">
2019-07-11 14:53:18 +02:00
<div
class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2" id="titleH1">Dashboard</h1>
2019-07-14 17:53:07 +02:00
<div class="btn-toolbar mb-2 mb-md-0" role="toolbar">
2019-07-11 14:53:18 +02:00
<div class="btn-group mr-2">
<button type="button" class="btn btn-sm btn-outline-secondary">Share</button>
<button type="button" class="btn btn-sm btn-outline-secondary">Export</button>
</div>
2019-07-14 17:53:07 +02:00
<div class="btn-group mr-2" role="group">
<div class="dropdown" class="h-100">
<button id="dropdownMenuButton" type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle"
data-toggle="dropdown">
<span data-feather="calendar"></span>
</button>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
2019-07-14 21:38:37 +02:00
<!--form class="px-4 py-3">
2019-07-12 18:08:39 +02:00
<div class="btn-group">
2019-07-14 17:53:07 +02:00
<button type="button" class="btn btn-light" onclick="dashboard.setTimeRange(86400)">Today</button>
<button type="button" class="btn btn-light" onclick="dashboard.setTimeRange(604800)">This
Week</button>
2019-07-14 21:38:37 +02:00
<button type="button" class="btn btn-light" onclick="dashboard.setTimeRange(2678400)">This
2019-07-14 17:53:07 +02:00
Month</button>
<button type="button" class="btn btn-light" onclick="dashboard.setTimeRange(18144000)">This
Year</button>
</div>
2019-07-14 21:38:37 +02:00
</form-->
2019-07-30 13:08:24 +02:00
<a class="dropdown-item" href="#" onclick="dashboard.setTimeRange(-86400)">Today</a>
<a class="dropdown-item" href="#" onclick="dashboard.setTimeRange(-604800)">This
2019-07-18 12:44:28 +02:00
Week</a>
2019-07-30 13:08:24 +02:00
<a class="dropdown-item" href="#" onclick="dashboard.setTimeRange(-2678400)">This
2019-07-18 12:44:28 +02:00
Month</a>
2019-07-30 13:08:24 +02:00
<a class="dropdown-item" href="#" onclick="dashboard.setTimeRange(-31536000)">This
2019-07-18 12:44:28 +02:00
Year</a>
2019-07-14 17:53:07 +02:00
</div>
</div>
</div>
2019-07-14 17:53:07 +02:00
<div class="btn-group mr-2" role="group">
<button type="button" class="btn btn-sm btn-outline-secondary" onclick="dashboard.loadDashboard()">
<span data-feather="refresh-cw"></span>
</button>
</div>
2019-07-11 14:45:36 +02:00
</div>
</div>
2019-07-18 12:44:28 +02:00
<div id="loader" class="d-flex justify-content-center opacity-animated" style="position: absolute; left: 50%;">
<div class="spinner-border" role="status">
<span class="sr-only">Loading...</span>
2019-07-14 17:53:07 +02:00
</div>
2019-07-18 12:44:28 +02:00
</div>
2019-07-14 17:53:07 +02:00
<div id="mainContent" class="opacity-animated" style="height: 100%">
2019-07-11 14:53:18 +02:00
</div>
</div>
</main>
2019-07-11 14:45:36 +02:00
</div>
<!-- js -->
2019-07-12 18:08:39 +02:00
<!--script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script-->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
2019-07-11 14:53:18 +02:00
crossorigin="anonymous"></script>
2019-07-18 12:44:28 +02:00
<script src="js/feather.js"></script>
2019-07-11 14:53:18 +02:00
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.min.js"></script>
<script src="js/blueweather.js"></script>
2019-07-11 14:53:18 +02:00
<script src="js/dashboard.js"></script>
2019-07-12 18:08:39 +02:00
<script src="js/jquery.min.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<script src="https://unpkg.com/gijgo@1.9.13/js/gijgo.min.js" type="text/javascript"></script>
<link href="https://unpkg.com/gijgo@1.9.13/css/gijgo.min.css" rel="stylesheet" type="text/css" />
<script>
var today = new Date();
var val = new Date();
$('#startDate').datepicker({
uiLibrary: 'bootstrap4',
iconsLibrary: 'fontawesome',
minDate: today,
maxDate: function () {
return $('#endDate').val();
}
});
$('#endDate').datepicker({
uiLibrary: 'bootstrap4',
iconsLibrary: 'fontawesome',
value: val,
minDate: function () {
return $('#startDate').val();
}
});
val = new Date("2010/03/03")
</script>
2019-07-11 14:53:18 +02:00
</body>
2019-07-11 14:45:36 +02:00
</html>