-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
133 lines (114 loc) · 5.12 KB
/
index.html
File metadata and controls
133 lines (114 loc) · 5.12 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>IoT-WebDashboard</title>
<!-- Import jQuery -->
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script
src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"
integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU="
crossorigin="anonymous"></script>
<!-- Import Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<!-- Import Lodash (Needed for gridstack) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.5.0/lodash.min.js"></script>
<!-- Import gridstack -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/gridstack.js/0.2.6/gridstack.min.css" />
<script type="text/javascript" src='https://cdnjs.cloudflare.com/ajax/libs/gridstack.js/0.2.6/gridstack.min.js'></script>
<!-- Import RGraph -->
<script src="res/RGraph/RGraph.common.core.js"></script>
<script src="res/RGraph/RGraph.gauge.js"></script>
<script src="res/RGraph/RGraph.scatter.js"></script>
<script src="res/RGraph/RGraph.line.js"></script>
<script src="res/RGraph/RGraph.thermometer.js"></script>
<script src="res/RGraph/RGraph.bar.js"></script>
<!-- Import Leaflet -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script>
<!-- Import MQTT.js -->
<script src="https://unpkg.com/mqtt/dist/mqtt.min.js"></script>
<!-- Import IoT-WebDashboard -->
<script src="iotwebdashboard.js"></script>
<link href="iotwebdashboard.css" id="stylesheet" rel="stylesheet">
</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">SensorThings-Dashboard</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li>
<a href="https://github.com/SensorThings-Dashboard/SensorThings-Dashboard">About this project</a>
</li>
<li>
<a href="https://youtu.be/jFDp2NEeW4E">YouTube Demo</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<!-- Full Width Image Header with Logo -->
<div class="container-fluid">
<div class="row">
<img src="res/IoT-WebDashboard-Banner.jpg" alt="Header Image" style="display:block;width:50%;margin-top:60px; margin-bottom:20px; margin-left: auto;margin-right: auto;"></img>
</div>
</div>
<!-- Content Section -->
<section>
<!-- We will plot the dashboard into this div -->
<div id="iot-db" style="margin-right: auto; margin-left: auto; width: 1000px; height: 800px;">
<h3 id="headliner">IoT-WebDashboard</h3>
<p>
loading...
</p>
</div>
</section>
<div class="container">
<div class="row">
<p style="text-align:center; margin-top: 20px; margin-bottom: 20px; font-weight: bold;">
Authors: Simon Böhm, Moritz Grauer, Daniel Liebler, Robin Maisch, Till Stöckmann, Frederic Tausch
</p>
</div>
</div>
<script>
iotDB = window.iotDB;
iotDB.onLoad = function () {
//Import userConfig here
};
iotDB.onSaveConfig = function () {
var userConfig = iotDB.exportUserConfig();
//Save the config to CMS here
};
iotDB.onLoadConfig = function () {
//Get to user config here
iotDB.importUserConfig(userConfig);
};
iotDB.create({
"disableImportExportCMS": false,
"disableDownloadUpload": false,
"disableConfiguration": false,
"backgroundTransparent": false,
"enableNoDistraction": false,
"baseDir": "./",
"language": "en"
});
</script>
</body>