Compare commits

...
1 Commits
7 changed files with 311 additions and 133 deletions

No files matched your search

+7 -7
View File
@@ -1,16 +1,16 @@
# `haiperdohp-jemaytreeah` — Cypher Calculator (`v2.14.0` — `https://hyperstitionstud.io/calc/`) # `haiperdohp-jemaytreeah` — haiperdohpjematreeah (`v2.15.0` — `https://hyperstitionstud.io/calc/`)
<!-- HS-COMMIT-STATUS:START --> <!-- HS-COMMIT-STATUS:START -->
> **Gitea Commit & Release Telemetry (`v2.14.0` • Namespace `urn:io:hyperstitionstud`)** > **Gitea Commit & Release Telemetry (`v2.15.0` • Namespace `urn:io:hyperstitionstud`)**
> - **Repository Role & Public Route:** Multi-Cipher Browser Gematria Workbench (`82` ciphers, `231,615` Ingglish-provisioned `db.txt` entries, progressive `db_lite.json` + `db.json` hydration) &rarr; [`https://hyperstitionstud.io/calc/index.html`](https://hyperstitionstud.io/calc/index.html) > - **Repository Role & Public Route:** Multi-Cipher Browser Gematria Workbench (`82` ciphers, `231,615` Ingglish-provisioned `db.txt` entries, progressive `db_lite.json` + `db.json` hydration) &rarr; [`https://hyperstitionstud.io/calc/index.html`](https://hyperstitionstud.io/calc/index.html)
> - **Latest Commit Scope (`haiperdohp-jemaytreeah`):** Synchronized v2.14.0 release state across 1 tracked module/artifact surface(s) > - **Latest Commit Scope (`haiperdohp-jemaytreeah`):** Synchronized v2.15.0 release state across 6 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `index.html` > - **Touched Files / Surfaces:** `calc/coderain.js`, `calc/styles.css`, `config.default.js`, `docs/ONBOARDING-INGGLISH-AQ.md`, `index.html`, `manifest.json`
> - **Live Verified Ecosystem Metrics (`v2.14.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 > - **Live Verified Ecosystem Metrics (`v2.15.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
<!-- HS-COMMIT-STATUS:END --> <!-- HS-COMMIT-STATUS:END -->
A gematria cypher calculator with pre-computed instant matching (`82` ciphers, `231,615` Ingglish-provisioned `db.txt` entries across `db_lite.json` and `db.json`), progressive background hydration, and full whitelabel support via `config.js` at [`https://hyperstitionstud.io/calc/`](https://hyperstitionstud.io/calc/). A gematria cypher workbench (`haiperdohpjematreeah`) with pre-computed instant matching (`82` ciphers, `231,615` Ingglish-provisioned `db.txt` entries across `db_lite.json` and `db.json`), progressive background hydration, and full whitelabel support via `config.js` at [`https://hyperstitionstud.io/calc/`](https://hyperstitionstud.io/calc/).
![Cypher Calculator](res/preview.png) ![haiperdohpjematreeah](res/preview.png)
## Quick Start ## Quick Start
+6
View File
@@ -67,6 +67,12 @@ function rndInt(min, max) { // inclusive
} }
function toggleCodeRain() { function toggleCodeRain() {
if (typeof window !== "undefined" && document.getElementById("hsMatrixCodeRainCanvas")) {
if (typeof code_rain !== "undefined") clearInterval(code_rain)
var cEl = document.getElementById("canv")
if (cEl) cEl.style.display = "none"
return
}
if (optMatrixCodeRain) { if (optMatrixCodeRain) {
clearInterval(code_rain) // reset previous instance clearInterval(code_rain) // reset previous instance
document.getElementById("canv").style.display = "none" document.getElementById("canv").style.display = "none"
+140
View File
@@ -1885,3 +1885,143 @@ input[type="checkbox"] {
height: 0px; height: 0px;
border: solid 4px var(--checkmark-accent); border: solid 4px var(--checkmark-accent);
} }
/* ==========================================================================
Group 3 ("Stealth Basalt Plate & Micro-Pip Signal Ribbon") Homepage Parity
for haiperdohpjematreeah (/calc/)
========================================================================== */
body.hs-calc-group3-body {
background-color: #020617;
background-image:
linear-gradient(0deg, rgba(14, 22, 40, 0.38) 1px, transparent 1px),
linear-gradient(90deg, rgba(14, 22, 40, 0.38) 1px, transparent 1px);
background-size: 32px 32px;
color: #f8fafc;
font-family: "DejaVu Sans Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.hs-calc-shell {
max-width: 1360px;
margin: 0 auto;
padding: 1.25rem 1.25rem 1.5rem 1.25rem;
position: relative;
z-index: 2;
}
#hsCalcHeader {
background: #0f172a;
border: 1px solid #334155;
border-left: 4px solid #34d399;
padding: 1.05rem 1.35rem;
margin-bottom: 1.15rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 0.85rem;
text-align: left;
}
.hs-calc-title-row {
display: flex;
align-items: center;
gap: 0.65rem;
}
.hs-calc-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: #34d399;
box-shadow: 0 0 10px #34d399;
flex-shrink: 0;
}
#hsCalcHeader h1 {
font-size: 0.98rem;
font-weight: 700;
color: #f8fafc;
margin: 0;
letter-spacing: -0.02em;
}
.hs-calc-subtitle {
color: #94a3b8;
font-size: 0.71rem;
margin: 0.25rem 0 0 0;
}
.hs-calc-top-nav {
margin-left: auto;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 0.38rem;
flex-wrap: wrap;
}
.hs-nav-btn {
text-decoration: none !important;
background: #1e293b;
color: #f8fafc !important;
border: 1px solid #334155 !important;
border-radius: 5px;
padding: 0.34rem 0.62rem;
font-size: 0.7rem;
font-weight: 600;
white-space: nowrap;
transition: all 0.15s ease;
}
.hs-nav-btn:hover {
border-color: #22d3ee !important;
color: #22d3ee !important;
}
.hs-nav-btn.primary {
background: #22d3ee !important;
color: #020617 !important;
border-color: #22d3ee !important;
}
#calcMain {
background-color: rgba(12, 19, 36, 0.92);
border: 1px solid #26344d;
padding: 1.25rem 1rem 1.5rem 1rem;
margin: 0 auto;
}
#inputArea {
background-color: #070d1b;
border: 1px solid rgba(56, 189, 248, 0.45);
padding: 0.55rem 0.85rem;
margin: 0.75rem auto;
display: inline-flex;
align-items: center;
flex-wrap: wrap;
justify-content: center;
gap: 0.35rem;
}
#phraseBox,
#highlightBox {
background-color: #020617 !important;
color: #f8fafc !important;
border: 1px solid #334155 !important;
font-family: "DejaVu Sans Mono", "Roboto Mono", monospace !important;
}
#phraseBox:focus,
#highlightBox:focus {
border-color: #38bdf8 !important;
outline: none !important;
box-shadow: 0 0 8px rgba(56, 189, 248, 0.35);
}
.dropbtn,
#queryDBbtn,
#enterPhraseBtn,
#autoMatchBtn,
#hltModeBtn {
font-family: "DejaVu Sans Mono", "Roboto Mono", monospace !important;
}
+3 -3
View File
@@ -1,13 +1,13 @@
// ===================================================================== // =====================================================================
// Cypher Calculator Configuration (Default / Opensource) // haiperdohpjematreeah Configuration (Default / Opensource)
// Copy this file to config.js and customize for your site. // Copy this file to config.js and customize for your site.
// ===================================================================== // =====================================================================
var CALC_CONFIG = { var CALC_CONFIG = {
// --- Branding --- // --- Branding ---
siteName: "Cypher Calculator", // logo text siteName: "haiperdohpjematreeah", // logo text
siteTitle: "Cypher Calculator — Gematria", // browser tab title siteTitle: "haiperdohpjematreeah — Gematria", // browser tab title
logoColor: "hsl(148, 60%, 45%)", // green (match code rain) logoColor: "hsl(148, 60%, 45%)", // green (match code rain)
logoGlow: "0 0 8px rgba(0,255,65,0.3), 0 0 16px rgba(0,255,65,0.15)", logoGlow: "0 0 8px rgba(0,255,65,0.3), 0 0 16px rgba(0,255,65,0.15)",
logoHoverMatrix: true, // flip letters to matrix font on hover logoHoverMatrix: true, // flip letters to matrix font on hover
+1 -1
View File
@@ -1,6 +1,6 @@
# Welcome to Hyperdope-Gematria & Ingglish AQ: A Complete Newcomer's Guide # Welcome to Hyperdope-Gematria & Ingglish AQ: A Complete Newcomer's Guide
If you are brand new to **Hyperdope-Gematria** (`Cypher Calculator`) and have never heard of **Ingglish** or **Alphanumeric Qabbala (AQ)**, this guide walks you through everything from first principles to hands-on discovery in under five minutes. If you are brand new to **Hyperdope-Gematria** (`haiperdohpjematreeah`) and have never heard of **Ingglish** or **Alphanumeric Qabbala (AQ)**, this guide walks you through everything from first principles to hands-on discovery in under five minutes.
--- ---
+151 -119
View File
@@ -1,17 +1,18 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en">
<head> <head>
<title>Cypher Calculator</title> <!-- updated by config.js --> <title>haiperdohpjematreeah</title> <!-- updated by config.js -->
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta <meta
name="viewport" name="viewport"
content="width=520, maximum-scale=1, user-scalable=no" content="width=device-width, initial-scale=1.0"
/> />
<link rel="shortcut icon" type="image/x-icon" href="res/favicon.png" /> <link rel="shortcut icon" type="image/x-icon" href="res/favicon.png" />
<!-- Android Web App - Add to Home Screen --> <!-- Android Web App - Add to Home Screen -->
<link rel="manifest" href="manifest.json" /> <link rel="manifest" href="manifest.json" />
<script src="config.js?v=11"></script> <script src="config.js?v=12"></script>
<script src="lib/jquery.min.js?v=2"></script> <script src="lib/jquery.min.js?v=2"></script>
<!-- html2canvas v1.0.0-alpha.12 --> <!-- html2canvas v1.0.0-alpha.12 -->
@@ -20,7 +21,8 @@
<script src="calc/init-variables.js?v=9"></script> <script src="calc/init-variables.js?v=9"></script>
<script src="calc/ciphers.js?v=6"></script> <script src="calc/ciphers.js?v=6"></script>
<link rel="stylesheet" type="text/css" href="calc/styles.css?v=10" /> <link rel="stylesheet" type="text/css" href="calc/styles.css?v=12" />
<link rel="stylesheet" type="text/css" href="/assets/hs-group3-basalt-chamfer.css?v=2.14.0" onerror="this.onerror=null;this.href='../hyperstitionstudio-core/site/assets/hs-group3-basalt-chamfer.css';" />
<script> <script>
window.onpaint = function () { window.onpaint = function () {
@@ -32,120 +34,145 @@
</script> </script>
</head> </head>
<body> <body class="hs-calc-group3-body">
<!-- initCalc() needs to run before the db loads to create menu properly-->
<!-- <body onload="initCalc(true)"> -->
<div id="loader"></div> <div id="loader"></div>
<canvas id="canv"></canvas> <canvas id="canv"></canvas>
<!-- preload font --> <!-- preload font -->
<span style="font-family: 'Roboto Mono'"></span> <span style="font-family: 'Roboto Mono'"></span>
<div id="calcMain"> <div class="hs-calc-shell">
<center> <header id="hsCalcHeader" class="hs-plate-g3 plate-lock-emerald">
<div id="calcLogo"> <div>
<div id="logoText"></div> <div class="hs-calc-title-row">
<style> <span class="hs-calc-dot" aria-hidden="true"></span>
.logoLetter { transition: font-family 0.1s; display: inline-block; } <h1>HYPERSTITIONSTUD.IO/CALC // HAIPERDOHPJEMATREEAH WORKBENCH</h1>
.logoLetter:hover { font-family: matrix-font, monospace; color: #00ffcc; } </div>
</style> <p class="hs-calc-subtitle">82 Ciphers &bull; 231,615 Ingglish-Provisioned db.txt Entries &bull; Progressive Lite &rarr; Full Hydration &bull; <span class="hs-sigil-seal" aria-hidden="true">[ &#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; ]</span></p>
</div> </div>
<script> <nav class="hs-calc-top-nav" aria-label="Primary Ecosystem Navigation">
(function() { <a class="hs-nav-btn" id="calcNavHome" href="/">Portal Home (/)</a>
var c = (typeof CALC_CONFIG !== 'undefined') ? CALC_CONFIG : {}; <a class="hs-nav-btn primary" id="calcNavSelf" href="/calc/index.html">Calculator</a>
var name = c.siteName || "Cypher Calculator"; <a class="hs-nav-btn" id="calcNavQuant" href="/quant/index.html" style="border-color:#f5c630;color:#f5c630;">Quant</a>
var color = c.logoColor || "#00ff41"; <a class="hs-nav-btn" id="calcNavGraph" href="/graph/index.html" style="border-color:#22d3ee;color:#22d3ee;">Graph</a>
var glow = c.logoGlow || ""; <a class="hs-nav-btn" id="calcNavLearn" href="/learn/index.html" style="border-color:#34d399;color:#34d399;">Learn</a>
var el = document.getElementById("logoText"); <a class="hs-nav-btn" id="calcNavEng" href="/engineering/index.html">Engineering</a>
el.style.cssText = "color:"+color+";text-shadow:"+glow+";font-family:'Courier New',monospace;font-weight:bold;font-size:250%;letter-spacing:3px;cursor:default;"; <a class="hs-nav-btn" id="calcNavMath" href="/math/index.html">Math</a>
if (c.logoHoverMatrix !== false) { <span class="nav-donate-sep" aria-hidden="true"></span>
el.innerHTML = name.split("").map(function(ch){ return '<span class="logoLetter">'+ch+'</span>'; }).join(""); <a class="btn-donate-pill" id="calcNavDonate" href="/donate/index.html?from=calc" title="Signal Patronage &amp; Open-Instrument Notes (/donate/)"><span class="donate-pill-emblem" aria-hidden="true">&#x2665;</span><span>DONATE</span></a>
} else { </nav>
el.textContent = name; </header>
}
document.title = c.siteTitle || name;
})();
</script>
</center>
<center> <div id="calcMain" class="hs-plate-g3">
<div id="calcOptionsPanel"></div> <center>
<div id="calcLogo">
<div id="logoText"></div>
<style>
.logoLetter { transition: font-family 0.1s; display: inline-block; }
.logoLetter:hover { font-family: matrix-font, monospace; color: #38bdf8; }
</style>
</div>
<script>
(function() {
var c = (typeof CALC_CONFIG !== 'undefined') ? CALC_CONFIG : {};
var name = c.siteName || "haiperdohpjematreeah";
if (/^cypher\s*calculator$/i.test(name)) {
name = "haiperdohpjematreeah";
}
var color = c.logoColor || "#34d399";
var glow = c.logoGlow || "0 0 10px rgba(52,211,153,0.28)";
var el = document.getElementById("logoText");
el.style.cssText = "color:"+color+";text-shadow:"+glow+";font-family:'DejaVu Sans Mono','Roboto Mono','Courier New',monospace;font-weight:bold;font-size:215%;letter-spacing:3px;cursor:default;";
if (c.logoHoverMatrix !== false) {
el.innerHTML = name.split("").map(function(ch){ return '<span class="logoLetter">'+ch+'</span>'; }).join("");
} else {
el.textContent = name;
}
var rawTitle = c.siteTitle || name;
document.title = rawTitle.replace(/cypher\s*calculator/ig, "haiperdohpjematreeah");
})();
</script>
</center>
<div id="colorControlsMenuArea"></div> <center>
<div id="editCiphersMenuArea"></div> <div id="calcOptionsPanel"></div>
<div id="dateCalcMenuArea"></div>
<div id="inputArea"> <div id="colorControlsMenuArea"></div>
<span id="dbLoadIndicator" style="display:none;margin-right:6px;"> <div id="editCiphersMenuArea"></div>
<svg width="22" height="22" viewBox="0 0 22 22" style="vertical-align:middle;animation:dbspin 1s linear infinite;"> <div id="dateCalcMenuArea"></div>
<circle cx="11" cy="11" r="9" stroke="var(--font-color,#0ff)" stroke-width="2" fill="none" stroke-dasharray="40 20" stroke-linecap="round"/>
</svg>
</span>
<style>@keyframes dbspin{to{transform:rotate(360deg)}}</style>
<input
id="queryDBbtn"
class="hideValue"
type="button"
onclick="queryDatabase()"
value="Query"
/>
<input
id="phraseBox"
autofocus
type="text"
spellcheck="false"
autocomplete="off"
oninput="updateEnabledCipherTable(); updateWordBreakdown(breakCipher,false,false);"
onkeydown="if(event.key==='Enter'){phraseBoxKeypress(13)}else{phraseBoxKeypress(event.keyCode)}"
ondrop="dropHandler(event)"
ondragover="dragOverHandler(event)"
/>
<input
id="enterPhraseBtn"
type="button"
title="Add phrase to list"
onclick="addPhraseOnly()"
value="&#x21B5;"
/><input
id="autoMatchBtn"
class="hideValue"
type="button"
title="Auto-match ON — click to disable"
value="⚡"
onclick="toggleAutoMatch()"
/>
<input
id="highlightBox"
type="text"
spellcheck="false"
autocomplete="off"
placeholder="highlight #s"
/><input
id="hltModeBtn"
class="hltModeOff"
type="button"
title="Highlight: any matches (every cell with the value) — click for same column matches"
value="▼"
onclick="toggleHltMode()"
/><span id="clearFilterButton"></span>
</div>
<div id="enabledCiphTable"></div> <div id="inputArea" class="hs-plate-g3">
<span id="dbLoadIndicator" style="display:none;margin-right:6px;">
<svg width="22" height="22" viewBox="0 0 22 22" style="vertical-align:middle;animation:dbspin 1s linear infinite;">
<circle cx="11" cy="11" r="9" stroke="var(--font-color,#0ff)" stroke-width="2" fill="none" stroke-dasharray="40 20" stroke-linecap="round"/>
</svg>
</span>
<style>@keyframes dbspin{to{transform:rotate(360deg)}}</style>
<input
id="queryDBbtn"
class="hideValue"
type="button"
onclick="queryDatabase()"
value="Query"
/>
<input
id="phraseBox"
autofocus
type="text"
spellcheck="false"
autocomplete="off"
oninput="updateEnabledCipherTable(); updateWordBreakdown(breakCipher,false,false);"
onkeydown="if(event.key==='Enter'){phraseBoxKeypress(13)}else{phraseBoxKeypress(event.keyCode)}"
ondrop="dropHandler(event)"
ondragover="dragOverHandler(event)"
/>
<input
id="enterPhraseBtn"
type="button"
title="Add phrase to list"
onclick="addPhraseOnly()"
value="&#x21B5;"
/><input
id="autoMatchBtn"
class="hideValue"
type="button"
title="Auto-match ON — click to disable"
value="⚡"
onclick="toggleAutoMatch()"
/>
<input
id="highlightBox"
type="text"
spellcheck="false"
autocomplete="off"
placeholder="highlight #s"
/><input
id="hltModeBtn"
class="hltModeOff"
type="button"
title="Highlight: any matches (every cell with the value) — click for same column matches"
value="▼"
onclick="toggleHltMode()"
/><span id="clearFilterButton"></span>
</div>
<div id="BreakdownDetails"> <div id="enabledCiphTable"></div>
<div id="BreakdownSpot"></div>
<div id="ChartSpotScroll"><div id="ChartSpot"></div></div>
</div>
</center>
<center> <div id="BreakdownDetails">
<div id="HistoryTableArea"></div> <div id="BreakdownSpot"></div>
</center> <div id="ChartSpotScroll"><div id="ChartSpot"></div></div>
</div>
</center>
<center>
<div id="HistoryTableArea"></div>
</center>
</div>
<footer id="hsGlobalFooter" style="text-align:center;padding:14px 8px;font-family:'DejaVu Sans Mono','Courier New',monospace;font-size:12px;color:#94a3b8;border-top:1px solid #26344d;margin-top:1rem;">
<span class="hs-lemur-credit">hyperstitionstud.io/calc v2.14.0 &bull; <span class="hs-sigil-colophon" aria-hidden="true">&#x269A; &middot; &#x263F; &middot; &#x260D; &middot; &#x2609; &middot; &#x2644;</span> &bull; hyperstitionstud.io/calc v2.15.0 &bull; Made with <span class="hs-heart" role="img" aria-label="love" style="color:#fb7185;display:inline-block;padding:0 2px;">&#x2665;</span> by Lemurs.</span>
</footer>
</div> </div>
<footer id="hsGlobalFooter" style="text-align:center;padding:14px 8px;font-family:'Courier New',monospace;font-size:12px;color:#94a3b8;">
<span class="hs-lemur-credit">hyperstitionstud.io/calc v2.14.0 &bull; Made with <span class="hs-heart" role="img" aria-label="love" style="color:#fb7185;display:inline-block;padding:0 2px;">&#x2665;</span> by Lemurs.</span>
</footer>
<span id="loadPanel"></span> <span id="loadPanel"></span>
@@ -165,10 +192,27 @@
<script src="calc/encoding-ciphers.js?v=2"></script> <script src="calc/encoding-ciphers.js?v=2"></script>
<script src="calc/coderain.js?v=2"></script> <script src="calc/coderain.js?v=2"></script>
<script src="/assets/hs-matrix-coderain.js?v=2.14.0" defer></script>
<script src="lib/html2canvas.min.js?v=2"></script> <script src="lib/html2canvas.min.js?v=2"></script>
<!-- Initialzie the calculator. This needs to run before loading a database or theme. -->
<script> <script>
// Adapt header links when opened directly over file://
if (window.location.protocol === "file:") {
var navMap = {
calcNavHome: "../hyperstitionstudio-core/site/index.html",
calcNavSelf: "./index.html",
calcNavQuant: "../hyperstitionstudio-core/site/quant/index.html",
calcNavGraph: "../encyclopedia-knowledge-graph/index.html",
calcNavLearn: "../hyperstitionstudio-core/site/learn/index.html",
calcNavEng: "../hyperstitionstudio-core/site/engineering/index.html",
calcNavMath: "../hyperstitionstudio-core/site/math/index.html",
calcNavDonate: "../hyperstitionstudio-core/site/donate/index.html?from=calc"
};
Object.keys(navMap).forEach(function (id) {
var el = document.getElementById(id);
if (el) el.setAttribute("href", navMap[id]);
});
}
initCalc(true); initCalc(true);
</script> </script>
@@ -179,25 +223,21 @@
// Show loading indicator // Show loading indicator
document.getElementById("dbLoadIndicator").style.display = "inline"; document.getElementById("dbLoadIndicator").style.display = "inline";
// Load pre-computed db.json (instant matching, ~16MB gzipped via mod_deflate)
// Falls back to db.txt (2.3MB, live mode with recalculation)
var _c = (typeof CALC_CONFIG !== 'undefined') ? CALC_CONFIG : {}; var _c = (typeof CALC_CONFIG !== 'undefined') ? CALC_CONFIG : {};
var _jsonUrl = _c.databaseJsonUrl || "db.json"; var _jsonUrl = _c.databaseJsonUrl || "db.json";
var _txtUrl = _c.databaseTxtUrl || "db.txt"; var _txtUrl = _c.databaseTxtUrl || "db.txt";
var _mode = _c.databaseMode || "auto"; var _mode = _c.databaseMode || "auto";
var _liteUrl = _c.databaseLiteJsonUrl || "db_lite.json"; var _liteUrl = _c.databaseLiteJsonUrl || "db_lite.json";
var _dbVer = _c.databaseVersion ? ("?v=" + _c.databaseVersion) : ""; // cache-bust db.json/db_lite.json on each regen var _dbVer = _c.databaseVersion ? ("?v=" + _c.databaseVersion) : "";
function _dbLoaded() { function _dbLoaded() {
document.getElementById("dbLoadIndicator").style.display = "none"; document.getElementById("dbLoadIndicator").style.display = "none";
var amb = document.getElementById("autoMatchBtn"); var amb = document.getElementById("autoMatchBtn");
amb.classList.remove("hideValue"); amb.classList.remove("hideValue");
if (!autoMatchEnabled) amb.classList.add("matchOff"); if (!autoMatchEnabled) amb.classList.add("matchOff");
// Sync hltModeBtn to the (possibly restored from localStorage) optHltSameCipher value.
if (typeof syncHltModeBtn === "function") syncHltModeBtn(); if (typeof syncHltModeBtn === "function") syncHltModeBtn();
} }
// Background: fetch the full 69-cipher set, then swap it in for the lite set.
function _fetchFull() { function _fetchFull() {
fetch(_jsonUrl + _dbVer) fetch(_jsonUrl + _dbVer)
.then(function(r) { if (!r.ok) throw new Error("full db.json " + r.status); return r.json(); }) .then(function(r) { if (!r.ok) throw new Error("full db.json " + r.status); return r.json(); })
@@ -210,7 +250,6 @@
importFileAction(database, true); importFileAction(database, true);
_dbLoaded(); _dbLoaded();
} else { } else {
// Progressive: lite first (fast first paint), then full in the background.
fetch(_liteUrl + _dbVer) fetch(_liteUrl + _dbVer)
.then(function(r) { if (!r.ok) throw new Error("lite " + r.status); return r.json(); }) .then(function(r) { if (!r.ok) throw new Error("lite " + r.status); return r.json(); })
.then(function(data) { loadPrecomputedDB(data); _dbLoaded(); _fetchFull(); }) .then(function(data) { loadPrecomputedDB(data); _dbLoaded(); _fetchFull(); })
@@ -228,12 +267,5 @@
}); });
} }
</script> </script>
<!-- AUTO LOAD THEME -->
<!-- To change the theme uncomment the script below -->
<!-- <script>
var theme = loadFile('theme/white-interface.js');
importFileAction(theme, true);
</script> -->
</body> </body>
</html>
+3 -3
View File
@@ -1,7 +1,7 @@
{ {
"short_name": "Hyperdope Gematria", "short_name": "haiperdohpjematreeah",
"name": "Hyperdope Gematria", "name": "haiperdohpjematreeah",
"background_color": "#202631", "background_color": "#020617",
"icons": [ "icons": [
{ {
"src": "res/calc-logo-32.png", "src": "res/calc-logo-32.png",