-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (46 loc) · 1.87 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
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="node_modules/openmct/dist/openmct.js"></script>
<script type="text/javascript" src="dist/openmct-dynamic-plans.js"></script>
<script>
const ONE_SECOND = 1000;
const THIRTY_SECONDS = 30 * ONE_SECOND;
const ONE_MINUTE = 60 * ONE_SECOND;
const THIRTY_MINUTES = 30 * ONE_MINUTE;
openmct.setAssetPath("node_modules/openmct/dist");
openmct.install(new DynamicPlansPlugin.default());
openmct.install(openmct.plugins.DisplayLayout({
showAsView: ['summary-widget', 'example.imagery']
}));
openmct.install(new openmct.plugins.LocalStorage());
openmct.install(new openmct.plugins.Espresso());
openmct.install(new openmct.plugins.MyItems());
openmct.install(openmct.plugins.UTCTimeSystem());
openmct.install(openmct.plugins.Conductor({
menuOptions: [
{
name: "Fixed",
timeSystem: 'utc',
bounds: {
start: Date.now() - THIRTY_MINUTES,
end: Date.now()
}
},
{
name: "Realtime",
timeSystem: 'utc',
clock: 'local',
clockOffsets: {
start: - THIRTY_MINUTES,
end: THIRTY_SECONDS
}
}
]
}));
document.addEventListener('DOMContentLoaded', () => openmct.start(document.body));
</script>
</head>
<body>
</body>
</html>