diff --git a/l10n/po/fr/trivabble.po b/l10n/po/fr/trivabble.po index 3c8f4bf..88b818b 100644 --- a/l10n/po/fr/trivabble.po +++ b/l10n/po/fr/trivabble.po @@ -136,6 +136,12 @@ msgstr "Tour" msgid "Who's turn? Click on the Turn button!" msgstr "À qui le tour ? Cliquez sur le bouton Tour !" +msgid "Click on (+) to increase someone's score." +msgstr "Cliquez sur (+) pour augmenter le score de quelqu’un." + +msgid "Show a cell to everyone by double-clicking on it." +msgstr "Montrez une case à tout le monde en double-cliquant dessus." + msgid "Show my rack to other players" msgstr "Montrer mon jeu aux autres" @@ -216,3 +222,9 @@ msgstr "Durée du flash laser" msgid "Flash light color" msgstr "Couleur du flash laser" + +msgid "Tip!" +msgstr "Astuce !" + +msgid "Next tip" +msgstr "Astuce suivante" diff --git a/l10n/pot/trivabble.pot b/l10n/pot/trivabble.pot index 5b07c72..49b95e6 100644 --- a/l10n/pot/trivabble.pot +++ b/l10n/pot/trivabble.pot @@ -221,3 +221,15 @@ msgstr "" msgid "Flash light color" msgstr "" + +msgid "Click on (+) to increase someone's score." +msgstr "" + +msgid "Show a cell to everyone by double-clicking on it." +msgstr "" + +msgid "Tip!" +msgstr "" + +msgid "Next tip" +msgstr "" diff --git a/public/index.html b/public/index.html index 117456a..a1ac79a 100644 --- a/public/index.html +++ b/public/index.html @@ -78,22 +78,25 @@ ParticipantRackScoreTurn Waiting for other participants… - -
-

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.

+
+ + +
- - - +
+

Tip!

+
+
+

Click on the bag to take one tile.

+

Click on someone's score to change it.

+

Who's turn? Click on the Turn button!

+

Click on (+) to increase someone's score.

+

Show a cell to everyone by double-clicking on it.

+
+ +
+
+
diff --git a/public/trivabble.css b/public/trivabble.css index 990c949..3093b86 100644 --- a/public/trivabble.css +++ b/public/trivabble.css @@ -141,7 +141,7 @@ body { display:-webkit-flex; display:flex; -webkit-flex-direction:column; - flex-direction:column + flex-direction:column; } button { @@ -335,8 +335,8 @@ td.blink { #panel { -webkit-justify-content:center; - justify-content:center; - text-align:center + justify-content:space-between; + text-align:center; } #bag, #rack-outer { @@ -369,7 +369,6 @@ td.blink { height:160px; background:url(bag.svg) no-repeat; background-size:100% 100%; - flex:1; } #bag:hover { @@ -564,10 +563,78 @@ td.blink { } #help-messages { - border:1px solid silver; box-sizing:border-box; overflow:auto; width: 20em; margin-bottom:1px; - height:5em; +} + +#help-box { + margin-left:1ex; + margin-top:1ex; + align-items:center; + display:flex; + flex-direction:column; + justify-content:center; +} + +#help-box-inner { + display:flex; + flex-direction:row; + min-height:2em; + border-top:1px solid gray; + border-bottom:1px solid gray; + align-items:center; +} + +#next-help-msg { + border:0; + background:none; + color:#333; + font-size:1.5rem; + margin-right:0.5ex; + background:#F1F1F1; + border-radius:100rem; + height:1.5em; + width:1.5em; + font-weight:bold; + transition:500ms; +} + +#next-help-msg:hover { + background:#CCC; +} + +#help-box-title { + margin:0; + padding:0 0 0.25ex 0; + text-align:right; + width:100%; + color:gray; + font-size:small; + font-style:italic; +} + +#help-messages p { + margin:0; + font-size:0.9; + color:#222; +} + +#help-box-inner:before { + content:"i"; + display:inline-block; + height:1.2em; + width:1.2em; + font-style:italic; + font-weight:bold; + font-family:serif; + color:#AAA; + border:2px solid; + border-radius:100rem; +} + +#panel-buttons { + display:flex; + flex-direction:column; } diff --git a/public/trivabble.js b/public/trivabble.js index 00a6970..a9d3731 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -1880,8 +1880,10 @@ 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; } } @@ -1890,11 +1892,11 @@ if (x < 0) { return null; } - + if (x < values.length) { return values[Math.floor(x)]; } - + for (let i = 0; i < values.length; i++) { if (x <= values[i]) { return i;