blueweather/dashboard.html
dorian 903f730502 - cleanup of old files and css
- further implementation of user login
2019-08-07 16:14:48 +02:00

146 lines
No EOL
5.8 KiB
HTML
Executable file

<!doctype html>
<html lang="en" style="height: 100%">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>BlueWeather</title>
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
<link rel="icon" href="img/favicon.ico" type="image/x-icon">
<!-- External styles -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<!-- gobal custom styles -->
<link href="css/blueweather.css" rel="stylesheet">
<!-- Custom styles for this site -->
<link href="css/dashboard.css" rel="stylesheet">
</head>
<body style="height: 100%;">
<nav class="navbar nav-pills 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>
<ul id="profileContainer" class="navbar-nav ml-auto">
</ul>
</nav>
<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">
<div class="sidebar-sticky">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link" id="navbarPage-1Link" onclick="dashboard.updateParams({page: -1})" href="#">
<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">
<span>Sensors</span>
<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">
<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>
</a>
</li>
</ul>
</div>
</nav>
<!-- Main content area -->
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4" style="padding-top: 0; height: 90%">
<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>
<div class="btn-toolbar mb-2 mb-md-0" role="toolbar">
<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>
<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">
<!--form class="px-4 py-3">
<div class="btn-group">
<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>
<button type="button" class="btn btn-light" onclick="dashboard.setTimeRange(2678400)">This
Month</button>
<button type="button" class="btn btn-light" onclick="dashboard.setTimeRange(18144000)">This
Year</button>
</div>
</form-->
<a class="dropdown-item" href="#" onclick="dashboard.setTimeRange(-86400)">Today</a>
<a class="dropdown-item" href="#" onclick="dashboard.setTimeRange(-604800)">This
Week</a>
<a class="dropdown-item" href="#" onclick="dashboard.setTimeRange(-2678400)">This
Month</a>
<a class="dropdown-item" href="#" onclick="dashboard.setTimeRange(-31536000)">This
Year</a>
</div>
</div>
</div>
<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>
</div>
</div>
<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>
</div>
</div>
<div id="mainContent" class="opacity-animated" style="height: 100%">
</div>
</div>
</main>
</div>
<!-- js -->
<!-- External libs -->
<script src="js/jquery.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/feather.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/Chart.min.js"></script>
<!-- Internal code -->
<script src="js/blueweather.js"></script>
<script src="js/dashboard.js"></script>
</body>
</html>