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/4] 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/4] 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/4] 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é !" } ] } From ee3a4d2c4a3dcf8c5702a7169c3a50d97d9a63e9 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Fri, 29 Jul 2016 14:38:03 +0200 Subject: [PATCH 4/4] Bumped patch version --- library.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library.json b/library.json index a831a73..38bfd60 100644 --- a/library.json +++ b/library.json @@ -3,7 +3,7 @@ "description": "See how many cards you can remember!", "majorVersion": 1, "minorVersion": 1, - "patchVersion": 8, + "patchVersion": 9, "runnable": 1, "author": "Amendor AS", "license": "MIT", @@ -30,4 +30,4 @@ "path": "popup.js" } ] -} +} \ No newline at end of file