my_sea AUTO DRAW: flash FLIP btn per-card for monodecks too — fall back to --single stack
User-spec 2026-05-26 PM: "AUTO DRAW on my_sea.html, when featuring gravity and levity decks, displays the FLIP .btn-reveal atop each card just before the next dealt card appears in the next card slot. Can you update the monodeck AUTO DRAW animation sequence to feature this FLIP .btn-reveal every time the AUTO DRAW runs here too?"
`placeNext` (inside `_autoDraw` in the my_sea.html inline IIFE) was querying `.sea-deck-stack--levity` / `.sea-deck-stack--gravity` only — polarized decks (Earthman) render those stacks + flash their FLIP btn between dealt cards via `_showOk(stack)`. Monodecks (Minchiate, RWS) render only `.sea-deck-stack--single`, so the polarity-keyed query returned null and the per-card FLIP-flash never fired.
One-line fix: `|| picker.querySelector(".sea-deck-stack--single")` fallback after the polarity-keyed query. `_showOk` + `_hideOk` already operate uniformly on whatever stack is passed in (the `.sea-stack-ok` btn renders identically in both template branches), so no other changes needed.
Code architected by Disco DeDisco <discodedisco@outlook.com>
Git commit message Co-Authored-By:
Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -663,9 +663,16 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var e = autoEntries[idx++];
|
var e = autoEntries[idx++];
|
||||||
|
// Polarized decks (Earthman): polarity-keyed stack
|
||||||
|
// exists + flashes its FLIP btn per-card. Monodecks
|
||||||
|
// (Minchiate, RWS): the template renders only `.sea-
|
||||||
|
// deck-stack--single`, so the polarity-keyed query
|
||||||
|
// returns null — fall back to the single stack so
|
||||||
|
// the per-card FLIP-flash UX is the same regardless
|
||||||
|
// of polarization. User-spec 2026-05-26 PM.
|
||||||
var stack = picker.querySelector(
|
var stack = picker.querySelector(
|
||||||
'.sea-deck-stack--' + (e.isLevity ? 'levity' : 'gravity')
|
'.sea-deck-stack--' + (e.isLevity ? 'levity' : 'gravity')
|
||||||
);
|
) || picker.querySelector('.sea-deck-stack--single');
|
||||||
if (stack) _showOk(stack);
|
if (stack) _showOk(stack);
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
// Route thru SeaDeal.register (not the inline
|
// Route thru SeaDeal.register (not the inline
|
||||||
|
|||||||
Reference in New Issue
Block a user