Repository navigation
Expand file tree
/
Copy pathglobe.html
More file actions
135 lines (135 loc) · 5 KB
/
Copy pathglobe.html
File metadata and controls
135 lines (135 loc) · 5 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
134
135
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Geode Globe</title>
<link rel="stylesheet" href="/src/core/lilgui-theme.css" />
<link rel="stylesheet" href="/src/core/multiGlobeMenu.css" />
<style>
:root { color-scheme: dark; }
html, body {
margin: 0; height: 100%; overflow: hidden;
background: #0b0d10;
font: 13px/1.4 ui-sans-serif, system-ui, -apple-system, sans-serif;
color: #d8dee4;
}
canvas { display: block; }
.status {
position: fixed;
padding: 6px 10px; border-radius: 4px;
background: rgba(0, 0, 0, 0.6); color: #cfd6dd;
}
.timeinfo {
position: fixed;
padding: 6px 10px; border-radius: 4px;
background: rgba(0, 0, 0, 0.6); color: #9fb4c8;
font-variant-numeric: tabular-nums;
}
.legend {
position: fixed;
padding: 8px 10px; border-radius: 4px;
background: rgba(0, 0, 0, 0.6);
}
.legend-label {
color: #cfd6dd; margin-bottom: 4px;
}
.legend-ramp {
display: block; width: 256px; height: 12px;
border-radius: 2px;
}
.legend-ticks {
display: none; justify-content: space-between; width: 256px;
margin-top: 3px; color: #97a3ad; font-size: 11px;
font-variant-numeric: tabular-nums;
}
.legend-key {
display: none; margin-top: 6px; width: 256px;
grid-template-columns: 1fr 1fr; column-gap: 10px; row-gap: 2px;
}
.legend-key-row {
display: flex; align-items: center; gap: 5px;
color: #cfd6dd; font-size: 11px; line-height: 1.3;
}
.legend-key-swatch {
flex: none; width: 10px; height: 10px; border-radius: 2px;
}
.query-panel {
position: fixed;
padding: 6px 10px; border-radius: 4px;
background: rgba(0, 0, 0, 0.6); color: #cfd6dd;
font-variant-numeric: tabular-nums;
cursor: default;
}
.credit {
position: fixed;
color: #5d6873; font-size: 11px; max-width: 40ch; text-align: right;
}
/* The `time-series` tool's fan-chart box (core/timeSeriesPanel.ts) --
own top-left-ish anchor, positioned per-instance in JS (setRect()),
these rules only carry the look. overflow-y:auto since several
variable rows can exceed a tile's own height budget; width is set
inline, capped to fit the tile's own available space. */
.timeseries-anchor {
position: fixed;
display: flex; flex-direction: column; align-items: flex-start;
z-index: 10; overflow-y: auto; overflow-x: hidden;
}
.timeseries-toggle {
white-space: nowrap;
font: inherit; text-align: left; color: #97a3ad;
background: #1b1f24; border: 1px solid #3a4048; border-radius: 4px;
padding: 6px 12px; cursor: pointer;
}
.timeseries-toggle:hover { background: #262b32; }
.timeseries-body {
align-self: stretch;
width: 100%; box-sizing: border-box;
margin-top: 4px; padding: 8px;
background: #1b1f24; border: 1px solid #3a4048; border-radius: 4px;
display: none; flex-direction: column; gap: 8px;
}
.timeseries-row {
display: flex; flex-direction: column; gap: 2px;
}
.timeseries-label {
color: #97a3ad; font-size: 11px;
}
.timeseries-canvas {
display: block; width: 100%; max-width: 260px; height: 110px;
background: #12151a; border-radius: 2px; cursor: crosshair;
}
.timeseries-status {
color: #6b7580; font-size: 11px; font-style: italic;
min-height: 12px;
}
.timeseries-tooltip {
position: fixed; display: none; z-index: 30;
padding: 6px 8px; border-radius: 4px;
background: rgba(10, 12, 15, 0.95); border: 1px solid #3a4048;
color: #cfd6dd; font-size: 11px; line-height: 1.5;
pointer-events: none; white-space: nowrap;
}
#error {
position: fixed; left: 12px; top: 90px; max-width: 60ch;
padding: 10px; border-radius: 4px; white-space: pre-wrap;
background: #3a1416; color: #ffb4b4;
}
</style>
</head>
<body>
<button id="globe-menu-toggle" aria-label="Multi-Globe options" title="Multi-Globe options" hidden>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="3" width="7" height="7" rx="1.2"/>
<rect x="14" y="3" width="7" height="7" rx="1.2"/>
<rect x="3" y="14" width="7" height="7" rx="1.2"/>
<rect x="14" y="14" width="7" height="7" rx="1.2"/>
</svg>
</button>
<div id="globe-menu" hidden>
<button id="add-globe">+ Add globe</button>
<label class="sync-toggle"><input type="checkbox" id="sync-age" /> sync time</label>
</div>
<script type="module" src="/src/globe/main.ts"></script>
</body>
</html>