From c899147c78fefe59e17596f6ae710a3333388d39 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Sat, 12 Sep 2020 22:25:37 +0200 Subject: [PATCH] clean help messages --- l10n/po/br/trivabble.po | 4 ++-- l10n/po/fr/trivabble.po | 4 ++-- l10n/po/ro/trivabble.po | 4 ++-- l10n/pot/trivabble.pot | 2 +- public/index.html | 17 +++++++++++++---- public/trivabble.css | 4 ++-- public/trivabble.js | 15 --------------- 7 files changed, 22 insertions(+), 28 deletions(-) diff --git a/l10n/po/br/trivabble.po b/l10n/po/br/trivabble.po index 815ea08..f92f34b 100644 --- a/l10n/po/br/trivabble.po +++ b/l10n/po/br/trivabble.po @@ -164,8 +164,8 @@ msgstr "Son ar c'hemennadenoù" msgid "Number of tiles in the bag:" msgstr "Niver a bezhioù er sac'h:" -msgid "Click on it to take one." -msgstr "Klikit warnañ evit kemer unan" +msgid "Click on the bag to take onei tile." +msgstr "" msgid "Put back all the tiles in the bag" msgstr "Adlakaat an holl pezhioù er sac'h" diff --git a/l10n/po/fr/trivabble.po b/l10n/po/fr/trivabble.po index d990adf..3c8f4bf 100644 --- a/l10n/po/fr/trivabble.po +++ b/l10n/po/fr/trivabble.po @@ -85,8 +85,8 @@ msgstr "Bruit des messages" msgid "Number of tiles in the bag:" msgstr "Nombre de pièces dans le sac :" -msgid "Click on it to take one." -msgstr "Cliquez dessus pour en prendre une." +msgid "Click on the bag to take one tile." +msgstr "Cliquez sur le sac pour prendre une pièce." msgid "Put back all the tiles in the bag" msgstr "Ranger toutes les pièces dans le sac" diff --git a/l10n/po/ro/trivabble.po b/l10n/po/ro/trivabble.po index c68ffdd..62b8373 100644 --- a/l10n/po/ro/trivabble.po +++ b/l10n/po/ro/trivabble.po @@ -156,8 +156,8 @@ msgstr "Sunet de la mesaje" msgid "Number of tiles in the bag:" msgstr "Număr de jetoane în sac:" -msgid "Click on it to take one." -msgstr "Apasă pe el ca să iei unul." +msgid "Click on the bag to take one tile." +msgstr "" msgid "Put back all the tiles in the bag" msgstr "Pune toate jetoanele înapoi în sac" diff --git a/l10n/pot/trivabble.pot b/l10n/pot/trivabble.pot index 4904eb3..5b07c72 100644 --- a/l10n/pot/trivabble.pot +++ b/l10n/pot/trivabble.pot @@ -87,7 +87,7 @@ msgstr "" msgid "Number of tiles in the bag:" msgstr "" -msgid "Click on it to take one." +msgid "Click on the bag to take one tile." msgstr "" msgid "Put back all the tiles in the bag" diff --git a/public/index.html b/public/index.html index d97ccec..d57dc94 100644 --- a/public/index.html +++ b/public/index.html @@ -73,17 +73,26 @@
-

Number of tiles in the bag:
102
Click on it to take one.

+

Number of tiles in the bag:
102

ParticipantRackScoreTurn
Waiting for other participants…
-

Click on someone's score to change it.

-

Who's turn? Click on the Turn button!

+
+

Click on the bag to take one tile.

+

Click on someone's score to change it.

+

Who's turn? Click on the Turn button!

+

Spell checking is based on: Aspell

+

Click on the (+) to add someone's score.

+

Double click or double tap on a cell to highlight it.

+

Timer can be activated/deactivated in the preference window.

+

Flashing light is adjustable in the preference window.

+

Sound options are in the preference window.

+

Move tile from your rag to the board to place new words.

+
-
diff --git a/public/trivabble.css b/public/trivabble.css index 280b50a..f29f610 100644 --- a/public/trivabble.css +++ b/public/trivabble.css @@ -47,7 +47,7 @@ html, #board, [draggable], .tile { color: green; } -#clear-game, #help-scores, #clear-rack, #help-turn { +#clear-game, #help-message, #clear-rack { white-space:pre-wrap; } @@ -57,7 +57,7 @@ html, #board, [draggable], .tile { -webkit-user-drag: element; } -#help-clear, #help-bag, #help-scores, #help-turn { +#help-message { font-size:small } diff --git a/public/trivabble.js b/public/trivabble.js index 24bf947..2be3b7d 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -72,8 +72,6 @@ let audioChat; let chatMessages; let chatTextarea; - let helpBag; - let helpClear; let tablePlayers = {}; let participantPlaceholder; @@ -1054,13 +1052,6 @@ if (typeof data.remainingLetters === "number") { remainingLetters = data.remainingLetters; document.getElementById("remaining-letters").textContent = data.remainingLetters; - if (data.remainingLetters === 0) { - helpBag.style.display = "none"; - helpClear.style.display = ""; - } else { - helpBag.style.display = ""; - helpClear.style.display = "none"; - } } if (data.rack) { @@ -1889,10 +1880,8 @@ if (!Conf.ENABLE_SPELL_CHECKER || localStorage.spellCheckerEnabled === "false") { document.getElementById("check-spelling").style.display = "none"; document.getElementById("enable-spell-checker").checked = false; - document.getElementById("info-spell-checking").style.display = "none"; } else { document.getElementById("check-spelling").style.display = ""; - document.getElementById("info-spell-checking").style.display = ""; document.getElementById("enable-spell-checker").checked = true; } } @@ -2042,8 +2031,6 @@ bag = document.getElementById("bag"); chatMessages = document.getElementById("chat-messages"); chatTextarea = document.getElementById("chat-ta"); - helpBag = document.getElementById("help-bag"); - helpClear = document.getElementById("help-clear"); participantPlaceholder = document.getElementById("participants-placeholder"); } @@ -2057,8 +2044,6 @@ document.getElementById("clear-rack").onclick = clearRack; document.getElementById("show-rack").onclick = showRack; document.getElementById("check-spelling").onclick = checkSpellingClicked; - helpClear.onclick = clearGame; - document.getElementById("btn-settings").onclick = showSettings; document.getElementById("btn-settings-close").onclick = showSettings; } -- 2.30.2