felt.setAttribute("fill", "green");
this.svg.append(felt);
+ const pot_size = document.createElementNS(svgns, "text");
+ pot_size.setAttribute("x", "400");
+ pot_size.setAttribute("y", "250");
+ pot_size.classList.add("pot-size");
+ this.pot_size_text = document.createTextNode("");
+ pot_size.append(this.pot_size_text);
+ this.svg.append(pot_size);
+
const controls = document.createElementNS(svgns, "rect");
controls.setAttribute("x", "310");
controls.setAttribute("y", "410");
this.bet_slider.classList.toggle("active", can_bet);
this.bet_size_text.textContent = this.min_bet();
this.bet_slider_thumb.setAttribute("x", 360);
+ this.pot_size_text.textContent = this.pot || "";
for (const [username, [user, stack, active, bet]] of this.user_icons) {
if (!this.seats.has(username)) {
this.svg.removeChild(user);