diff --git a/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml b/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml index d60234f..026a3cd 100644 --- a/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml +++ b/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml @@ -296,7 +296,7 @@ -
+

Redeal it — misdeal

-
+

A board card turned too early

If the fourth board card gets turned before the betting round is finished, @@ -315,7 +315,7 @@

-
+

Acting out of turn

A one-off is usually just backed up if no one has acted behind them. @@ -323,7 +323,7 @@

-
+

A short all-in doesn't reopen the betting

Somebody shoving in less than a full raise — say $3 more when the last @@ -338,7 +338,7 @@

-
+

Chips nobody called come back

Bet more than anyone was able to call and the excess is returned to you @@ -348,7 +348,7 @@

-
+

One big chip, nothing said

The most common argument at a home table. A player facing a bet who @@ -364,7 +364,7 @@

-
+

A raise has to be a full raise

At least as much again as the last raise, or the big blind if there @@ -375,7 +375,7 @@

-
+

The odd chip in a split pot

When a chopped pot won't divide evenly, the odd chip goes to the first @@ -385,7 +385,7 @@

-
+

Betting in one motion — the string bet

A bet is whatever goes in on the first trip to the stack, unless the diff --git a/JoshHeaps.Net/wwwroot/js/casino/holdem/main.js b/JoshHeaps.Net/wwwroot/js/casino/holdem/main.js index abcbcc8..2badb52 100644 --- a/JoshHeaps.Net/wwwroot/js/casino/holdem/main.js +++ b/JoshHeaps.Net/wwwroot/js/casino/holdem/main.js @@ -478,7 +478,15 @@ document.addEventListener("DOMContentLoaded", () => { const jump = document.createElement("button"); jump.type = "button"; jump.className = "rulingsIndexBtn"; - jump.textContent = heading.textContent; + // A short label where the ruling gives one. The headings are sentences — + // "A short all-in doesn't reopen the betting" — and nine of those stacked + // one per row made the index 342px tall on a phone, which is most of the + // sheet before the first ruling. "Short all-in" says the same thing to + // somebody who is looking for it, and three fit on a line. + jump.textContent = section.dataset.short || heading.textContent; + // The full heading is still what it announces, so the short label never + // costs a screen reader the sentence. + if (section.dataset.short) jump.setAttribute("aria-label", heading.textContent); jump.addEventListener("click", () => { section.scrollIntoView({ block: "start", behavior: "smooth" }); // The heading is what the dealer is now reading, so that is where the