euchre-live

Euchre web-app for the socially distant family
git clone git://git.alexkarle.com/euchre-live.git
Log | Files | Refs | README | LICENSE

commit 1130566bb4b81eef7408f6c74e5114ea1437f2c9 (patch)
parent 8e974874721dfeb7da3928d667684f1d7de92f56
Author: Alex Karle <alex@karle.co>
Date:   Sat,  2 May 2020 09:39:33 -0400

debug.html: Fix pass vote button

Gotta love JavaScript. Looks like the

    pass = getElementById('password')

Line in join_game was replacing the pass() function (scoping? where are
you?). Thanks ~ckarle for the bug report :)

Diffstat:
Mpublic/debug.html | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/public/debug.html b/public/debug.html @@ -88,7 +88,7 @@ console.log(order_suit); ws.send(JSON.stringify({action:'order', vote: order_suit, loner: a})) } - function pass() { + function pass_kitty() { ws.send(JSON.stringify({action:'order', vote: 'pass'})) } function play(card) { @@ -145,7 +145,7 @@ <option value="C">Clubs</option> </select> <button onclick="vote(1)">Loner</button> - <button onclick="pass()">Pass</button> + <button onclick="pass_kitty()">Pass</button> <br><br> <div id="error" style="color:red"> </div> <br><br>