commit ac1b5047a1e924e1037610f8b3773f8b63492a4b
parent cb6f75518b6712c92f8e2929a4f8499a9723d4f1
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Sat, 16 Dec 2023 02:59:06 -0500
cleanup
Diffstat:
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go
@@ -1440,7 +1440,6 @@ func buildBaseHtml(g *PokerGame, authUser *database.User, roomID RoomID) (html s
html += buildActionsDiv(roomID)
html += buildDealerTokenHtml(g)
html += `<iframe src="/poker/` + roomID.String() + `/logs" id="eventLogs"></iframe>`
- html += `<div id="errorMsg"></div>`
html += buildMainPotHtml(g)
html += buildWinnerHtml()
html += buildCountdownsHtml()
@@ -1585,6 +1584,7 @@ func buildCountdownsHtml() (html string) {
func buildActionsDiv(roomID RoomID) (html string) {
html += `<div id="actionsDiv">`
+ html += `<div>`
html += `<iframe src="/poker/` + roomID.String() + `/deal" id="dealBtn"></iframe>`
html += `<iframe src="/poker/` + roomID.String() + `/unsit" id="unSitBtn"></iframe>`
html += `<iframe src="/poker/` + roomID.String() + `/bet" id="betBtn"></iframe>`
@@ -1592,6 +1592,8 @@ func buildActionsDiv(roomID RoomID) (html string) {
html += `<iframe src="/poker/` + roomID.String() + `/check" id="checkBtn"></iframe>`
html += `<iframe src="/poker/` + roomID.String() + `/fold" id="foldBtn"></iframe>`
html += `</div>`
+ html += `<div id="errorMsg"></div>`
+ html += `</div>`
return
}
@@ -1906,13 +1908,13 @@ body {
.takeSeat4 { }
.takeSeat5 { }
.takeSeat6 { }
-#actionsDiv { position: absolute; top: 470px; left: 130px; display: flex; }
-#dealBtn { width: 80px; height: 30px; }
-#unSitBtn { width: 80px; height: 30px; }
-#checkBtn { width: 60px; height: 30px; }
-#foldBtn { width: 50px; height: 30px; }
-#callBtn { width: 50px; height: 30px; }
-#betBtn { width: 145px; height: 70px; }
+#actionsDiv { position: absolute; top: 470px; left: 130px; }
+#dealBtn { width: 80px; height: 30px; display: inline-block; vertical-align: top; }
+#unSitBtn { width: 80px; height: 30px; display: inline-block; vertical-align: top; }
+#checkBtn { width: 60px; height: 30px; display: inline-block; vertical-align: top; }
+#foldBtn { width: 50px; height: 30px; display: inline-block; vertical-align: top; }
+#callBtn { width: 50px; height: 30px; display: inline-block; vertical-align: top; }
+#betBtn { width: 145px; height: 70px; display: inline-block; vertical-align: top; }
.countdown { --duration: ` + itoa(MaxUserCountdown) + `; --size: 30; }
#countdown1 { top: 46px; left: 717px; position: absolute; display: none; z-index: 100; }
#countdown2 { top: 167px; left: 729px; position: absolute; display: none; z-index: 100; }
@@ -1922,7 +1924,8 @@ body {
#countdown6 { top: 404px; left: 59px; position: absolute; display: none; z-index: 100; }
#mainPot { position: absolute; top: 220px; left: 250px; font-size: 20px; font-family: Arial,Helvetica,sans-serif; }
#winner { position: absolute; top: 265px; left: 250px; }
-#errorMsg { position: absolute; top: 550px; left: 250px;
+#errorMsg {
+ margin-top: 10px;
color: darkred;
font-size: 20px;
font-family: Arial,Helvetica,sans-serif;