From 30f147095de9f48050efad6ddec4bdc1c9435335 Mon Sep 17 00:00:00 2001 From: mehbark Date: Wed, 29 Mar 2023 19:07:20 -0400 Subject: [PATCH] add play again feature addictions are good (especially when they don't require internet to maintain (a la wordle)) --- index.html | 15 ++++++++++----- main.js | 32 +++++++++++++++++++++++++++++--- main.ts | 40 +++++++++++++++++++++++++++++++++++++--- 3 files changed, 76 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index d037b33..bf78f5a 100644 --- a/index.html +++ b/index.html @@ -20,6 +20,7 @@ background-color: #002121; width: 100%; height: 100%; + color: white; } #board { margin-left: auto; @@ -27,11 +28,10 @@ width: calc(min(90vw, 90vh)); height: calc(min(90vw, 90vh)); } - #game-over, #stats, #copy-stats { + #game-over, #stats, #copy-stats, #play-again { display: none; margin-left: auto; margin-right: auto; - color: white; } #game-over { @@ -47,7 +47,7 @@ margin-bottom: 0; } - #copy-stats { + #copy-stats, #play-again { color: black; } @@ -66,12 +66,15 @@ font-family: 'Courier New', Courier, monospace; } + h1 { + text-align: center; + } + p { font-family: 'Times New Roman', Times, serif; } #players, .player { - color: white; margin-left: auto; margin-right: auto; text-align: center; @@ -130,10 +133,12 @@ >

+

         
+        
+

Players: (click name to toggle strikethrough)

-

Players: (click name to toggle strikethrough)