Files
haiperdohp-jemaytreeah/config.default.js
T
Hermes Agent 72c696420f feat(calc): add toggle to prioritize Ingglish matches to top of query results
- Add optPrioritizeIngglish option (configurable via prioritizeIngglishMatches in config.default.js and persisted in localStorage via calcOptionsArr).
- Add 'Prioritize Ingglish [...]' checkbox (chkbox_PIM / conf_PIM()) to the Options Menu and a one-click 'ING ↑' toggle button (queryIngPriorityBtn) inside the Match Results table header that re-sorts open query modals in place via refreshOpenQuery().
- Unify match sorting in calc/database.js under compareQueryMatches(a, b, searchPhrase): pins exact full or comment-stripped phrase matches first, sorts [Ingglish: ...] rows above standard entries when optPrioritizeIngglish is enabled, and preserves score ordering within each group.
2026-11-03 08:32:29 +00:00

73 lines
3.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// =====================================================================
// Cypher Calculator Configuration (Default / Opensource)
// Copy this file to config.js and customize for your site.
// =====================================================================
var CALC_CONFIG = {
// --- Branding ---
siteName: "Cypher Calculator", // logo text
siteTitle: "Cypher Calculator — Gematria", // browser tab title
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)",
logoHoverMatrix: true, // flip letters to matrix font on hover
faviconUrl: "res/favicon.png",
// --- Messages ---
welcomeMessage: "loading cypher database...",
loadedMessage: "{count} entries × {ciphers} cyphers ready",
// --- Links ---
siteUrl: "",
githubUrl: "https://github.com/malonehunter/hyperdope-gematria",
aboutLinks: [
// Add your own links here:
// { text: "My Site", url: "https://example.com" },
{ text: "GitHub", url: "https://github.com/malonehunter/hyperdope-gematria" },
],
// --- Credits ---
credits: [
{ name: "Saun-Virroco", role: "Original Gematro creator" },
{ name: "NetVoid", url: "https://cyphers.news/", role: "Preserved codebase & database" },
{ name: "Alektryon", url: "https://github.com/Alektryon", role: "Cipher contributions" },
{ name: "Hyperdope", url: "https://hyperdope.com", role: "Database overhaul & v2 architecture" },
],
// --- Database ---
databaseMode: "auto", // "auto" tries db.json then db.txt | "json" | "txt"
databaseJsonUrl: "db.json", // full set — loaded in background
databaseLiteJsonUrl: "db_lite.json", // lite set (common ciphers) — loaded first for fast paint
databaseTxtUrl: "db.txt",
databaseVersion: 4, // bump on each db.json regen -> cache-busts the db fetch (?v=N)
// --- Defaults ---
autoMatchDesktop: true,
autoMatchMobile: false,
prioritizeIngglishMatches: false, // sort [Ingglish: ...] matches to top of query results
resultsPerPage: 12,
newPhrasesOnTop: true,
// Ciphers enabled by default on first load + "reset to defaults". Overrides the
// enabled:true flags in ciphers.js. Empty => use ciphers.js defaults (classic 4).
// Names must match ciphers.js exactly. Example:
// defaultEnabledCiphers: ["Ordinal", "Reduction", "Reverse Ordinal", "Reverse Reduction"],
defaultEnabledCiphers: [],
// Optional "Curated" preset button — a one-click extended loadout. Empty/omitted => no
// button shown. Keep in sync with the lite db.json (tools/generate_db_json.py LITE_CIPHERS).
// Example: recommendedCiphers: ["Ordinal", "Reduction", "Alphanumeric Qabbala", ...],
recommendedCiphers: [],
// --- Custom Cipher Categories ---
// Group ciphers into custom menu sections. Ciphers are referenced by
// their exact name from ciphers.js. They still appear in their original
// category too — custom categories are convenience shortcuts.
customCategories: [
{
name: "Ingglish / CCRU",
ciphers: ["Alphanumeric Qabbala", "Synx", "Based Atlanteanism", "Primes", "Ordinal"]
},
],
};