HEX
Server: LiteSpeed
System: Linux server.zepintelhosting.com 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: enamadmin (1026)
PHP: 8.2.30
Disabled: exec,system,passthru,shell_exec,proc_open,popen,apache_child_terminate
Upload Files
File: /home/enamadmin/moodledata/filedir/79/53/7953ec1c0ba81228d097d9bf082a692a7eaccee2
var H5PUpgrades = H5PUpgrades || {};

H5PUpgrades['H5P.MemoryGame'] = (function () {
  return {
    1: {
      /**
       * Asynchronous content upgrade hook.
       * Upgrades content parameters to support Memory Game 1.1.
       *
       * Move card images into card object as this allows for additonal
       * properties for each card.
       *
       * @params {object} parameters
       * @params {function} finished
       */
      1: function (parameters, finished) {
        for (var i = 0; i < parameters.cards.length; i++) {
          parameters.cards[i] = {
            image: parameters.cards[i]
          };
        }

        finished(null, parameters);
      },

      /**
       * Asynchronous content upgrade hook.
       * Upgrades content parameters to support Memory Game 1.2.
       *
       * Add default behavioural settings for the new options.
       *
       * @params {object} parameters
       * @params {function} finished
       */
      2: function (parameters, finished) {

        parameters.behaviour = {};
        parameters.behaviour.useGrid = false;
        parameters.behaviour.allowRetry = false;

        finished(null, parameters);
      }
    }
  };
})();