From dd4417a5d28005ad0937acb9eb6da39f27853d6f Mon Sep 17 00:00:00 2001 From: 62ba7085b5587201978beaa0 <62ba7085b5587201978beaa0@devide> Date: Fri, 2 Jun 2023 07:27:28 +0000 Subject: [PATCH] Auto Commit --- script.js | 6 +++--- style.css | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/script.js b/script.js index a8d9d37..daa7d95 100644 --- a/script.js +++ b/script.js @@ -44,15 +44,15 @@ function emojiOf(choice) { function determineOutcome(playerChoice, computerChoice) { if (playerChoice === computerChoice) { - return "打平了!"; + return " draw "; } else if ( (playerChoice === "scissors" && computerChoice === "paper") || (playerChoice === "rock" && computerChoice === "scissors") || (playerChoice === "paper" && computerChoice === "rock") ) { - return "你赢了!"; + return "😊 wins !"; } else { - return "你输了!"; + return "🤖️ wins !"; } } diff --git a/style.css b/style.css index 6182b47..4d1fdbd 100644 --- a/style.css +++ b/style.css @@ -41,9 +41,9 @@ button:hover { #result { font-size: 2rem; margin: 10px; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); + width: 60%; + text-align: center; + height: 50%; } @@ -52,7 +52,7 @@ button:hover { display: flex; flex-direction: row; justify-content: space-between; - width: 80%; + width: 100%; } @@ -61,5 +61,6 @@ button:hover { display: flex; flex-direction: row; justify-content: space-between; - width: 80%; + width: 100%; + margin-bottom: 20%; } \ No newline at end of file -- GitLab