From: Benjamin Auder Date: Sun, 23 Dec 2018 18:24:04 +0000 (+0100) Subject: Do not announce a demo video (difficult to cover all in a video) X-Git-Url: https://git.auder.net/variants/current/doc/css/rpsls.css?a=commitdiff_plain;h=4fefd0195b2dc8559284d3b3701a242a862cb70e;p=vchess.git Do not announce a demo video (difficult to cover all in a video) --- diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index d8fbe47d..d9960160 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -52,7 +52,7 @@ Vue.component('my-game', { h('button', { on: { click: this.clickGameSeek }, - attrs: { "aria-label": translations['New online game'] }, + attrs: { "aria-label": translations['New live game'] }, 'class': { "tooltip": true, "play": true, @@ -1211,6 +1211,7 @@ Vue.component('my-game', { delete localStorage[prefix+"score"]; }, // HACK because mini-css tooltips are persistent after click... + // NOTE: seems to work only in chrome/chromium. TODO... getRidOfTooltip: function(elt) { elt.style.visibility = "hidden"; setTimeout(() => { elt.style.visibility="visible"; }, 100); diff --git a/public/javascripts/variant.js b/public/javascripts/variant.js index d617c60a..a7d18200 100644 --- a/public/javascripts/variant.js +++ b/public/javascripts/variant.js @@ -7,7 +7,6 @@ new Vue({ created: function() { const url = window.location.href; const hashPos = url.indexOf("#"); - console.log(hashPos + " " + url); if (hashPos >= 0) this.setDisplay(url.substr(hashPos+1)); }, diff --git a/views/modal-help/en.pug b/views/modal-help/en.pug index 73e166a3..53112759 100644 --- a/views/modal-help/en.pug +++ b/views/modal-help/en.pug @@ -3,8 +3,13 @@ div(role="dialog") #help.card label.modal-close(for="modalHelp") .section - p.emphasis.bigfont First: watch #[a(href="/demo.webm") demo video] ! - p Then click on a variant... Reminder: + ol + li Click on a variant, + li Read the rules (in the upper left corner), + li Back to playing mode (click on "Play!") + li Click on "new live game", and then, while waiting + li Click on "new computer game" (just next). + p Reminder: ul li All games start with a random assymetric position. li Games are untimed, and played anonymously. diff --git a/views/modal-help/fr.pug b/views/modal-help/fr.pug index 6e765abf..3d60e8b2 100644 --- a/views/modal-help/fr.pug +++ b/views/modal-help/fr.pug @@ -3,11 +3,16 @@ div(role="dialog") #help.card label.modal-close(for="modalHelp") .section - p.emphasis.bigfont D'abord: regardez la #[a(href="/demo.webm") vidéo démo] ! - p Ensuite cliquez sur une variante... Rappel : + ol + li Cliquez sur une variante, + li Lisez les règles (en haut à gauche), + li Revenez en mode jeu (cliquer sur "Jouer!") + li Cliquez sur "nouvelle partie en direct", puis, en attendant + li Cliquez sur "nouvelle partie contre l'ordinateur" (à côté). + p Rappel : ul li Toutes les parties démarrent avec une position aléatoire assymétrique. - li Les parties ne sont pas chronométrées, et jouée anonymemement.. + li Les parties ne sont pas chronométrées, et jouée anonymemement. li Pas de chat pendant la partie, pour se concentrer sur les coups. .section h3.red Rapport de bug diff --git a/views/translations/en.pug b/views/translations/en.pug index 49e06c05..5138e77f 100644 --- a/views/translations/en.pug +++ b/views/translations/en.pug @@ -30,7 +30,7 @@ "White win": "White win", "Black win": "Black win", "Draw": "Draw", - "New online game": "New online game", + "New live game": "New live game", "New game versus computer": "New game versus computer", "Analysis mode": "Analysis mode", "Start chat": "Start chat", diff --git a/views/translations/fr.pug b/views/translations/fr.pug index b4dd15f5..8e4f66a2 100644 --- a/views/translations/fr.pug +++ b/views/translations/fr.pug @@ -30,7 +30,7 @@ "White win": "Les blancs gagnent", "Black win": "Les noirs gagnent", "Draw": "Match nul", - "New online game": "Nouvelle partie en direct", + "New live game": "Nouvelle partie en direct", "New game versus computer": "Nouvelle partie contre l'ordinateur", "Analysis mode": "Mode analyse", "Start chat": "Démarrer le chat",