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:
1 parent
1827fe23f3
commit
2570372ebf
10 files changed
+605
-311
No files matched your search
+50
-12
@@ -51,8 +51,8 @@ var optGemSubstitutionMode = true; // simple substitution of characters with cor
|
||||
var optGemMultCharPos = false; // value of each character is multiplied by character index
|
||||
var optGemMultCharPosReverse = false; // value of each character is multiplied by character index in reverse order
|
||||
|
||||
var optFiltSameCipherMatch = false; // filter shows only phrases that match in the same cipher
|
||||
var optFiltCrossCipherMatch = true; // filter shows only ciphers that have matching values
|
||||
var optFiltSameCipherMatch = true; // DEFAULT: only phrases matching in the SAME cipher (tighter, more meaningful results)
|
||||
var optFiltCrossCipherMatch = false; // phrases sharing a value across ANY enabled cipher (broader, noisier)
|
||||
var alphaHlt = 0.15; // opacity for values that do not match - change value here and in conf_SOM()
|
||||
|
||||
var optAllowPhraseComments = true; // allow phrase comments, text inside [...] is not evaluated
|
||||
@@ -259,18 +259,20 @@ function createCiphersMenu() {
|
||||
|
||||
o += '<div class="dropdown">';
|
||||
o += '<button class="dropbtn">Cyphers</button>';
|
||||
o += '<div class="dropdown-content" style="width: 380px;">';
|
||||
o += '<div class="dropdown-content" style="width: 410px;">';
|
||||
|
||||
o += "<div><center>";
|
||||
o += '<div class="ciphPresetRow">';
|
||||
o +=
|
||||
'<input class="intBtn3" type="button" value="Empty" onclick="disableAllCiphers()">';
|
||||
'<input class="intBtn3 ciphPresetBtn" type="button" value="Empty" onclick="disableAllCiphers()">';
|
||||
o +=
|
||||
'<input class="intBtn3" type="button" value="Default" onclick="enableDefaultCiphers()">';
|
||||
'<input class="intBtn3 ciphPresetBtn" type="button" value="Base" onclick="enableBaseCiphers()">';
|
||||
o +=
|
||||
'<input class="intBtn3" type="button" value="All (EN)" onclick="enableAllEnglishCiphers()">';
|
||||
'<input class="intBtn3 ciphPresetBtn" type="button" value="Default" onclick="enableDefaultCiphers()">';
|
||||
o +=
|
||||
'<input class="intBtn3" type="button" value="All" onclick="enableAllCiphers()">';
|
||||
o += "</center></div>";
|
||||
'<input class="intBtn3 ciphPresetBtn" type="button" value="All (EN)" onclick="enableAllEnglishCiphers()">';
|
||||
o +=
|
||||
'<input class="intBtn3 ciphPresetBtn" type="button" value="All" onclick="enableAllCiphers()">';
|
||||
o += "</div>";
|
||||
|
||||
o +=
|
||||
'<hr style="background-color: var(--separator-accent2); height: 1px; border: none; margin: 0.4em;">';
|
||||
@@ -646,9 +648,9 @@ function conf_SCM() {
|
||||
chkCCM = document.getElementById("chkbox_CCM");
|
||||
if (chkCCM !== null) chkCCM.checked = false;
|
||||
} else if (!optFiltCrossCipherMatch && !optFiltSameCipherMatch) {
|
||||
optFiltCrossCipherMatch = true; // can't disable both, revert to cross match as default
|
||||
chkCCM = document.getElementById("chkbox_CCM");
|
||||
if (chkCCM !== null) chkCCM.checked = true;
|
||||
optFiltSameCipherMatch = true; // can't disable both — keep same match (the default)
|
||||
chkSCM = document.getElementById("chkbox_SCM");
|
||||
if (chkSCM !== null) chkSCM.checked = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1509,6 +1511,26 @@ function initCiphers(updDefCiph = true) {
|
||||
if (cCat.indexOf(catName) == -1) cCat.push(catName);
|
||||
}
|
||||
}
|
||||
// Config-driven default-enabled set (fork branding). If CALC_CONFIG.defaultEnabledCiphers
|
||||
// is a non-empty array, it REPLACES the ciphers.js enabled:true defaults — so this fork can
|
||||
// open with a curated loadout while the open-source default stays the bare 4. Unknown names
|
||||
// are skipped with a warning. Becomes the "reset to defaults" baseline (defaultCipherArraySaved).
|
||||
// Gated on runOnceRestoreCalcSet: this is the fresh-new-user setup path ONLY. When restoring
|
||||
// SAVED user settings, runOnceRestoreCalcSet is already false, so we DON'T override (and thus
|
||||
// don't stomp the user's saved cipher selection).
|
||||
if (runOnceRestoreCalcSet && updDefCiph && typeof CALC_CONFIG !== 'undefined' && Array.isArray(CALC_CONFIG.defaultEnabledCiphers) && CALC_CONFIG.defaultEnabledCiphers.length > 0) {
|
||||
var _validNames = cipherList.map(function (c) { return c.cipherName; });
|
||||
var _cfgDefaults = [];
|
||||
for (var dc = 0; dc < CALC_CONFIG.defaultEnabledCiphers.length; dc++) {
|
||||
var _nm = CALC_CONFIG.defaultEnabledCiphers[dc];
|
||||
if (_validNames.indexOf(_nm) > -1) {
|
||||
if (_cfgDefaults.indexOf(_nm) === -1) _cfgDefaults.push(_nm);
|
||||
} else {
|
||||
console.warn("defaultEnabledCiphers: unknown cipher '" + _nm + "' (skipped)");
|
||||
}
|
||||
}
|
||||
if (_cfgDefaults.length > 0) defaultCipherArray = _cfgDefaults;
|
||||
}
|
||||
if (defaultCipherArraySaved.length == 0)
|
||||
defaultCipherArraySaved = [...defaultCipherArray]; // copy of initial default ciphers
|
||||
initColorArrays();
|
||||
@@ -1585,6 +1607,22 @@ function disableAllCiphers() {
|
||||
updateTables(); // update
|
||||
}
|
||||
|
||||
// "Base" preset: the universal classic-4 gematria set. Independent of config and
|
||||
// saved settings, so it always selects exactly these 4 — a one-click return to the
|
||||
// base view (vs "Default", which is the fork's full default loadout).
|
||||
function enableBaseCiphers() {
|
||||
prevCiphIndex = -1; // reset cipher selection
|
||||
var base = ["Ordinal", "Reduction", "Reverse Ordinal", "Reverse Reduction"];
|
||||
var cur_chkbox;
|
||||
for (i = 0; i < cipherList.length; i++) {
|
||||
var on = base.indexOf(cipherList[i].cipherName) > -1;
|
||||
cipherList[i].enabled = on;
|
||||
cur_chkbox = document.getElementById("cipher_chkbox" + i);
|
||||
if (cur_chkbox !== null) cur_chkbox.checked = on;
|
||||
}
|
||||
updateTables(); // update
|
||||
}
|
||||
|
||||
function toggleCipherCategory(ciph_cat) {
|
||||
prevCiphIndex = -1; // reset cipher selection
|
||||
// Check if custom config category
|
||||
|
||||
+354
-262
@@ -14,24 +14,6 @@ new cipher(
|
||||
*/
|
||||
|
||||
cipherList = [
|
||||
new cipher(
|
||||
"Standard",
|
||||
"English",
|
||||
50,
|
||||
78,
|
||||
63,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200,
|
||||
300, 400, 500, 600, 700, 800,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Ordinal",
|
||||
"English",
|
||||
@@ -68,6 +50,264 @@ cipherList = [
|
||||
true,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Reverse Ordinal",
|
||||
"Reverse",
|
||||
146,
|
||||
74,
|
||||
50,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8,
|
||||
7, 6, 5, 4, 3, 2, 1,
|
||||
],
|
||||
true,
|
||||
true,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Reverse Reduction",
|
||||
"Reverse",
|
||||
180,
|
||||
60,
|
||||
69,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
8, 7, 6, 5, 4, 3, 2, 1, 9, 8, 7, 6, 5, 4, 3, 2, 1, 9, 8, 7, 6, 5, 4, 3, 2,
|
||||
1,
|
||||
],
|
||||
true,
|
||||
true,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Standard",
|
||||
"English",
|
||||
50,
|
||||
78,
|
||||
63,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200,
|
||||
300, 400, 500, 600, 700, 800,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Latin (Jewish)",
|
||||
"Latin",
|
||||
260,
|
||||
100,
|
||||
70,
|
||||
[
|
||||
97, 98, 99, 100, 101, 102, 103, 104, 105, 107, 108, 109, 110, 111, 112,
|
||||
113, 114, 115, 116, 117, 120, 121, 122, 106, 118, 119,
|
||||
],
|
||||
[
|
||||
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200,
|
||||
300, 400, 500, 600, 700, 900,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"English Sumerian",
|
||||
"Mathematic",
|
||||
95,
|
||||
41,
|
||||
69,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
6, 12, 18, 24, 30, 36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96, 102, 108,
|
||||
114, 120, 126, 132, 138, 144, 150, 156,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Satanic Gematria",
|
||||
"English",
|
||||
350,
|
||||
55,
|
||||
61,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
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,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Bacon Simple",
|
||||
"Baconian",
|
||||
120,
|
||||
65,
|
||||
62,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
1, 2, 3, 4, 5, 6, 7, 8, 9, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
||||
20, 21, 22, 23, 24,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Septenary",
|
||||
"Other",
|
||||
37,
|
||||
54,
|
||||
55,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2,
|
||||
1,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Chaldean (Cheiro)",
|
||||
"Extra",
|
||||
99,
|
||||
36,
|
||||
54,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
1, 2, 3, 4, 5, 8, 3, 5, 1, 1, 2, 3, 4, 5, 7, 8, 1, 2, 3, 4, 6, 6, 6, 5, 1,
|
||||
7,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Primes",
|
||||
"Mathematic",
|
||||
44,
|
||||
56,
|
||||
62,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67,
|
||||
71, 73, 79, 83, 89, 97, 101,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Alphanumeric Qabbala",
|
||||
"Alphanumeric",
|
||||
60,
|
||||
33,
|
||||
62,
|
||||
[
|
||||
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 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,
|
||||
],
|
||||
[
|
||||
0, 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,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Synx",
|
||||
"Alphanumeric",
|
||||
180,
|
||||
44,
|
||||
66,
|
||||
[
|
||||
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 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,
|
||||
],
|
||||
[
|
||||
1, 2, 3, 4, 5, 6, 7, 9, 10, 12, 14, 15, 18, 20, 21, 28, 30, 35, 36, 42,
|
||||
45, 60, 63, 70, 84, 90, 105, 126, 140, 180, 210, 252, 315, 420, 630, 1260,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Alphanumeric Case Sensitive",
|
||||
"Alphanumeric",
|
||||
32,
|
||||
68,
|
||||
62,
|
||||
[
|
||||
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 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, 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,
|
||||
],
|
||||
[
|
||||
0, 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,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
true
|
||||
),
|
||||
new cipher(
|
||||
"English Qaballa",
|
||||
"Thelemic",
|
||||
13,
|
||||
68,
|
||||
64,
|
||||
[
|
||||
97, 108, 119, 104, 115, 100, 111, 122, 107, 118, 103, 114, 99, 110, 121,
|
||||
106, 117, 102, 113, 98, 109, 120, 105, 116, 101, 112,
|
||||
],
|
||||
[
|
||||
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,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Single Reduction",
|
||||
"English",
|
||||
@@ -164,24 +404,6 @@ cipherList = [
|
||||
false,
|
||||
true
|
||||
),
|
||||
new cipher(
|
||||
"Satanic Gematria",
|
||||
"English",
|
||||
350,
|
||||
55,
|
||||
61,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
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,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Reverse Standard",
|
||||
"Reverse",
|
||||
@@ -200,42 +422,6 @@ cipherList = [
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Reverse Ordinal",
|
||||
"Reverse",
|
||||
146,
|
||||
74,
|
||||
50,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8,
|
||||
7, 6, 5, 4, 3, 2, 1,
|
||||
],
|
||||
true,
|
||||
true,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Reverse Reduction",
|
||||
"Reverse",
|
||||
180,
|
||||
60,
|
||||
69,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
8, 7, 6, 5, 4, 3, 2, 1, 9, 8, 7, 6, 5, 4, 3, 2, 1, 9, 8, 7, 6, 5, 4, 3, 2,
|
||||
1,
|
||||
],
|
||||
true,
|
||||
true,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Reverse Single Reduction",
|
||||
"Reverse",
|
||||
@@ -350,24 +536,6 @@ cipherList = [
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Bacon Simple",
|
||||
"Baconian",
|
||||
120,
|
||||
65,
|
||||
62,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
1, 2, 3, 4, 5, 6, 7, 8, 9, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
||||
20, 21, 22, 23, 24,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Bacon Reverse",
|
||||
"Baconian",
|
||||
@@ -494,24 +662,6 @@ cipherList = [
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Latin (Jewish)",
|
||||
"Latin",
|
||||
260,
|
||||
100,
|
||||
70,
|
||||
[
|
||||
97, 98, 99, 100, 101, 102, 103, 104, 105, 107, 108, 109, 110, 111, 112,
|
||||
113, 114, 115, 116, 117, 120, 121, 122, 106, 118, 119,
|
||||
],
|
||||
[
|
||||
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200,
|
||||
300, 400, 500, 600, 700, 900,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Latin Ordinal (Jewish Ord.)",
|
||||
"Latin",
|
||||
@@ -602,24 +752,6 @@ cipherList = [
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"English Qaballa",
|
||||
"Thelemic",
|
||||
13,
|
||||
68,
|
||||
64,
|
||||
[
|
||||
97, 108, 119, 104, 115, 100, 111, 122, 107, 118, 103, 114, 99, 110, 121,
|
||||
106, 117, 102, 113, 98, 109, 120, 105, 116, 101, 112,
|
||||
],
|
||||
[
|
||||
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,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Cipher X",
|
||||
"Thelemic",
|
||||
@@ -656,24 +788,6 @@ cipherList = [
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"English Sumerian",
|
||||
"Mathematic",
|
||||
95,
|
||||
41,
|
||||
69,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
6, 12, 18, 24, 30, 36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96, 102, 108,
|
||||
114, 120, 126, 132, 138, 144, 150, 156,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Reverse Sumerian",
|
||||
"Mathematic",
|
||||
@@ -692,24 +806,6 @@ cipherList = [
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Primes",
|
||||
"Mathematic",
|
||||
44,
|
||||
56,
|
||||
62,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67,
|
||||
71, 73, 79, 83, 89, 97, 101,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Reverse Primes",
|
||||
"Mathematic",
|
||||
@@ -800,24 +896,6 @@ cipherList = [
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Septenary",
|
||||
"Other",
|
||||
37,
|
||||
54,
|
||||
55,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2,
|
||||
1,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Cheiro Numerology",
|
||||
"Other",
|
||||
@@ -872,47 +950,6 @@ cipherList = [
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Alphanumeric Qabbala",
|
||||
"Other",
|
||||
60,
|
||||
33,
|
||||
62,
|
||||
[
|
||||
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 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,
|
||||
],
|
||||
[
|
||||
0, 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,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Alphanumeric Case Sensitive",
|
||||
"Other",
|
||||
32,
|
||||
68,
|
||||
62,
|
||||
[
|
||||
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 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, 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,
|
||||
],
|
||||
[
|
||||
0, 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,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
true
|
||||
),
|
||||
new cipher(
|
||||
"Zeroing Key",
|
||||
"Zeroing",
|
||||
@@ -951,7 +988,7 @@ cipherList = [
|
||||
),
|
||||
new cipher(
|
||||
"Alphanumeric Halves",
|
||||
"Zeroing",
|
||||
"Alphanumeric",
|
||||
59,
|
||||
21,
|
||||
57,
|
||||
@@ -1396,7 +1433,7 @@ cipherList = [
|
||||
),
|
||||
new cipher(
|
||||
"Alphanumeric Primes",
|
||||
"Extra",
|
||||
"Alphanumeric",
|
||||
34,
|
||||
53,
|
||||
73,
|
||||
@@ -1415,7 +1452,7 @@ cipherList = [
|
||||
),
|
||||
new cipher(
|
||||
"Alphanumeric Trigonal",
|
||||
"Extra",
|
||||
"Alphanumeric",
|
||||
101,
|
||||
22,
|
||||
64,
|
||||
@@ -1435,7 +1472,7 @@ cipherList = [
|
||||
),
|
||||
new cipher(
|
||||
"Alphanumeric Squares",
|
||||
"Extra",
|
||||
"Alphanumeric",
|
||||
175,
|
||||
19,
|
||||
61,
|
||||
@@ -1453,43 +1490,6 @@ cipherList = [
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Synx",
|
||||
"Extra",
|
||||
180,
|
||||
44,
|
||||
66,
|
||||
[
|
||||
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 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,
|
||||
],
|
||||
[
|
||||
1, 2, 3, 4, 5, 6, 7, 9, 10, 12, 14, 15, 18, 20, 21, 28, 30, 35, 36, 42,
|
||||
45, 60, 63, 70, 84, 90, 105, 126, 140, 180, 210, 252, 315, 420, 630, 1260,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Chaldean (Cheiro)",
|
||||
"Extra",
|
||||
99,
|
||||
36,
|
||||
54,
|
||||
[
|
||||
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,
|
||||
],
|
||||
[
|
||||
1, 2, 3, 4, 5, 8, 3, 5, 1, 1, 2, 3, 4, 5, 7, 8, 1, 2, 3, 4, 6, 6, 6, 5, 1,
|
||||
7,
|
||||
],
|
||||
true,
|
||||
false,
|
||||
false
|
||||
),
|
||||
new cipher(
|
||||
"Kabbalistic (Sepharial)",
|
||||
"Extra",
|
||||
@@ -1562,4 +1562,96 @@ cipherList = [
|
||||
false,
|
||||
false
|
||||
),
|
||||
|
||||
// ---- New ciphers ported from Alektryon's fork (github.com/Alektryon/gematria), AGPLv3 ----
|
||||
// Polygonal family + English Qabalah 31 / Mars Kamea / Angelic + Bacon Standard / R Standard
|
||||
// (= his Elizabethan Standard / R Standard). All disabled by default.
|
||||
new cipher(
|
||||
"Pentagonal",
|
||||
"Mathematic",
|
||||
50, 59, 56,
|
||||
[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],
|
||||
[1,5,12,22,35,51,70,92,117,145,176,210,247,287,330,376,425,477,532,590,651,715,782,852,925,1001],
|
||||
true, false, false
|
||||
),
|
||||
new cipher(
|
||||
"Hexagonal",
|
||||
"Mathematic",
|
||||
52, 60, 54,
|
||||
[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],
|
||||
[1,6,15,28,45,66,91,120,153,190,231,276,325,378,435,496,561,630,703,780,861,946,1035,1128,1225,1326],
|
||||
true, false, false
|
||||
),
|
||||
new cipher(
|
||||
"Heptagonal",
|
||||
"Mathematic",
|
||||
54, 61, 52,
|
||||
[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],
|
||||
[1,7,18,34,55,81,112,148,189,235,286,342,403,469,540,616,697,783,874,970,1071,1177,1288,1404,1525,1651],
|
||||
true, false, false
|
||||
),
|
||||
new cipher(
|
||||
"Octagonal",
|
||||
"Mathematic",
|
||||
56, 62, 50,
|
||||
[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],
|
||||
[1,8,21,40,65,96,133,176,225,280,341,408,481,560,645,736,833,936,1045,1160,1281,1408,1541,1680,1825,1976],
|
||||
true, false, false
|
||||
),
|
||||
new cipher(
|
||||
"Enneagonal",
|
||||
"Mathematic",
|
||||
58, 63, 48,
|
||||
[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],
|
||||
[1,9,24,46,75,111,154,204,261,325,396,474,559,651,750,856,969,1089,1216,1350,1491,1639,1794,1956,2125,2301],
|
||||
true, false, false
|
||||
),
|
||||
new cipher(
|
||||
"Decagonal",
|
||||
"Mathematic",
|
||||
60, 64, 46,
|
||||
[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],
|
||||
[1,10,27,52,85,126,175,232,297,370,451,540,637,742,855,976,1105,1242,1387,1540,1701,1870,2047,2232,2425,2626],
|
||||
true, false, false
|
||||
),
|
||||
new cipher(
|
||||
"English Qabalah 31",
|
||||
"Thelemic",
|
||||
52, 66, 70,
|
||||
[97,102,107,112,117,122,101,106,111,116,121,100,105,110,115,120,99,104,109,114,119,98,103,108,113,118],
|
||||
[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],
|
||||
true, false, false
|
||||
),
|
||||
new cipher(
|
||||
"Mars Kamea Gematria",
|
||||
"Thelemic",
|
||||
0, 70, 60,
|
||||
[97,115,119,98,107,111,121,100,104,108,117,102,106,110,114,118,103,112,116,120,99,109,113,122,101,105],
|
||||
[0,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],
|
||||
true, false, false
|
||||
),
|
||||
new cipher(
|
||||
"Angelic Gematria",
|
||||
"Other",
|
||||
276, 100, 85,
|
||||
[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],
|
||||
[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],
|
||||
true, false, false
|
||||
),
|
||||
new cipher(
|
||||
"Bacon Standard",
|
||||
"Baconian",
|
||||
48, 49, 72,
|
||||
[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],
|
||||
[1,2,3,4,5,6,7,8,9,9,10,20,30,40,50,60,70,80,90,100,200,200,300,400,500,600],
|
||||
true, false, false
|
||||
),
|
||||
new cipher(
|
||||
"Bacon R Standard",
|
||||
"Baconian",
|
||||
50, 78, 63,
|
||||
[122,121,120,119,118,117,116,115,114,113,112,111,110,109,108,107,106,105,104,103,102,101,100,99,98,97],
|
||||
[1,2,3,4,5,5,6,7,8,9,10,20,30,40,50,60,70,70,80,90,100,200,300,400,500,600],
|
||||
true, false, false
|
||||
),
|
||||
];
|
||||
+51
-10
@@ -9,7 +9,7 @@ function queryDatabase() {
|
||||
$("#calcMain").addClass("splitInterface") // split screen
|
||||
|
||||
if (document.getElementById("queryArea") == null) { // create div if it doesn't exist
|
||||
var o = '<div id="queryArea"></div>'
|
||||
var o = '<div id="queryArea" tabindex="-1"></div>'
|
||||
$(o).appendTo('body');
|
||||
}
|
||||
// Position modal below the enabled cipher table (the Ordinal/Reduction values box)
|
||||
@@ -67,6 +67,14 @@ function queryDatabase() {
|
||||
/*var o = 'min-width:'+tWidth+';width:'+tWidth+';'
|
||||
$("#queryArea").attr("style", o) // set minimal/initial width for the table*/
|
||||
updateDatabaseQueryTable(0, dbPageItems)
|
||||
|
||||
// Progressive loading: surface the spinner ONLY when this query is waiting on "…" cells
|
||||
// (a non-lite cipher enabled before the full db finished streaming); hide it otherwise.
|
||||
var _ind = document.getElementById("dbLoadIndicator")
|
||||
if (_ind) {
|
||||
if (!fullDBLoaded && queryHadUnloadedCipher) { _ind.title = "loading all cyphers…"; _ind.style.display = "inline" }
|
||||
else { _ind.style.display = "none" }
|
||||
}
|
||||
}
|
||||
|
||||
function clearDatabaseQueryTable() {
|
||||
@@ -96,6 +104,7 @@ function searchDBcrossCipher() { // populate "queryResult" array with matching p
|
||||
for (p = 0; p < userDB.length; p++) { // for each phrase in database
|
||||
tmpArr = [0, userDB[p][0]] // reset, set score[0], phrase[1]
|
||||
for (m = 0; m < gemArrCiphUsed.length; m++) { // for each enabled cipher index
|
||||
if (gemArrCiphUsed[m] === -1) { tmpArr.push(null); continue } // cipher not in current db (not yet loaded) — show "—", no score
|
||||
tmpVal = Number(userDB[p][gemArrCiphUsed[m]+1]) // value for that phrase (+1 because [0] contains phrase), string to number
|
||||
tmpArr.push(tmpVal) // first add values irrelevant of match validity
|
||||
for (n = 0; n < gemArr.length; n++) { // for each gematria value (cross cipher)
|
||||
@@ -142,6 +151,7 @@ function searchDBsameCipher() { // populate "queryResult" array with matching ph
|
||||
for (p = 0; p < userDB.length; p++) { // for each phrase in database
|
||||
tmpArr = [0, userDB[p][0]] // reset, set score[0], phrase[1]
|
||||
for (m = 0; m < gemArrCiphUsed.length; m++) { // for each enabled cipher index
|
||||
if (gemArrCiphUsed[m] === -1) { tmpArr.push(null); continue } // cipher not in current db (not yet loaded) — show "—", no score
|
||||
tmpVal = Number(userDB[p][gemArrCiphUsed[m]+1]) // value for that phrase (+1 because [0] contains phrase), string to number
|
||||
tmpArr.push(tmpVal) // first add values irrelevant of match validity
|
||||
if (tmpVal == gemArr[m]) {
|
||||
@@ -282,6 +292,11 @@ function updateDatabaseQueryTable(stPos = 0, dItems, scrollBarEvent = false) { /
|
||||
// if (gemVal == 0) gemVal = "-"
|
||||
valPos++ // increment value position
|
||||
|
||||
if (gemVal === null) { // cipher not in the current db yet (precompute still streaming) — placeholder
|
||||
ms += '<td class="tCQ"><span class="gVQ" title="loading full cipher set…" style="color: hsl(0 0% 50% / '+alphaHlt+')"> … </span></td>'
|
||||
continue
|
||||
}
|
||||
|
||||
// mSame - same cipher match, mCross - cross cipher match
|
||||
if ( gemVal == gemArr[y] ) {mSame = true} else {mSame = false} // if value is at the same index (meaning same cipher)
|
||||
if (gemArr.indexOf(gemVal) > -1) {mCross = true} else {mCross = false}
|
||||
@@ -305,9 +320,9 @@ function updateDatabaseQueryTable(stPos = 0, dItems, scrollBarEvent = false) { /
|
||||
} else {
|
||||
document.getElementById("queryArea").innerHTML = ms
|
||||
}
|
||||
if (navigator.maxTouchPoints <= 1 && !scrollBarEvent) { // ignore scrollbar event
|
||||
// Return focus to main phrase box so user can immediately type next query
|
||||
document.getElementById("phraseBox").focus()
|
||||
if (navigator.maxTouchPoints <= 1 && !scrollBarEvent) { // desktop: focus the modal so arrow keys navigate it (B+); typing snaps back to the phrase box
|
||||
var _qa = document.getElementById("queryArea")
|
||||
if (_qa) _qa.focus()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -335,7 +350,7 @@ function queryShowPrevPage() {
|
||||
n = $("#QueryTable").data("dispitems")
|
||||
$("#queryArea").html() // clear previous table
|
||||
updateDatabaseQueryTable(st, n) // redraw table at new position
|
||||
if (navigator.maxTouchPoints <= 1) document.getElementById("queryPosInput").focus() // restore focus on desktop devices
|
||||
if (navigator.maxTouchPoints <= 1) document.getElementById("queryArea").focus() // keep the modal focused for arrow-key nav (B+)
|
||||
}
|
||||
|
||||
function queryShowNextPage() {
|
||||
@@ -348,7 +363,7 @@ function queryShowNextPage() {
|
||||
n = $("#QueryTable").data("dispitems")
|
||||
$("#queryArea").html() // clear previous table
|
||||
updateDatabaseQueryTable(st, n) // redraw table at new position
|
||||
if (navigator.maxTouchPoints <= 1) document.getElementById("queryPosInput").focus() // restore focus on desktop devices
|
||||
if (navigator.maxTouchPoints <= 1) document.getElementById("queryArea").focus() // keep the modal focused for arrow-key nav (B+)
|
||||
}
|
||||
|
||||
function unloadDatabase() {
|
||||
@@ -437,15 +452,41 @@ function loadPrecomputedDB(data) {
|
||||
displayCalcNotification(loadedMsg, 2500)
|
||||
}
|
||||
|
||||
var fullDBLoaded = false
|
||||
function swapToFullDB(fullData) { // progressive loading: replace the lite db with the full set
|
||||
if (!fullData || !fullData.cipher_order || !fullData.data) return
|
||||
cipherOrder = fullData.cipher_order
|
||||
userDB = fullData.data
|
||||
fullDBLoaded = true
|
||||
var _ind = document.getElementById("dbLoadIndicator"); if (_ind) _ind.style.display = "none" // background full done — hide the spinner
|
||||
console.log("Full precomputed DB swapped in (" + cipherOrder.length + " ciphers, " + userDB.length + " entries).")
|
||||
// If a results modal is open AND the last query used a cipher not in the lite db
|
||||
// (a "—" column), re-run it IN PLACE so those columns fill + matches/ranking update.
|
||||
// Single-threaded JS means this can't interrupt a running query — it runs between events.
|
||||
// Only surface the swap if the user was waiting on "…" cells (queried a not-yet-loaded
|
||||
// cipher early). Otherwise swap SILENTLY — the next query just uses the full set.
|
||||
if (document.getElementById("queryArea") !== null && queryHadUnloadedCipher) {
|
||||
var prevFilter = searchBarValue
|
||||
queryDatabase() // re-run in place to fill the "…" cells
|
||||
if (prevFilter) searchBarDBQuery(prevFilter) // restore the search-bar filter
|
||||
displayCalcNotification("all " + cipherOrder.length + " cyphers ready", 2000)
|
||||
}
|
||||
}
|
||||
|
||||
var queryHadUnloadedCipher = false // true if the last query used a cipher not in the loaded db (progressive loading)
|
||||
|
||||
function getPrecomputedCipherPositions() {
|
||||
// Map enabled cipher names to their column indices in db.json
|
||||
// Returns 0-based indices into cipher_order (NOT +1 adjusted)
|
||||
// because searchDBcrossCipher/sameCipher already add +1 when accessing userDB
|
||||
// Map each ENABLED cipher (in cipherList order = gemArr order) to its column index
|
||||
// in the loaded db.json cipher_order. Returns -1 for a cipher not in the current db
|
||||
// (e.g. a non-lite cipher enabled before the full set has streamed in) so the array
|
||||
// stays 1:1 aligned with gemArr/gemArrCiph. Callers treat -1 as "show —, don't score".
|
||||
var positions = []
|
||||
queryHadUnloadedCipher = false
|
||||
for (var i = 0; i < cipherList.length; i++) {
|
||||
if (cipherList[i].enabled) {
|
||||
var pos = cipherOrder.indexOf(cipherList[i].cipherName)
|
||||
if (pos > -1) positions.push(pos) // 0-based; search functions add +1
|
||||
positions.push(pos) // 0-based column, or -1 if not in current db
|
||||
if (pos === -1) queryHadUnloadedCipher = true
|
||||
}
|
||||
}
|
||||
return positions
|
||||
|
||||
+18
-1
@@ -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 })); }
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// ==================================================================
|
||||
|
||||
@@ -962,6 +962,24 @@ body {
|
||||
background-color: var(--btn-bg-accent);
|
||||
/*background-color: transparent;*/
|
||||
}
|
||||
/* 5-button cipher-preset row (Empty/Base/Default/All(EN)/All) in the Cyphers dropdown
|
||||
ONLY. Flex row distributes the buttons evenly edge-to-edge (no centered dead-space),
|
||||
each sized to width/5. Scoped via .ciphPresetRow so it can't touch any other modal,
|
||||
the shared .intBtn3 (Query/Enter) buttons, or the .intBtn (Export/Save) buttons. */
|
||||
.ciphPresetRow {
|
||||
display: flex;
|
||||
gap: 0.3em;
|
||||
margin: 0 0 0.5em 0;
|
||||
}
|
||||
.ciphPresetRow .ciphPresetBtn {
|
||||
flex: 1 1 0;
|
||||
width: auto; /* override .intBtn3's fixed 85px */
|
||||
min-width: 0; /* allow even distribution */
|
||||
padding: 0.2em 0.1em;
|
||||
margin: 0; /* gap handles spacing */
|
||||
font-size: 95%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@media (max-width: 911px) {
|
||||
/* mobile */
|
||||
#queryDBbtn {
|
||||
@@ -1574,6 +1592,7 @@ body {
|
||||
resize: horizontal;
|
||||
z-index: 100;
|
||||
}
|
||||
#queryArea:focus { outline: none; } /* focused for arrow-key nav (B+) — hide the focus ring */
|
||||
@media (max-width: 911px) {
|
||||
/* mobile — center the modal */
|
||||
#queryArea {
|
||||
|
||||
Reference in new issue
Block a user