From dea9e3cb8d2b258c065e3e767e9e96baa7f0e0cb Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Wed, 4 May 2016 13:42:55 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index fe96709..5b226e4 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ H5P Memory Game Create your own memory games and test the memory of your site users with this simple yet beautiful HTML5 game. +[See it in action on H5P.org](https://h5p.org/memory-game) + ## License (The MIT License) From c6b8ad44e4c2e8a938da19bcb933d39851cf8c0f Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Thu, 26 May 2016 14:07:14 +0200 Subject: [PATCH 2/3] Don't require that the user removes the final description to trigger completed https://www.drupal.org/node/2730223 --- memory-game.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/memory-game.js b/memory-game.js index 98166b8..6ca5e48 100644 --- a/memory-game.js +++ b/memory-game.js @@ -36,12 +36,15 @@ H5P.MemoryGame = (function (EventDispatcher, $) { var finished = (removed === cards.length); var desc = card.getDescription(); + if (finished) { + self.triggerXAPIScored(1, 1, 'completed'); + } + if (desc !== undefined) { // Pause timer and show desciption. timer.stop(); popup.show(desc, card.getImage(), function () { if (finished) { - self.triggerXAPIScored(1, 1, 'completed'); // Game has finished $feedback.addClass('h5p-show'); } @@ -52,7 +55,6 @@ H5P.MemoryGame = (function (EventDispatcher, $) { }); } else if (finished) { - self.triggerXAPIScored(1, 1, 'completed'); // Game has finished timer.stop(); $feedback.addClass('h5p-show'); From 212219e3fcd0a3a81027a7dd650eb123bea90641 Mon Sep 17 00:00:00 2001 From: isa-realia Date: Mon, 4 Jul 2016 19:14:13 +0200 Subject: [PATCH 3/3] Updated fr.json - translated new strings to french and / or modified some translations - added default strings and translated them to french --- language/fr.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/language/fr.json b/language/fr.json index 96828bb..e00969e 100644 --- a/language/fr.json +++ b/language/fr.json @@ -2,7 +2,7 @@ "semantics": [ { "label": "Cartes", - "entity": "une carte", + "entity": "carte", "field": { "label": "Carte", "fields": [ @@ -17,19 +17,19 @@ } }, { - "label": "Localisation", + "label": "Interface", "fields": [ { - "label": "Texte pour une carte à retourner", - "default": "Retourner" + "label": "Texte pour le nombre de cartes retournées", + "default": "Cartes retournées :" }, { "label": "Texte pour le temps passé", - "default": "Durée écoulée" + "default": "Temps écoulé :" }, { - "label": "Texte de feedback", - "default": "Bon travail!" + "label": "Texte de l'appréciation finale", + "default": "Bien joué !" } ] }