From 6c8a5bdaae56d3dcfe4b7c6eba8376e935ae3f2c Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Tue, 1 Dec 2026 19:22:47 +0000 Subject: [PATCH] Release v2.17.0: Implement cross-page & intra-page style, font-family, background token & navigation parity with regression gates S1-S4 (Plan #65) and adaptive mobile device detection & Group 3 mobile UI across all surfaces (Plan #66 Strategies 1A/2A/3A/4A) --- README.md | 12 +- deploy/Caddyfile | 9 + deploy/push-all-to-git-libre-audio.sh | 2 +- deploy/sync-vps-repos.sh | 2 +- deploy/test-first-deployment.sh | 1 + package.json | 2 +- packages-js/ciphers-aq/package.json | 2 +- pyproject.toml | 2 +- scripts/build_gallery_manifest.py | 4 +- .../assets/closeups/ui-elements-manifest.json | 16 +- site/assets/hs-group3-basalt-chamfer.css | 149 ++++++++++++++-- site/assets/hs-mobile-ui.js | 166 ++++++++++++++++++ site/donate/index.html | 15 +- .../cicd-vps-tmpfs-and-regression/index.html | 19 +- .../ciphers-and-phonetics/index.html | 19 +- site/engineering/engineering-manifest-data.js | 2 +- site/engineering/engineering-manifest.json | 4 +- site/engineering/index.html | 19 +- .../knowledge-graph-and-sqlite/index.html | 19 +- .../mcp-chatbot-rest-and-ipld/index.html | 21 +-- .../quant-macro-and-bayesian-brief/index.html | 19 +- site/gallery/index.html | 11 +- site/index.html | 11 +- site/learn/index.html | 15 +- site/learn/learn-app.js | 2 +- .../math/base36-algebra-and-primes/index.html | 19 +- .../graph-topology-and-eti-scoring/index.html | 19 +- site/math/index.html | 19 +- .../index.html | 19 +- site/math/math-manifest-data.js | 2 +- site/math/math-manifest.json | 4 +- .../index.html | 19 +- .../index.html | 19 +- site/quant/index.html | 25 +-- site/quant/quant-app.js | 31 +++- site/quant/quant-tutorials.js | 2 +- src/hyperstitionstud_io/__init__.py | 4 +- .../ci/public_regression.py | 130 ++++++++++++++ src/hyperstitionstud_io/mcp/server.py | 4 +- .../publishing/engineering_docs.py | 6 +- .../publishing/math_docs.py | 6 +- src/hyperstitionstud_io/quant/collector.py | 2 +- src/hyperstitionstud_io/version_sync.py | 11 ++ tests/test_core_suite.py | 26 +-- workspace.example.toml | 2 +- 45 files changed, 693 insertions(+), 219 deletions(-) create mode 100644 site/assets/hs-mobile-ui.js diff --git a/README.md b/README.md index de54f1f..ee87e44 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# `hyperstitionstudio-core` (`hyperstitionstud_io.*` — `v2.16.0`) +# `hyperstitionstudio-core` (`hyperstitionstud_io.*` — `v2.17.0`) -> **Gitea Commit & Release Telemetry (`v2.16.0` • Namespace `urn:io:hyperstitionstud`)** +> **Gitea Commit & Release Telemetry (`v2.17.0` • Namespace `urn:io:hyperstitionstud`)** > - **Repository Role & Public Route:** Shared PEP 420 Python core library (`hyperstitionstud_io.*`), MCP/REST server, `/quant/`, `/learn/`, `/engineering/`, `/math/`, & `/donate/` webroots → [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/) -> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.16.0 release state across 2 tracked module/artifact surface(s) -> - **Touched Files / Surfaces:** `docs/marketing/pitch-haiperdohpjematreeah-vs-cypher-news.md`, `docs/marketing/pitch-haiperdohpjematreeah-vs-cypher-news.pdf` -> - **Live Verified Ecosystem Metrics (`v2.16.0`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data +> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.0 release state across 44 tracked module/artifact surface(s) +> - **Touched Files / Surfaces:** `deploy/Caddyfile`, `deploy/push-all-to-git-libre-audio.sh`, `deploy/sync-vps-repos.sh`, `deploy/test-first-deployment.sh`, `package.json`, `packages-js/ciphers-aq/package.json`, `pyproject.toml`, `scripts/build_gallery_manifest.py` (+36 more) +> - **Live Verified Ecosystem Metrics (`v2.17.0`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data Shared Python common library (`hyperstitionstud_io.*`), stateless read-only Model Context Protocol (`/mcp`) & OpenAPI 3.1 REST (`/api/v1/*`) server, SQLite FTS5 metadata catalog (`hs-db-build`), offline `URN:` JSON Schema registry (`urn:io:hyperstitionstud:schema:v1:*`), and Group 3 Stealth Basalt web workbenches (`/`, `/learn/`, `/quant/`, `/engineering/`, `/math/`, `/donate/`) with the 4-Ring Hardened Polyglot REPL (`Guile Scheme`, `TypeScript`, `Rust`) and Subtle Cybernetic Code Rain (`hs-matrix-coderain.js`). @@ -50,7 +50,7 @@ python3 hyperstitionstudio-core/tests/test_core_suite.py --- -## Key Architecture & Capabilities (`v2.16.0`) +## Key Architecture & Capabilities (`v2.17.0`) 1. **17 CLI Entrypoints (`pyproject.toml [project.scripts]`):** - `hs-doctor`, `hs-citations`, `hs-pdf-build`, `hs-kg-build`, `hs-quant-harvest`, `hs-macro-harvest`, `hs-daily-brief`, `hs-ticker-card`, `hs-mcp`, `hs-db-build`, `hs-sync-version`, `hs-readme-sync`, `hs-archive-rotate`, `hs-public-smoke`, `hs-eng-docs`, `hs-math-docs`, and `hs-highlights`. diff --git a/deploy/Caddyfile b/deploy/Caddyfile index 492cee1..365ed51 100644 --- a/deploy/Caddyfile +++ b/deploy/Caddyfile @@ -45,6 +45,15 @@ hyperstitionstud.io { @html_js path *.html *.js *.json header @html_js Cache-Control "public, max-age=0, must-revalidate" + # Strategy 1A (Plan #66): Mobile User-Agent & Client-Hint Detection + @mobile_ua { + header_regexp User-Agent "(?i)(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|windows phone|mobile)" + } + header @mobile_ua { + X-HS-Device-UI "mobile" + Set-Cookie "hs_device_hint=mobile; Path=/; SameSite=Lax" + } + # 1. Repo Install Dir: encyclopedia-knowledge-graph -> https://hyperstitionstud.io/graph/* handle_path /graph/* { root * /var/www/hyperstitionstud.io/repos/encyclopedia-knowledge-graph diff --git a/deploy/push-all-to-git-libre-audio.sh b/deploy/push-all-to-git-libre-audio.sh index a755235..5edc87c 100755 --- a/deploy/push-all-to-git-libre-audio.sh +++ b/deploy/push-all-to-git-libre-audio.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # /workspace/push-all-to-git-libre-audio.sh -# Release v2.16.0: Pre-push verification & topological push of all 6 repositories to git.libre.audio. +# Release v2.17.0: Pre-push verification & topological push of all 6 repositories to git.libre.audio. set -euo pipefail on_error() { diff --git a/deploy/sync-vps-repos.sh b/deploy/sync-vps-repos.sh index 72cd57a..ebd2226 100755 --- a/deploy/sync-vps-repos.sh +++ b/deploy/sync-vps-repos.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # /workspace/hyperstitionstudio-core/deploy/sync-vps-repos.sh -# Release v2.16.0: Self-re-executing tmpfs VPS hydration & service sync. +# Release v2.17.0: Self-re-executing tmpfs VPS hydration & service sync. # Hydrates per-repository install directories from REPOS_ROOT into LIVE_REPOS (tmpfs RAM mount), # supplies untracked haiperdohp-jemaytreeah/.gitignore files (config.js, db.json, db_lite.json), # creates top-level route symlinks, pre-compresses (.br / .gz) static assets, and idempotently diff --git a/deploy/test-first-deployment.sh b/deploy/test-first-deployment.sh index e8dd8ea..2d1e3a4 100755 --- a/deploy/test-first-deployment.sh +++ b/deploy/test-first-deployment.sh @@ -55,6 +55,7 @@ ROUTES=( "/assets/hs-group3-basalt-chamfer.css" "/assets/hs-guile-scheme-repl.js" "/assets/hs-matrix-coderain.js" + "/assets/hs-mobile-ui.js" "/assets/matrix-font.woff2" "/assets/closeups/quadrant-1-cybermemetics-calc-graph.png" "/assets/closeups/quadrant-1-tab-2-graph.png" diff --git a/package.json b/package.json index 5e0711f..03374a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hyperstitionstud.io/workspace-core", - "version": "2.16.0", + "version": "2.17.0", "private": true, "description": "Offline-first ESM & browser global (@hyperstitionstud.io/* / window.HyperstitionStudio.*) packages for Base-36 AQ ciphers and interactive knowledge graph workbenches.", "license": "MIT", diff --git a/packages-js/ciphers-aq/package.json b/packages-js/ciphers-aq/package.json index f07b115..e0e2ed6 100644 --- a/packages-js/ciphers-aq/package.json +++ b/packages-js/ciphers-aq/package.json @@ -1,6 +1,6 @@ { "name": "@hyperstitionstud.io/ciphers-aq", - "version": "2.16.0", + "version": "2.17.0", "type": "module", "main": "index.js", "license": "MIT" diff --git a/pyproject.toml b/pyproject.toml index f7b990e..6639efe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "hyperstitionstudio-core" -version = "2.16.0" +version = "2.17.0" description = "Shared PEP 420 common library (hyperstitionstud_io.*) for Base-36 AQ ciphers, offline CMUdict Ingglish phonetics, ReportLab/Pillow publishing, SHA-256 glossary isolation guards, local-config citation verification, and multi-format knowledge graphs." readme = "README.md" requires-python = ">=3.10" diff --git a/scripts/build_gallery_manifest.py b/scripts/build_gallery_manifest.py index 2299283..51e35f2 100755 --- a/scripts/build_gallery_manifest.py +++ b/scripts/build_gallery_manifest.py @@ -144,8 +144,8 @@ def main() -> int: }) manifest = { - "version": "2.16.0", - "namespace_urn": "urn:io:hyperstitionstud:gallery:2.16.0", + "version": "2.17.0", + "namespace_urn": "urn:io:hyperstitionstud:gallery:2.17.0", "total_items": len(items), "items": items, } diff --git a/site/assets/closeups/ui-elements-manifest.json b/site/assets/closeups/ui-elements-manifest.json index c557d3a..4f1f8cb 100644 --- a/site/assets/closeups/ui-elements-manifest.json +++ b/site/assets/closeups/ui-elements-manifest.json @@ -1,6 +1,6 @@ { "$id": "urn:io:hyperstitionstud:closeups-ui-manifest", - "ui_elements_fingerprint_sha256": "86b84c09bdef694364e6272c5e3be7b3201da28ea0d515e54238cfadc5cbd307", + "ui_elements_fingerprint_sha256": "850e947100a471119f43bcc9317c1979447cd4c1ce3c06f4e98747be54b713b6", "closeup_images": [ "quadrant-1-cybermemetics-calc-graph.png", "quadrant-1-tab-2-graph.png", @@ -507,9 +507,9 @@ ] }, "graph": { - "ui_structure_sha256": "8079dbb08ce7149fbbb482829dd8628ac0d7d6ad0625b284fe02d92c0642be2d", - "id_count": 24, - "button_count": 6, + "ui_structure_sha256": "095cf74cd75866d3135d0eb0cac88c85fe2f9da1c5080c1f6f528f85e4ea1505", + "id_count": 26, + "button_count": 8, "option_count": 11, "input_count": 1, "heading_count": 5, @@ -534,6 +534,8 @@ "inspectorDrawer", "isolationBox", "minDegreeFilter", + "mobileGraphFiltersBtn", + "mobileGraphInspectorBtn", "nbrList", "nodeTypeToggles", "resetViewBtn", @@ -548,7 +550,9 @@ "Mode 3: Gen 0 -> Gen 1 Funnel", "Mode 4: 00–08 Folder Grid", "Reset View", - "Export PNG" + "Export PNG", + "⚙ Ontology & Filters", + "ⓘ Node Inspector" ], "sample_options": [ "Filter: All Nodes", @@ -799,7 +803,7 @@ } }, "ipld_dag_json_cidv1": { - "/": "baguqeera5baatrlchklvtiktsriydquwppzhgrlkp2rc5zy2xcdkx574uchq" + "/": "baguqeeradg673hhidck5xgxsdfmihzeoppstvdi7gxy56ejprd5ha7swxrka" }, "geometry_audit": { "all_clean": true, diff --git a/site/assets/hs-group3-basalt-chamfer.css b/site/assets/hs-group3-basalt-chamfer.css index 892439d..6cf7364 100644 --- a/site/assets/hs-group3-basalt-chamfer.css +++ b/site/assets/hs-group3-basalt-chamfer.css @@ -9,10 +9,12 @@ ========================================================================== */ :root { + --font-mono: 'DejaVu Sans Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; --bg-void: #020617; --bg-deep: #020617; --bg-well: #070d1b; --bg-card: #0c1324; + --bg-panel: #0c1324; --bg-surface: #0c1324; --bg-elevated: #111a2e; --bg-bezel: #182338; @@ -35,6 +37,18 @@ --accent-violet: #a855f7; } +body, +button, +input, +select, +textarea, +code, +pre, +kbd, +samp { + font-family: var(--font-mono); +} + body { background-color: var(--bg-void); background-image: @@ -613,7 +627,7 @@ html[data-sigil-accents="off"] .panel::after { } /* ========================================================================== - Unified Cross-Page Navigation UI (Plan #63 — Matching Immutable Homepage) + Unified Cross-Page Navigation UI (Plan #63 & Plan #65 — Matching Homepage) ========================================================================== */ .title-row { display: flex; @@ -648,27 +662,33 @@ html[data-sigil-accents="off"] .panel::after { .top-nav.hs-global-nav .btn { text-decoration: none; - background: #1e293b; - color: #f8fafc; - border: 1px solid #334155; - border-radius: 5px; + background-color: var(--bg-interact); + color: var(--cyan); + border: 1px solid rgba(56, 189, 248, 0.55); padding: 0.34rem 0.62rem; font-size: 0.7rem; font-weight: 600; white-space: nowrap; - font-family: 'DejaVu Sans Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; + font-family: var(--font-mono); transition: all 0.15s ease; } -.top-nav.hs-global-nav .btn:hover { +.top-nav.hs-global-nav .btn:hover, +.meta-badges .btn:hover { border-color: var(--cyan) !important; - color: var(--cyan) !important; + background-color: #192b4b !important; + color: #f8fafc !important; } -.top-nav.hs-global-nav .btn.primary { - background: #22d3ee !important; +.top-nav.hs-global-nav .btn.primary, +.meta-badges .btn.primary, +a.btn.primary:not(.btn-donate-pill), +button.btn.primary:not(.tactile-donate-btn), +button.btn.active:not(.tactile-donate-btn) { + background-color: var(--cyan) !important; color: #020617 !important; - border-color: #22d3ee !important; + border-color: var(--cyan) !important; + font-weight: 700; } .hs-subnav-bar { @@ -687,3 +707,110 @@ html[data-sigil-accents="off"] .panel::after { flex-wrap: wrap; gap: 0.38rem; } + +/* ========================================================================== + Adaptive Group 3 Mobile UI (Plan #66 — Affirmed Strategies 1A, 2A, 3A, 4A) + Strictly scoped under html[data-device-ui="mobile"] (0 Desktop UI changes) + ========================================================================== */ +.hs-mobile-menu-btn, +.hs-mobile-nav-sheet { + display: none; +} + +html[data-device-ui="mobile"] body { + padding: 0.65rem 0.65rem !important; +} + +html[data-device-ui="mobile"] header { + flex-wrap: wrap !important; + padding: 0.75rem 0.85rem !important; + gap: 0.5rem !important; + margin-bottom: 0.65rem !important; +} + +html[data-device-ui="mobile"] header h1 { + white-space: normal !important; + font-size: 0.85rem !important; + line-height: 1.3 !important; +} + +html[data-device-ui="mobile"] .subtitle { + font-size: 0.66rem !important; + line-height: 1.35 !important; +} + +html[data-device-ui="mobile"] .hs-mobile-menu-btn { + display: inline-flex !important; + margin-left: auto; + height: 30px !important; + padding: 0 0.55rem !important; + font-size: 0.68rem !important; + font-weight: 700 !important; + flex-shrink: 0; +} + +html[data-device-ui="mobile"] .meta-badges, +html[data-device-ui="mobile"] .top-nav.hs-global-nav { + width: 100% !important; + margin-left: 0 !important; + justify-content: flex-start !important; + flex-wrap: nowrap !important; + overflow-x: auto !important; + -webkit-overflow-scrolling: touch; + padding-bottom: 4px; + gap: 0.35rem !important; +} + +html[data-device-ui="mobile"] .hs-mobile-nav-sheet.open { + display: grid !important; + grid-template-columns: repeat(2, 1fr); + gap: 0.45rem; + padding: 0.75rem; + margin-bottom: 0.75rem; + background-color: var(--bg-card); + border: 1px solid var(--cyan); +} + +html[data-device-ui="mobile"] .hs-mobile-sheet-link { + width: 100%; + min-height: 38px !important; + justify-content: center !important; + text-align: center; +} + +html[data-device-ui="mobile"] .hs-subnav-bar { + padding: 0.5rem 0.65rem !important; + overflow-x: auto !important; +} + +html[data-device-ui="mobile"] .hs-polyglot-segmented { + max-width: 100%; + overflow-x: auto; + -webkit-overflow-scrolling: touch; +} + +html[data-device-ui="mobile"] #hsGuileReplDrawer { + left: 8px !important; + right: 8px !important; + bottom: 8px !important; + width: auto !important; +} + +html[data-device-ui="mobile"] #quantInfoPopover { + left: 8px !important; + right: 8px !important; + bottom: 8px !important; + top: auto !important; + width: auto !important; + max-width: none !important; +} + +html[data-device-ui="mobile"] #guildPills, +html[data-device-ui="mobile"] #modePills, +html[data-device-ui="mobile"] #tutEpisodeTabs { + flex-wrap: nowrap !important; + overflow-x: auto !important; + -webkit-overflow-scrolling: touch; + max-width: 100%; + padding-bottom: 3px; +} diff --git a/site/assets/hs-mobile-ui.js b/site/assets/hs-mobile-ui.js new file mode 100644 index 0000000..42c90b3 --- /dev/null +++ b/site/assets/hs-mobile-ui.js @@ -0,0 +1,166 @@ +/* ========================================================================== + hyperstitionstud.io — Adaptive Mobile Device Detector & Group 3 Mobile UI + (Plan #66: PLAN-PIECEWISE-MOBILE-DEVICE-DETECTION-AND-ADAPTIVE-MOBILE-UI) + Affirmed Strategies 1A, 2A, 3A, 4A: + - Multi-signal synchronous detection (URL ?mobile=1|0, localStorage override, + navigator.userAgentData.mobile, mobile UA regex, and coarse-pointer / + <=820px viewport media query) -> sets html[data-device-ui="mobile|desktop"]. + - Strategy 2A: Injects `[ ☰ Menu ]` slide-down 2-column touch navigation + sheet (#hsMobileNavSheet) into
when mobile UI is active, while + keeping .meta-badges / .top-nav.hs-global-nav as a swipeable touch rail. + - Strategy 1A: Injects `[ 📱 Mobile UI | 🖥 Desktop UI ]` switcher in footer. + ========================================================================== */ +(function () { + "use strict"; + + var STORAGE_KEY = "hs_device_ui_override"; + var MOBILE_UA_RE = /\b(Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Windows Phone|Mobile)\b/i; + + function getCookie(name) { + try { + var m = document.cookie.match(new RegExp("(?:^|; )" + name + "=([^;]*)")); + return m ? decodeURIComponent(m[1]) : ""; + } catch (_) { + return ""; + } + } + + function detectMobileDevice() { + try { + var params = new URLSearchParams(window.location.search || ""); + var qMob = params.get("mobile"); + if (qMob === "1" || qMob === "true") { + try { localStorage.setItem(STORAGE_KEY, "mobile"); } catch (_) {} + return true; + } + if (qMob === "0" || qMob === "false") { + try { localStorage.setItem(STORAGE_KEY, "desktop"); } catch (_) {} + return false; + } + var saved = ""; + try { saved = localStorage.getItem(STORAGE_KEY) || ""; } catch (_) {} + if (saved === "mobile") return true; + if (saved === "desktop") return false; + } catch (_) {} + + if (getCookie("hs_device_hint") === "mobile") return true; + if (typeof navigator !== "undefined") { + if (navigator.userAgentData && navigator.userAgentData.mobile === true) return true; + if (MOBILE_UA_RE.test(navigator.userAgent || "")) return true; + } + if (typeof window !== "undefined" && typeof window.matchMedia === "function") { + if (window.matchMedia("(max-width: 820px), (hover: none) and (pointer: coarse)").matches) { + return true; + } + } + return false; + } + + function applyDeviceUiMode(mode) { + var root = document.documentElement; + if (!root) return; + root.setAttribute("data-device-ui", mode); + var switchBtn = document.getElementById("hsMobileUiSwitchBtn"); + if (switchBtn) { + switchBtn.textContent = mode === "mobile" ? "[ \uD83D\uDCF1 Mobile UI: ON \u2022 Switch to Desktop ]" : "[ \uD83D\uDDA5 Desktop UI \u2022 Switch to Mobile UI ]"; + switchBtn.setAttribute("aria-pressed", mode === "mobile" ? "true" : "false"); + } + if (mode !== "mobile") { + var sheet = document.getElementById("hsMobileNavSheet"); + if (sheet) sheet.classList.remove("open"); + var menuBtn = document.getElementById("hsMobileMenuBtn"); + if (menuBtn) menuBtn.setAttribute("aria-expanded", "false"); + } + } + + // Run synchronous detection immediately + var initialMode = detectMobileDevice() ? "mobile" : "desktop"; + applyDeviceUiMode(initialMode); + + function initMobileNavAndFooterSwitcher() { + var hdr = document.querySelector("header"); + var navEl = hdr && hdr.querySelector(".top-nav.hs-global-nav, .meta-badges"); + if (hdr && navEl && !document.getElementById("hsMobileMenuBtn")) { + var menuBtn = document.createElement("button"); + menuBtn.type = "button"; + menuBtn.id = "hsMobileMenuBtn"; + menuBtn.className = "btn hs-mobile-menu-btn"; + menuBtn.setAttribute("aria-expanded", "false"); + menuBtn.setAttribute("aria-controls", "hsMobileNavSheet"); + menuBtn.textContent = "\u2630 Menu"; + + var sheet = document.createElement("div"); + sheet.id = "hsMobileNavSheet"; + sheet.className = "hs-mobile-nav-sheet hs-plate-g3"; + sheet.setAttribute("aria-label", "Mobile Ecosystem Navigation Drawer"); + + var links = navEl.querySelectorAll("a"); + links.forEach(function (a) { + var clone = a.cloneNode(true); + clone.removeAttribute("id"); + clone.classList.add("hs-mobile-sheet-link"); + sheet.appendChild(clone); + }); + + menuBtn.addEventListener("click", function () { + var isOpen = sheet.classList.toggle("open"); + menuBtn.setAttribute("aria-expanded", isOpen ? "true" : "false"); + menuBtn.textContent = isOpen ? "\u2715 Close" : "\u2630 Menu"; + }); + + var titleRow = hdr.querySelector(".title-row"); + if (titleRow) { + titleRow.appendChild(menuBtn); + } else { + hdr.insertBefore(menuBtn, navEl); + } + hdr.parentNode.insertBefore(sheet, hdr.nextSibling); + } + + var ftr = document.querySelector("footer"); + if (ftr && !document.getElementById("hsMobileUiSwitchBtn")) { + var wrap = document.createElement("div"); + wrap.style.cssText = "margin-top:6px;"; + var swBtn = document.createElement("button"); + swBtn.type = "button"; + swBtn.id = "hsMobileUiSwitchBtn"; + swBtn.className = "btn hs-rain-toggle-btn"; + swBtn.addEventListener("click", function () { + var cur = document.documentElement.getAttribute("data-device-ui") || "desktop"; + var next = cur === "mobile" ? "desktop" : "mobile"; + try { localStorage.setItem(STORAGE_KEY, next); } catch (_) {} + applyDeviceUiMode(next); + window.dispatchEvent(new Event("resize")); + }); + wrap.appendChild(swBtn); + ftr.appendChild(wrap); + applyDeviceUiMode(document.documentElement.getAttribute("data-device-ui") || initialMode); + } + } + + if (document.readyState === "loading") { + document.addEventListener("DOMContentLoaded", initMobileNavAndFooterSwitcher); + } else { + initMobileNavAndFooterSwitcher(); + } + + window.addEventListener("resize", function () { + var saved = ""; + try { saved = localStorage.getItem(STORAGE_KEY) || ""; } catch (_) {} + if (!saved) { + applyDeviceUiMode(detectMobileDevice() ? "mobile" : "desktop"); + } + }); + + window.HyperstitionStudio = window.HyperstitionStudio || {}; + window.HyperstitionStudio.MobileUI = { + detectMobileDevice: detectMobileDevice, + setMode: function (mode) { + try { localStorage.setItem(STORAGE_KEY, mode); } catch (_) {} + applyDeviceUiMode(mode); + }, + getMode: function () { + return document.documentElement.getAttribute("data-device-ui") || "desktop"; + } + }; +})(); diff --git a/site/donate/index.html b/site/donate/index.html index b7eadc9..7c7e1ca 100644 --- a/site/donate/index.html +++ b/site/donate/index.html @@ -4,14 +4,14 @@ Signal Patronage & Open-Instrument Notes — hyperstitionstud.io/donate - + - +
@@ -329,7 +329,7 @@

hyperstitionstud.io/quant — Quantitative Finance & Memetic Gematria Time-Series Workbench

-

Strictly Periodic Telemetry (21:30 UTC US Closing Bell × 00:00 UTC News-Wire Dossiers • 24 Watchlist Instruments • 14 FRED Macro Series) • Lens-Neutral Schema (urn:io:hyperstitionstud:quant-timeseries:v2.16.0)

+

Strictly Periodic Telemetry (21:30 UTC US Closing Bell × 00:00 UTC News-Wire Dossiers • 24 Watchlist Instruments • 14 FRED Macro Series) • Lens-Neutral Schema (urn:io:hyperstitionstud:quant-timeseries:v2.17.0)

", stxt, flags=re.S) + if not nav_m: + errors.append(f"Gate S3: Missing