v2.4: decouple highlight-mode toggle + settings persistence + Cmd+click on Mac
Squashed port of the v2.4.0..v2.4.6 iteration on hypercypher production. The history-table highlight semantics no longer follow the Cross/Same query match mode — a new ▼ toggle next to the highlight box (styled like the ⚡ auto-match button, dim/lit on/off) controls them independently. Cross/Same checkboxes now affect only the query/modal + export (as the names suggest). optHltSameCipher and autoMatchEnabled both round-trip through localStorage now via calcOptionsArr. Cmd+click on macOS now works as Ctrl+click does on Win/Linux (toggle a history value into the highlight box) — macOS routes Ctrl+click to contextmenu so the existing gesture was unreachable for Mac. Pure client-side; no db change (v2.3 db.json + db_lite.json Release assets still valid). Files: calc/calc.js, calc/highlighter.js, calc/init-variables.js, calc/styles.css, index.html. Cache-bust calc v13 / highlighter v3 / init-variables v7 / styles v9. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
202fe8ed04
commit
4eb10f2bdb
6 files changed
+103
-14
No files matched your search
@@ -494,7 +494,7 @@ $(document).ready(function(){
|
||||
autoHistoryTableLayout();
|
||||
updateHistoryTable();
|
||||
}
|
||||
} else if (optFiltCrossCipherMatch) { autoHistoryTableLayout(); updateHistoryTable(); } else { updateHistoryTableSameCiphMatch(); }
|
||||
} else if (!optHltSameCipher) { autoHistoryTableLayout(); updateHistoryTable(); } else { updateHistoryTableSameCiphMatch(); }
|
||||
});
|
||||
|
||||
$("body").on("click", "td.hC", function () { // Cipher Name in history table (normal mode)
|
||||
@@ -568,7 +568,7 @@ $(document).ready(function(){
|
||||
$("body").on("click", ".tC", function (e) { // tC - history table cell
|
||||
//console.log($(this).find(".gV").html()); // inner html of .gV found in "this"
|
||||
var val = $(this).find(".gV").html(); // get gematria value from element
|
||||
if(ctrlIsPressed) { // Ctrl + Left Click - toggle value inside highlight box
|
||||
if(ctrlIsPressed || e.metaKey) { // Ctrl+Click (Win/Linux) or Cmd+Click (Mac) - toggle value inside highlight box
|
||||
tdToggleHighlight(parseInt(val.trim(), 10)); // remove spaces, parse as integer and add (remove) to highlight box
|
||||
} else { // Left Click only - temporary blinking effect
|
||||
$( "table.HistoryTable td.tC > span:contains('"+val+"')" ).toggleClass('highlightValueBlink'); // add blinking effect
|
||||
|
||||
Reference in new issue
Block a user