PageSourceSearch

https://leicht-deutsch-lernen.com/wp-content/plugins/h5p/h5p-php-library/js/h5p-content-type.js?ver=1.17.9

js leicht-deutsch-lernen.com collected 2026-10-05 03:42:10 UTC 1,289 bytes, 41 lines download raw bytes

1/**
2 * H5P.ContentType is a base class for all content types. Used by newRunnable()
3 *
4 * Functions here may be overridable by the libraries. In special cases,
5 * it is also possible to override H5P.ContentType on a global level.
6 *
7 * NOTE that this doesn't actually 'extend' the event dispatcher but instead
8 * it creates a single instance which all content types shares as their base
9 * prototype. (in some cases this may be the root of strange event behavior)
10 *
11 * @class
12 * @augments H5P.EventDispatcher
13 */
14H5P.ContentType = function (isRootLibrary) {
15
16  function ContentType() {}
17
18  // Inherit from EventDispatcher.
19  ContentType.prototype = new H5P.EventDispatcher();
20
21  /**
22   * Is library standalone or not? Not beeing standalone, means it is
23   * included in another library
24   *
25   * @return {Boolean}
26   */
27  ContentType.prototype.isRoot = function () {
28    return isRootLibrary;
29  };
30
31  /**
32   * Returns the file path of a file in the current library
33   * @param  {string} filePath The path to the file relative to the library folder
34   * @return {string} The full path to the file
35   */
36  ContentType.prototype.getLibraryFilePath = function (filePath) {
37    return H5P.getLibraryPath(this.libraryInfo.versionedNameNoSpaces) + '/' + filePath;
38  };
39
40  return ContentType;
41};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.