-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
146 lines (134 loc) · 4.23 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
<!DOCTYPE html>
<html>
<head>
<title>Open MCT Tutorials</title>
<script src="node_modules/socket.io-client/dist/socket.io.js"></script>
<script src="node_modules/lodash/lodash.js"></script>
<script src="node_modules/openmct/dist/openmct.js"></script>
<script src="lib/http.js"></script>
<script src="odysseus/dictionary.js"></script>
<script src="odysseus/dictionary-plugin.js"></script>
<script src="historical-telemetry-plugin.js"></script>
<script src="odysseus/generic-realtime-data-source.js"></script>
<script src="odysseus/random-data-source.js"></script>
<script src="odysseus/backend-data-source.js"></script>
<style>
html body.desktop .s-hover-border:hover {
/* Hide hover border */
border-color: transparent !important;
}
@font-face {
font-family: Orbitron;
src: url("static/font/orbitron-light.otf") format("opentype");
font-weight: 200;
}
@font-face {
font-family: Orbitron;
src: url("static/font/orbitron-medium.otf") format("opentype");
font-weight: normal;
}
@font-face {
font-family: Orbitron;
src: url("static/font/orbitron-bold.otf") format("opentype");
font-weight: bold;
}
@font-face {
font-family: Orbitron;
src: url("static/font/orbitron-black.otf") format("opentype");
font-weight: 900;
}
.orbitron {
font-family: Orbitron;
text-transform: uppercase;
}
.light {
font-weight: 200;
}
.bold {
font-weight: bold;
}
.black {
font-weight: 900;
}
/* Flashing images hack */
[style*="/flashing/"] {
animation: blinker 0.7s ease-in-out infinite;
}
[style*="/flashing/beam"] {
animation-duration: 0.6s;
}
[style*="/flashing/front"] {
animation-duration: 0.63s;
}
[style*="/flashing/hull"] {
animation-duration: 0.66s;
}
[style*="/flashing/impulse"] {
animation-duration: 0.7s;
}
[style*="/flashing/life"] {
animation-duration: 0.73s;
}
[style*="/flashing/maneuver"] {
animation-duration: 0.76s;
}
[style*="/flashing/missile"] {
animation-duration: 0.8s;
}
[style*="/flashing/reactor"] {
animation-duration: 0.83s;
}
[style*="/flashing/rear"] {
animation-duration: 0.86s;
}
@keyframes blinker {
50% {
opacity: 0.3;
}
}
</style>
</head>
<body>
<script>
// Shift all time output by this amount
// Open https://momentjs.com/docs/ JS console and run:
// moment("0542-155", "YYYY-DDDD").valueOf()
var EPOCH_TO_GAME_START = -45050002789000
// Must be in *reverse* chronological order
var START_DATES = [
"2024-07-11", // Run 3
"2024-07-04", // Run 2
"2024-06-28", // Run 1
"2024-05-01",
"2024-04-01",
"2024-01-01",
]
for (let date of START_DATES) {
var ms = new Date(date).setHours(0)
if (ms < Date.now()) {
console.log("Using epoch date " + date)
window.TIME_SHIFT = EPOCH_TO_GAME_START - ms
break
}
}
openmct.setAssetPath('node_modules/openmct/dist');
openmct.install(openmct.plugins.LocalStorage());
openmct.install(openmct.plugins.MyItems());
openmct.install(openmct.plugins.UTCTimeSystem());
openmct.time.clock('local', {start: -15 * 60 * 1000, end: 0});
openmct.time.timeSystem('utc');
openmct.install(openmct.plugins.Espresso());
// openmct.install(openmct.plugins.Snow());
openmct.install(openmct.plugins.ImportExport())
openmct.install(openmct.plugins.SummaryWidget());
openmct.install(openmct.plugins.Generator());
openmct.install(openmct.plugins.StaticRootPlugin('odysseus', 'odysseus.json'));
openmct.install(DictionaryPlugin());
// openmct.install(HistoricalTelemetryPlugin());
// openmct.install(RealtimeTelemetryPlugin());
openmct.install(RandomTelemetryPlugin())
openmct.install(BackendTelemetryPlugin())
openmct.start();
</script>
</body>
</html>