-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
242 lines (209 loc) · 10.5 KB
/
index.html
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<!DOCTYPE html>
<html>
<title>WISE Documentation</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto">
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> -->
<script src="https://kit.fontawesome.com/40434d91ac.js" crossorigin="anonymous"></script>
<style>
body {
font-family: "Roboto", sans-serif
}
.w3-bar-block .w3-bar-item {
padding: 16px;
font-weight: bold;
}
</style>
<link rel="stylesheet" href="theme.css">
<body>
<nav class="feature box-shadow w3-sidebar w3-bar-block w3-collapse w3-animate-left w3-card"
style="z-index:3;width:250px;" id="mySidebar">
<div class="w3-bar-item w3-border-bottom w3-large">
<img src="images/wise_logo.png" style="width:80%;">
<span class="w3-center">WISE DOCS</span>
</div>
<a class="w3-bar-item w3-button w3-hide-large w3-large" href="javascript:void(0)" onclick="w3_close()">Close <i
class="fa fa-remove"></i></a>
<a class="w3-bar-item w3-button w3-hover-brown fgm-bg-light" onclick="go_home()" href="#myTop">
<img src="images/wise_logo.png" style="width:30px;"> Home</a>
<a class="w3-bar-item w3-button w3-hover-brown " onclick="go_jsapi()" href="#">
<img src="images/wise_logo.png" style="width:30px;"> JS API</a>
<a class="w3-bar-item w3-button w3-hover-brown " onclick="go_javaapi()" href="#">
<img src="images/wise_logo.png" style="width:30px;"> Java API</a>
<a class="w3-bar-item w3-button w3-hover-brown " href="#" onclick="go_mqtt()"><img src="images/wise_logo.png"
style="width:30px;"> MQTT</a>
<a class="w3-bar-item w3-button w3-hover-brown " onclick="go_config()" href="#"><img src="images/wise_logo.png"
style="width:30px;">
Manager Config</a>
<a class="w3-bar-item w3-button w3-hover-brown " onclick="go_user()" href="#"><img src="images/wise_logo.png"
style="width:30px;">
User Contrib Docs</a>
<div>
<a class="w3-bar-item w3-button " onclick="myAccordion('demo')" href="javascript:void(0)"><i
class="fa-solid fa-up-right-from-square"></i> External <i class="fa fa-caret-down"></i></a>
<div id="demo" class="w3-hide">
<a class="w3-bar-item w3-button" target="_blank" href="https://nodejs.org/en/docs/"><i
class="fa-brands fa-node"></i> NodeJS</a>
<a class="w3-bar-item w3-button" target="_blank"
href="https://www.hivemq.com/blog/mqtt-essentials-part-1-introducing-mqtt/"> <i
class="fa-solid fa-bolt"></i> MQTT</a>
</div>
</div>
</nav>
<div class="w3-overlay w3-hide-large w3-animate-opacity" onclick="w3_close()" style="cursor:pointer" id="myOverlay">
</div>
<div class="w3-main" style="margin-left:250px;">
<div id="myTop" class="w3-container w3-top fgm-bg w3-large">
<p><i class="fa fa-bars w3-button w3-hover-brown feature w3-hide-large w3-xlarge" onclick="w3_open()"></i>
<span id="myIntro" class="feature w3-hide w3-margin-left">WISE: Documentation</span>
</p>
</div>
<header class="header box-shadow w3-container w3-padding-small w3-margin">
<h1 class="w3-xxlarge">Wildfire Intelligence and Simulation Engine (WISE)</h1>
<h2 class="w3-large">Documentation</h1>
</header>
<div id="mainDocs" class="w3-container">
<div class="feature box-shadow w3-container w3-padding-small w3-margin">
<a id="js-api">
<h2>WISE JavaScript API</h2>
</a>
<p>The WISE JS API is a NodeJS Module that integrates the WISE API into your NodeJS Project.</p>
New Documentation Coming Soon: <a href="wise_js/index.html">View LEGACY JS API</a>
</div>
<div class="feature box-shadow w3-container w3-padding-small w3-margin">
<a id="java-api">
<h2>WISE Java API</h2>
</a>
<p>The WISE Java API is a Java library that integrates the WISE API into your Java Project.</p>
New Documentation Coming Soon: <a href="wise_java/index.html">View LEGACY Java API</a>
</div>
<div class="feature box-shadow w3-container w3-padding-small w3-margin">
<a id="mqtt-api">
<h2>W.I.S.E. MQTT Client API 7.2.6 Docs</h2>
</a>
<p>MQTT Is used for internal communication and communication with the API.</p>
</div>
<div class="feature box-shadow w3-container w3-padding-small w3-margin">
<a id="manager-config">
<h2>W.I.S.E. Manager config.json</h2>
</a>
<p>The WISE JS API is a NodeJS Module that integrates the WISE API into your NodeJS Project.</p>
</div>
</div>
<iframe id="jsapi-iframe" class="w3-hide" src="./wise_js/index.html" title="jsapi"></iframe>
<iframe id="javaapi-iframe" class="w3-hide" src="./wise_java/index.html" title="javaapi"></iframe>
<iframe id="mqtt-iframe" class="w3-hide" src="./wise_mqtt/index.html" title="mqtt"></iframe>
<iframe id="config-iframe" class="w3-hide" src="./wise_config/index.html" title="config"></iframe>
<iframe id="user-iframe" class="w3-hide" src="./contrib_docs/" title="user"></iframe>
<footer class="w3-container w3-theme" style="padding:32px">
<p>
<script>
document.write("This page last modified on" + " " + document.lastModified);
</script>
</p>
</footer>
</div>
<script>
// Open and close the sidebar on medium and small screens
function w3_open() {
document.getElementById("mySidebar").style.display = "block";
document.getElementById("myOverlay").style.display = "block";
}
function w3_close() {
document.getElementById("mySidebar").style.display = "none";
document.getElementById("myOverlay").style.display = "none";
}
function go_home() {
// hide all iframes
var iframes = document.getElementsByTagName('iframe');
for (var i = 0; i < iframes.length; i++) {
iframes[i].classList.add("w3-hide");
}
// then scroll to the top
document.body.scrollTop = 0; // For Safari
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
// then show the main docs
document.getElementById("mainDocs").classList.remove("w3-hide");
}
function go_jsapi() {
//hide all iframes
var iframes = document.getElementsByTagName('iframe');
for (var i = 0; i < iframes.length; i++) {
iframes[i].classList.add("w3-hide");
}
//hide main docs
document.getElementById("mainDocs").classList.add("w3-hide");
// then show the jsapi iframe
document.getElementById("jsapi-iframe").classList.remove("w3-hide");
}
function go_javaapi() {
//hide all iframes
var iframes = document.getElementsByTagName('iframe');
for (var i = 0; i < iframes.length; i++) {
iframes[i].classList.add("w3-hide");
}
//hide main docs
document.getElementById("mainDocs").classList.add("w3-hide");
// then show the javaapi iframe
document.getElementById("javaapi-iframe").classList.remove("w3-hide");
}
function go_mqtt() {
//hide main docs
document.getElementById("mainDocs").classList.add("w3-hide");
//hide all iframes
var iframes = document.getElementsByTagName('iframe');
for (var i = 0; i < iframes.length; i++) {
iframes[i].classList.add("w3-hide");
}
// then show the mqtt iframe
document.getElementById("mqtt-iframe").classList.remove("w3-hide");
}
function go_user() {
//hide main docs
document.getElementById("mainDocs").classList.add("w3-hide");
//hide all iframes
var iframes = document.getElementsByTagName('iframe');
for (var i = 0; i < iframes.length; i++) {
iframes[i].classList.add("w3-hide");
}
// then show the mqtt iframe
document.getElementById("user-iframe").classList.remove("w3-hide");
}
function go_config() {
//hide main docs
document.getElementById("mainDocs").classList.add("w3-hide");
//hide all iframes
var iframes = document.getElementsByTagName('iframe');
for (var i = 0; i < iframes.length; i++) {
iframes[i].classList.add("w3-hide");
}
// then show the mqtt iframe
document.getElementById("config-iframe").classList.remove("w3-hide");
}
// Change style of top container on scroll
window.onscroll = function () { myFunction() };
function myFunction() {
if (document.body.scrollTop > 80 || document.documentElement.scrollTop > 80) {
document.getElementById("myTop").classList.add("w3-card-4", "w3-animate-opacity");
document.getElementById("myIntro").classList.add("w3-show-inline-block");
} else {
document.getElementById("myIntro").classList.remove("w3-show-inline-block");
document.getElementById("myTop").classList.remove("w3-card-4", "w3-animate-opacity");
}
}
// Accordions
function myAccordion(id) {
var x = document.getElementById(id);
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
x.previousElementSibling.className += " w3-theme";
} else {
x.className = x.className.replace("w3-show", "");
x.previousElementSibling.className =
x.previousElementSibling.className.replace(" w3-theme", "");
}
}
</script>
</body>
</html>