Sindbad~EG File Manager

Current Path : /var/www/moodledata/mdata-demo/filedir/1f/f8/
Upload File :
Current File : /var/www/moodledata/mdata-demo/filedir/1f/f8/1ff85a50ce80dbd0d50e20b94595cfbd881c538c

(function (MemoryGame) {

  /**
   * Keeps track of the number of cards that has been turned
   *
   * @class H5P.MemoryGame.Counter
   * @param {H5P.jQuery} $container
   */
  MemoryGame.Counter = function ($container, startValue = 0) {
    /** @alias H5P.MemoryGame.Counter# */
    var self = this;

    var current = startValue;

    /**
     * @private
     */
    self.update = function () {
      $container[0].innerText = current;
    };

    /**
     * Get current count.
     * @returns {number} Current count.
     */
    self.getCount = () => {
      return current;
    }

    /**
     * Increment the counter.
     */
    self.increment = function () {
      current++;
      self.update();
    };

    /**
     * Revert counter back to its natural state
     */
    self.reset = function () {
      current = 0;
      self.update();
    };

    self.update();
  };

})(H5P.MemoryGame);

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists