v2.2: progressive loading, configurable default loadout, 11 new ciphers

- Progressive db loading: db_lite.json fast first paint -> full db.json swaps in
- 11 new ciphers from Alektryon's fork (AGPLv3): polygonal family (Pentagonal..Decagonal),
  English Qabalah 31, Mars Kamea, Angelic, Bacon Standard/R Standard -> 95 total (80 English)
- Configurable defaultEnabledCiphers + built-in Alphanumeric category + Base preset
- Default match mode -> Same Cipher Match; breakCipher -> Ordinal; base-4-first order
- Desktop keyboard nav for results modal; db cache-busting (databaseVersion ?v=N)
- generate_db_json emits db_lite.json; CHANGELOG/README updated
- db.json + db_lite.json ship as Release assets (gitignored)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
malonehunterandClaude Opus 4.7 committed 2026-05-28 12:48:13 -04:00
1 parent 1827fe23f3
commit 2570372ebf
10 files changed
+605 -311

No files matched your search

+18 -1
View File
@@ -1,7 +1,7 @@
// ==================================================================
// breakdown.js
var breakCipher = "English Ordinal" // current cipher for breakdown
var breakCipher = "Ordinal" // current cipher for breakdown (must match a real cipher name)
var bgCol = "var(--breakdown-bg-accent)" // breakdown table background color
var chLimit = 30 // character limit, used to switch to a long breakdown style
var maxRowWidth = 36 // one row character limit (long breakdown)
@@ -134,6 +134,23 @@ $(document).ready(function(){
$("body").on("click", "#queryArea.minimizeQuery", function (e) {
toggleQueryMinimize();
});
// Arrow-key navigation when the results modal itself is focused (desktop, B+):
// up/down = page, left/right = minimize/restore; typing a printable char snaps focus
// back to the phrase box (quick re-query). Guarded to e.target===queryArea so the
// slider / position box / search field keep their own key behavior.
$("body").on("keydown", "#queryArea", function (e) {
if (e.target.id !== "queryArea") return;
var minimized = $("#queryArea").hasClass("minimizeQuery");
if (e.which === 38) { if (!minimized) { queryShowPrevPage(); e.preventDefault(); } }
else if (e.which === 40) { if (!minimized) { queryShowNextPage(); e.preventDefault(); } }
else if (e.which === 37) { if (!minimized) { toggleQueryMinimize(); document.getElementById("queryArea").focus(); e.preventDefault(); } }
else if (e.which === 39) { if (minimized) { toggleQueryMinimize(); document.getElementById("queryArea").focus(); e.preventDefault(); } }
else if (e.key && e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey) {
var pb = document.getElementById("phraseBox"); // snap back to the phrase box + route the char
if (pb) { e.preventDefault(); pb.focus(); pb.value += e.key; pb.dispatchEvent(new Event("input", { bubbles: true })); }
}
});
});
// ==================================================================