From d06ebf07cb5a789dd50d48aae2b5720ba6b99af5 Mon Sep 17 00:00:00 2001 From: monsterrobotparty Date: Thu, 16 Jul 2026 09:45:48 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=90=20portal:=20the=20orrery=20gets=20?= =?UTF-8?q?a=20door=20=E2=80=94=20=F0=9F=AA=90=20SOLARGOD=20button=20deep-?= =?UTF-8?q?links=20at=20GODSIGH's=20scrubbed=20moment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reciprocal to SOLARGOD's Earth-card link into GODSIGH. A subtle HUD pill (above the footer, styled to the mode-button family) opens the orrery in a new tab. The href is rebuilt fresh at click time from viewer.clock.currentTime via the shared `#t=@` convention, so scrubbing GODSIGH's clock carries straight through to SOLARGOD's sim time. - index.html: between #layers and footer - css: .portal-link (matches .modes button; accent on hover) - ui.js: wireSolargodLink(getMs) — rebuilds href on pointerdown+click (covers ⌘/middle-click new-tab); Cesium stays out of the DOM module - main.js: wire it with a getMs closure over viewer.clock Verified in-browser: button renders, zero console errors, all layers boot; live click → href tracks the clock; scrub -3h → href exactly 3h behind now + chip flips SCRUBBED + live layers pause; opening the link launches SOLARGOD in SCRUBBED state at the passed epoch (its hash echoes the exact ms). Co-Authored-By: Claude Opus 4.8 --- css/style.css | 18 ++++++++++++++++++ index.html | 2 ++ js/main.js | 5 +++++ js/ui.js | 13 +++++++++++++ 4 files changed, 38 insertions(+) diff --git a/css/style.css b/css/style.css index b0cc4f4..b0508c2 100644 --- a/css/style.css +++ b/css/style.css @@ -111,6 +111,24 @@ html, body { font-weight: 700; } +/* ---- portal to SOLARGOD (sibling orrery) ---- */ +.portal-link { + display: block; + text-align: center; + padding: 6px 8px; + font-size: 11px; + color: var(--dim); + text-decoration: none; + background: rgba(255, 255, 255, 0.03); + border: 1px solid var(--border); + border-radius: 8px; + transition: all 0.15s; +} +.portal-link:hover { + color: var(--accent); + border-color: var(--accent); +} + /* ---- layer rows ---- */ #layers { display: flex; diff --git a/index.html b/index.html index ec3ea21..15c6fdc 100644 --- a/index.html +++ b/index.html @@ -23,6 +23,8 @@
+ 🪐 SOLARGOD