Compare commits

..

26 Commits

Author SHA1 Message Date
Ravi Majithia c79f97a16f
JI-2872 Fix h5p content font size in safari ios devices (#114) 2022-01-05 09:24:39 +01:00
Oliver Tacke d3d003e978
HFP-3465 Fix line breaks breaking metadata field validation (#109)
* Fix linebreaks breaking metadata field validation
* HFP-3465 Use "single line" flag for regexp
2021-12-21 23:45:32 +01:00
Ravi Majithia 22115c0aea
JI-2899 Add aria label to width and height for embed popup (#110) 2021-11-10 12:47:39 +01:00
Erik Langhaug aaf26d584b Merge branch 'master' into JI-2176-tutorial-example-links-new-design 2021-07-01 10:40:04 +02:00
Frode Petterson eeefc1228b
Merge pull request #85 from otacke/add-gltf-file-format
Add gltf to list of allowed file extensions
2021-06-17 13:07:56 +02:00
Erik Langhaug 13ba87ed58 JI-2176 Fix incorrect paths to h5p font files 2021-06-02 09:36:31 +02:00
Erik Langhaug f9a20e908f JI-2176 Add new icons for tutorial and example links 2021-05-31 15:29:14 +02:00
Thomas Marstrander 4599291d7c Fix using undefined $ function 2021-05-12 12:27:57 +02:00
Frode Petterson 1c12b7bbf7
Fix check/use of incorrect API function
This will solve fullscreen issues in Firefox
2021-05-12 12:10:51 +02:00
Frode Petterson 588f096afe
Fix iframe for back button in Edge Chromium
When navigating to the previous page in Edge Chromium the H5P would often break due to it not being loaded when the page is ready. This fix will force a reload of the iframe if it is broken on initialization.
2021-04-29 22:00:15 +02:00
Frode Petterson affaa83b51 Merge branch 'fix-improved-attribute-filtering' 2021-04-22 11:31:08 +02:00
Frode Petterson db3da7a144 Fix renaming of variables 2021-04-22 11:30:45 +02:00
Frode Petterson 17e97d48db Merge branch 'fix-improved-attribute-filtering' 2021-04-22 10:19:26 +02:00
Frode Petterson efd98a719d Fix prevent unnecessary looping 2021-04-22 10:18:43 +02:00
Frode Petterson 0eca5935c0 Fix improved filtering of attributes 2021-04-22 10:05:51 +02:00
Thomas Marstrander f6fef74651 Update keywords description text
Fixes issue 5 from Hub review april
2021-04-14 16:52:43 +02:00
Thomas Marstrander cc5a0b2e57 Update hub sharing 2021-04-14 16:11:48 +02:00
Thomas Marstrander fe3f4a504d Update to use production content hub api 2021-04-07 15:45:36 +02:00
Thomas Marstrander d2522e3800 JI-2366 Update hub sharing UI 2021-04-06 18:36:27 +02:00
Thomas Marstrander 4c543f3214 JI-2359 Update sharing UI 2021-04-06 16:27:22 +02:00
Thomas Marstrander 1d8f0e8dac JI-2366 Update sharing UI 2021-04-06 10:56:34 +02:00
Thomas Marstrander a0f1e1a527 Merge branch 'master' into release 2021-03-23 10:56:38 +01:00
Thomas Marstrander 555442d37e
Change fallback to original jquery .load() if first arg is not a function 2020-08-05 11:44:23 +02:00
Thomas Marstrander c472d5172d
Add backwards compatibility for old libraries using jQuery's .load() 2020-08-05 11:09:38 +02:00
Oliver Tacke a80773e8d6
Add binary variant of glTF files
glTF files can also be compressed making them smaller
2020-05-30 12:50:37 +02:00
Oliver Tacke ce373203b0 Add gltf to list of allowed file extensions 2020-05-23 17:27:56 +02:00
12 changed files with 88 additions and 44 deletions

View File

@ -5,23 +5,22 @@
<json>
<![CDATA[
{
"fontFamily": "h5p-core-26",
"fontFamily": "h5p-core-27",
"description": "Font generated by IcoMoon.",
"copyright": "H5P",
"majorVersion": 1,
"minorVersion": 1,
"copyright": "H5P",
"fontURL": "",
"version": "Version 1.1",
"fontId": "h5p-core-26",
"psName": "h5p-core-26",
"fontId": "h5p-core-27",
"psName": "h5p-core-27",
"subFamily": "Regular",
"fullName": "h5p-core-26"
"fullName": "h5p-core-27"
}
]]>
</json>
</metadata>
<defs>
<font id="h5p-core-26" horiz-adv-x="1024">
<font id="h5p-core-27" horiz-adv-x="1024">
<font-face units-per-em="1024" ascent="960" descent="-64" />
<missing-glyph horiz-adv-x="1024" />
<glyph unicode="&#x20;" horiz-adv-x="512" d="" />
@ -66,7 +65,7 @@
<glyph unicode="&#xe912;" glyph-name="button-disabled" data-tags="button-disabled" d="M853.333 677.913l-68.754 68.754-272.579-272.579-272.579 272.579-68.754-68.754 272.579-272.579-272.579-272.579 68.754-68.754 272.579 272.579 272.579-272.579 68.754 68.754-272.579 272.579z" />
<glyph unicode="&#xe913;" glyph-name="audio-icon" data-tags="audio-icon" d="M472.8 568.867v-319.3c0-10.3-8.3-18.7-18.6-18.8-5 0-9.9 2-13.4 5.6l-97.8 97.7h-77c-10.3 0.2-18.7 8.5-18.8 18.8v112.6c0.2 10.3 8.5 18.7 18.8 18.8h76.9l97.8 97.8c7.4 7.3 19.3 7.2 26.6-0.2 3.4-3.5 5.4-8.1 5.4-13h0.1zM585.9 451.267c8.2-12.5 12.6-27.2 12.6-42.1s-4.4-29.5-12.6-42c-7.9-12.6-19.7-22.4-33.6-27.9-2.3-1.1-4.9-1.6-7.4-1.5-5 0-9.8 1.9-13.3 5.5-3.8 3.5-5.9 8.4-5.8 13.5-0.1 3.8 1.2 7.6 3.6 10.5s5.3 5.4 8.6 7.4c3.3 2.1 6.7 4.3 10.1 6.8 3.6 2.8 6.6 6.4 8.6 10.5 4.7 10.8 4.7 23 0 33.8-2 4.1-5 7.7-8.6 10.5-3.3 2.5-6.7 4.7-10.1 6.8-3.3 2-6.2 4.5-8.6 7.4-2.4 3-3.7 6.7-3.6 10.5-0.1 5.1 2.1 10 5.8 13.5 3.5 3.6 8.3 5.5 13.3 5.5 2.6 0.1 5.1-0.4 7.4-1.5 13.8-5 25.6-14.6 33.6-27.2v0zM663.3 492.967c33.6-50.8 33.6-116.8 0-167.6-16-25.1-39.2-44.6-66.6-56.2-2.4-1-4.9-1.5-7.4-1.5-5.2 0-10.1 2.1-13.6 5.8-3.7 3.4-5.8 8.3-5.8 13.3 0 7.7 4.6 14.6 11.7 17.5 7.8 3.8 15.4 8.2 22.6 13 50.6 36.9 61.8 107.8 24.9 158.4-7 9.6-15.4 18-24.9 24.9-7.2 4.9-14.7 9.3-22.6 13.1-7.1 2.9-11.7 9.8-11.7 17.5 0.1 10.4 8.6 18.9 19 19 2.6 0 5.3-0.5 7.7-1.5 27.3-11.2 50.6-30.7 66.7-55.7zM741 534.467c69.3-105.1 40.2-246.4-64.9-315.7-11.2-7.4-23.1-13.8-35.4-19.1-2.5-1-5.1-1.5-7.7-1.5-10.4 0.2-18.8 8.6-19 19 0.3 7.6 4.8 14.4 11.7 17.5 2.2 1.2 4.4 2.2 6.7 3.1s4.5 1.9 6.7 3.1c8.4 4.5 16.5 9.6 24.3 15.1 24 17.6 43.6 40.7 57 67.3 27.3 53.9 27.3 117.5 0 171.4-13.4 26.7-33 49.8-57 67.4-7.8 5.5-15.9 10.6-24.3 15.1-2.2 1.2-4.4 2.2-6.7 3.1s-4.5 1.9-6.7 3.1c-6.9 3.2-11.4 9.9-11.7 17.5 0.3 10.4 8.8 18.6 19.2 18.7 2.6 0 5.3-0.5 7.7-1.5 41-17.3 75.9-46.5 100.3-83.8h-0.2z" />
<glyph unicode="&#xe914;" glyph-name="audio-upload-icon" data-tags="audio-upload-icon" d="M796.9 536.567l-102.4 106.6c-12.8 12.8-38.4 21.3-55.5 21.3h-140.8l21.3-42.7h89.6v-136.5c0-17.1 12.8-29.9 29.9-29.9h140.8v-341.3h-426.6v328.6h-42.7v-341.3c0-17.1 12.8-29.9 29.9-29.9h448c17.1 0 29.9 12.8 29.9 29.9v384c4.2 17-8.6 38.4-21.4 51.2zM651.8 493.867v123.7c4.3 0 12.8-4.3 12.8-8.5l102.4-102.4c4.3-4.3 4.3-8.5 8.5-12.8h-123.7zM361.7 510.967v136.5l59.7-59.7c8.5-8.5 17.1-4.3 25.6 0l12.8 12.8c8.5 8.5 8.5 17.1 0 25.6l-115.2 106.6c-8.5 8.5-17.1 8.5-21.3 0l-115.2-110.9c-4.3-8.5-4.3-17.1 0-25.6l12.8-12.8c8.5-8.5 17.1-8.5 21.3 0l59.7 59.7v-136.5c0-8.5 8.5-17.1 17.1-17.1h25.6c0 0 17.1 8.6 17.1 21.4zM532.7 380.467v-188c0-5.2-5.2-10.4-5.2-10.4h-5.2c-5.2 0-5.2 0-10.4 5.2l-57.5 57.4h-47c-5.2 0-10.4 5.2-10.4 10.4v62.7c0 5.2 5.2 10.4 10.4 10.4h47l57.5 57.5c5.2 5.2 12.8 9.7 16.5 6s4.3-6 4.3-11.2zM616.3 208.167c20.9 20.9 31.3 47 31.3 78.3s-10.4 57.5-31.3 78.3c-10.4 10.4-20.9 10.4-31.3 0s-10.4-20.9 0-31.3c10.4-10.4 15.7-26.1 15.7-47s-5.2-31.3-15.7-47c-10.4-10.4-10.4-20.9 0-31.3 5.2-5.2 10.4-5.2 15.7-5.2s10.4-0.1 15.6 5.2zM689.4 155.867c31.3 36.6 47 78.3 47 125.4 0 47-15.7 88.8-47 125.4-10.4 15.7-20.9 15.7-31.3 10.4-10.4-10.4-10.4-20.9-5.2-31.3 20.9-26.1 36.6-62.7 36.6-99.2s-10.4-73.1-36.6-99.2c-10.4-10.4-5.2-26.1 5.2-31.3 5.2-5.2 10.4-5.2 15.7-5.2s10.4-0.2 15.6 5z" />
<glyph unicode="&#xe915;" glyph-name="hub-icon1" data-tags="hub-icon" horiz-adv-x="3151" d="M2075.75 829.829c-52.861 50.54-132.54 71.428-238.778 71.428h-341.406v-180.502h-445.839l-34.811-150.332c127.383 60.081 304.017 51.572 410.513-46.415 114.232-105.723 118.616-280.81 42.547-410.255-29.918-49.803-71.932-89.584-122.082-115.998-22.836-11.385-46.301-15.51-67.962-24.535h346.563v334.96h180.502c126.093 0 261.47 37.648 320.52 159.615 53.377 110.621 42.805 274.363-49.251 361.003zM1834.909 540.254c-22.95-19.597-62.66-25.786-119.131-25.786h-91.283v206.287h103.144c45.641 0 96.439-7.22 124.031-47.704 10.884-15.937 17.38-35.624 17.38-56.827 0-30.173-13.153-57.274-34.039-75.882zM1104.65 433.758c-51.309-0.225-95.603-30.032-116.728-73.235l-258.2 30.431 117.068 510.304h-227.948v-386.79h-335.218v386.79h-283.645v-928.295h283.645v335.218h335.218v-335.218h347.595c-120.163 27.591-202.162 119.389-235.942 235.426l257.86 36.616c21.885-43.147 65.92-72.201 116.74-72.201 72.061 0 130.477 58.417 130.477 130.477 0 72.036-58.376 130.436-130.403 130.477zM2349.081-27.038h-88.704l40.484 192.364c4.125 17.792 10.83 46.673-3.352 62.144-6.816 6.002-15.818 9.665-25.676 9.665-7.905 0-15.26-2.356-21.401-6.404-38.017-22.343-51.426-80.878-60.709-120.588l-28.88-137.181h-88.704l97.213 458.991h88.704c-12.635-58.276-25.786-115.779-43.063-173.024h2.578c32.233 39.968 88.188 67.043 137.439 39.71s43.063-91.283 33.263-137.439zM2502.766 303.022h88.704l-40.226-192.364c-4.125-17.792-10.83-46.673 3.352-62.144 6.692-5.69 15.433-9.151 24.983-9.151 8.206 0 15.815 2.556 22.074 6.914 38.036 22.35 51.446 80.885 60.728 120.595l28.88 136.408h88.704l-69.88-330.318h-67.818l6.188 60.855h-1.805c-29.138-45.641-81.226-81.741-137.181-61.886-61.886 21.66-54.151 100.823-43.836 152.395zM3029.573 308.18c121.452 0 99.018-171.477 66.27-243.42-17.851-42.906-52.266-75.891-95.049-91.439-10.226-3.641-20.722-5.538-31.659-5.538-34.769 0-65.061 19.168-80.885 47.514l-2.561 0.47-16.503-42.805h-68.075l97.213 458.991h88.704l-18.308-84.836c-7.927-35.089-16.792-64.571-27.415-93.202l3.95 5.014c18.385 28.168 48.934 47.071 84.013 49.236zM2993.988 236.237c-77.358 0-118.358-206.287-35.843-197.779 65.496 7.22 115.263 198.81 35.843 198.81z" />
<glyph unicode="&#xe915;" glyph-name="hub-icon" data-tags="hub-icon" horiz-adv-x="3151" d="M2075.75 829.829c-52.861 50.54-132.54 71.428-238.778 71.428h-341.406v-180.502h-445.839l-34.811-150.332c127.383 60.081 304.017 51.572 410.513-46.415 114.232-105.723 118.616-280.81 42.547-410.255-29.918-49.803-71.932-89.584-122.082-115.998-22.836-11.385-46.301-15.51-67.962-24.535h346.563v334.96h180.502c126.093 0 261.47 37.648 320.52 159.615 53.377 110.621 42.805 274.363-49.251 361.003zM1834.909 540.254c-22.95-19.597-62.66-25.786-119.131-25.786h-91.283v206.287h103.144c45.641 0 96.439-7.22 124.031-47.704 10.884-15.937 17.38-35.624 17.38-56.827 0-30.173-13.153-57.274-34.039-75.882zM1104.65 433.758c-51.309-0.225-95.603-30.032-116.728-73.235l-258.2 30.431 117.068 510.304h-227.948v-386.79h-335.218v386.79h-283.645v-928.295h283.645v335.218h335.218v-335.218h347.595c-120.163 27.591-202.162 119.389-235.942 235.426l257.86 36.616c21.885-43.147 65.92-72.201 116.74-72.201 72.061 0 130.477 58.417 130.477 130.477 0 72.036-58.376 130.436-130.403 130.477zM2349.081-27.038h-88.704l40.484 192.364c4.125 17.792 10.83 46.673-3.352 62.144-6.816 6.002-15.818 9.665-25.676 9.665-7.905 0-15.26-2.356-21.401-6.404-38.017-22.343-51.426-80.878-60.709-120.588l-28.88-137.181h-88.704l97.213 458.991h88.704c-12.635-58.276-25.786-115.779-43.063-173.024h2.578c32.233 39.968 88.188 67.043 137.439 39.71s43.063-91.283 33.263-137.439zM2502.766 303.022h88.704l-40.226-192.364c-4.125-17.792-10.83-46.673 3.352-62.144 6.692-5.69 15.433-9.151 24.983-9.151 8.206 0 15.815 2.556 22.074 6.914 38.036 22.35 51.446 80.885 60.728 120.595l28.88 136.408h88.704l-69.88-330.318h-67.818l6.188 60.855h-1.805c-29.138-45.641-81.226-81.741-137.181-61.886-61.886 21.66-54.151 100.823-43.836 152.395zM3029.573 308.18c121.452 0 99.018-171.477 66.27-243.42-17.851-42.906-52.266-75.891-95.049-91.439-10.226-3.641-20.722-5.538-31.659-5.538-34.769 0-65.061 19.168-80.885 47.514l-2.561 0.47-16.503-42.805h-68.075l97.213 458.991h88.704l-18.308-84.836c-7.927-35.089-16.792-64.571-27.415-93.202l3.95 5.014c18.385 28.168 48.934 47.071 84.013 49.236zM2993.988 236.237c-77.358 0-118.358-206.287-35.843-197.779 65.496 7.22 115.263 198.81 35.843 198.81z" />
<glyph unicode="&#xe916;" glyph-name="close" data-tags="close" d="M996.811 59.66l-117.806-117.806c-18.123-18.123-36.248-27.186-54.371-27.186s-45.309 9.063-54.371 27.186l-253.734 253.734-253.734-253.734c-18.123-18.123-36.248-27.186-54.371-27.186s-45.309 9.063-54.371 27.186l-126.866 117.806c-18.123 18.123-27.186 36.248-27.186 54.371s9.063 45.309 27.186 54.371l253.734 253.734-253.734 262.795c-18.123 18.123-27.186 36.248-27.186 54.371s9.063 45.309 27.186 54.371l117.806 117.806c9.063 18.123 36.248 27.186 54.371 27.186s45.309-9.063 54.371-27.186l253.734-253.734 253.734 253.734c18.123 18.123 36.248 27.186 54.371 27.186s45.309-9.063 54.371-27.186l117.806-117.806c18.123-18.123 27.186-36.248 27.186-54.371s-9.063-45.309-27.186-54.371l-253.734-253.734 253.734-253.734c18.123-18.123 27.186-36.248 27.186-54.371 9.063-27.186 0-45.309-18.123-63.434z" />
<glyph unicode="&#xe917;" glyph-name="update" data-tags="update" d="M17.415 532.549c50.74 230.955 253.618 401.245 496.27 401.245 136.563 0 260.529-53.937 351.756-141.671l85.417 85.74c7.539 7.889 18.11 12.826 29.834 12.937 23.653 0 42.811-19.158 42.811-42.791v-298.542c0-23.633-19.158-42.791-42.791-42.791h-298.542c-23.633 0-42.791 19.158-42.791 42.791 0.229 11.723 5.137 22.256 12.928 29.845l91.562 91.562c-61.037 58.59-144.073 94.668-235.534 94.668-123.332 0-231.342-65.602-291.039-163.816-13.033-23.194-24.775-48.799-34.484-75.382-3.84-12.412-11.737-18.617-21.093-18.674h-124.399c-11.326 0.52-20.378 9.572-20.896 20.85 0.083 1.508 0.441 2.864 1.022 4.095zM0.497 293.715c0 23.633 19.158 42.791 42.791 42.791h298.542c23.633 0 42.791-19.158 42.791-42.791-0.229-11.723-5.137-22.256-12.928-29.845l-91.562-91.562c60.754-56.6 142.523-91.342 232.407-91.342 122.536 0 229.991 64.569 290.197 161.538 13.035 23.149 24.777 48.754 34.479 75.341 3.834 12.399 11.732 18.604 21.088 18.661h131.365c0.357 0.021 0.775 0.033 1.195 0.033 11.050 0 20.188-8.186 21.68-18.825l0.013-0.116c-52.365-229.436-254.678-398.058-496.375-398.058-0.42 0-0.841 0.001-1.261 0.002-136.546 0.841-260.466 54.489-352.455 141.536l-86.336-85.808c-7.598-7.8-18.131-12.708-29.812-12.936-23.675-0.001-42.833 19.158-42.833 42.79z" />
<glyph unicode="&#xe918;" glyph-name="question-outlined" data-tags="question-outlined" d="M512.133-85.333c-281.733 0-510.4 228.667-510.4 510.4s228.667 510.267 510.4 510.267c281.733 0 510.4-228.533 510.4-510.4 0-281.6-228.667-510.267-510.4-510.267zM86.8 425.067c0-234.533 190.667-425.333 425.333-425.333 234.533 0 425.333 190.667 425.333 425.333s-190.667 425.333-425.333 425.333c-234.533 0-425.333-190.8-425.333-425.333zM642.4 393.867c-34.533-20-55.867-32.533-55.867-53.867v-21.333c0-12-9.333-21.2-21.2-21.2h-106.267c-12 0-21.2 9.333-21.2 21.2v45.2c0 81.733 58.533 107.6 105.6 128.933 39.867 18.667 64.4 31.2 64.4 61.2 0 38.533-48.533 67.067-92.4 67.067-23.2 0-47.867-7.333-63.067-18-14.667-10-28.533-24.533-53.2-55.2-4-5.333-10-8-16.667-8-4.667 0-9.333 1.333-12.667 4l-71.733 54.533c-8.667 6.667-10.667 19.333-4.667 28.533 54.533 85.867 130.933 127.733 232 127.733 108.933 0 231.2-86.4 231.2-202 0-94.4-65.733-131.6-114.267-158.8zM586.533 116.667c0-12-9.333-21.2-21.2-21.2h-106.267c-12 0-21.2 9.333-21.2 21.2v106.267c0 12 9.333 21.2 21.2 21.2h106.267c12 0 21.2-9.333 21.2-21.2v-106.267z" />
@ -104,8 +103,10 @@
<glyph unicode="&#xe938;" glyph-name="check2" data-tags="check (2)" d="M910.2 938.667h-796.4c-62.6 0-113.8-51.2-113.8-113.8v-796.4c0-62.6 51.2-113.8 113.8-113.8h796.4c62.6 0 113.8 51.2 113.8 113.8v796.4c0 62.6-51.2 113.8-113.8 113.8zM398.2 142.267l-284.4 284.4 79.6 79.6 204.8-204.8 432.4 432.4 79.6-79.6-512-512z" />
<glyph unicode="&#xe939;" glyph-name="plus1" data-tags="plus (1)" d="M597.333 512v426.667h-170.667v-426.667h-426.667v-170.667h426.667v-426.667h170.667v426.667h426.667v170.667z" />
<glyph unicode="&#xe93a;" glyph-name="close1" data-tags="close (1)" d="M1024 835.536l-103.131 103.131-408.869-408.869-408.869 408.869-103.131-103.131 408.869-408.869-408.869-408.869 103.131-103.131 408.869 408.869 408.869-408.869 103.131 103.131-408.869 408.869z" />
<glyph unicode="&#xe93b;" glyph-name="hub-icon" data-tags="hub-icon" d="M237.9 730.7l37.4-65c5.4-10.5 16.3-17.1 28.5-17.1h66.4l39.7-71 8.9 14.8c3.6 6 9.6 9.2 20.6 11l14 2.3-39.8 71.1 31.1 54c5.3 10.7 5.3 21.9 0 32.6l-0.1 0.3-37.4 65c-5.4 10.5-16.3 17.1-28.5 17.1h-74.8c-12.2 0-23.1-6.5-28.5-17.1l-37.7-65.2c-5.3-10.7-5.3-21.9 0-32.6l0.2-0.2zM287.6 747.2l26 47.1h53.4l27.6-47.1-27.6-47.1h-53.4l-26 47.1zM594.4 600.9c9.7-3.9 17.2-9 21.3-14.4l8.8-11.8 43 70.4 58.6-1.6c13.7 0 24.8 6.1 30.4 16.9l39.7 63.5c5.3 10.7 5.3 21.9 0 32.6l-35.6 65.3-0.5 0.8c-5.4 8.1-16.1 16.2-27.9 16.3l-73 2c-13.7 0-24.8-6.1-30.4-16.9l-39.7-63.5c-5.3-10.7-5.3-21.9 0-32.6l32.3-59.2-38-63.3 11-4.5zM639.2 743.9l27.4 45.2 53.5-1.6 26-47-27.4-45.2-53.5 1.6-26 47zM968.1 458.4l-0.1 0.3-37.2 64.6c-1.3 3.1-4.4 7.7-13.7 13.3-4.6 2.8-10.9 6.1-15.1 6.1h-74.8c-12.2 0-23.1-6.5-28.5-17.1l-33.1-57.5-79.3 2.1 5.6-14.1c3.1-7.7 3-15-0.2-24.6l-4.3-12.8 80-2.2 31.2-55.9c5.4-10.6 16.3-17.1 28.5-17.1h74.9c12.2 0 23.1 6.5 28.5 17.1l37.6 65.3c5.3 10.6 5.3 21.8 0 32.5zM920.1 444.2l-27.7-47.2h-53.4l-25.9 47 27.7 47.3h53.4l25.9-47.1zM771.1 192.9c-10.2 17.3-20.6 34.6-20.7 34.8l-0.4 0.6-0.4 0.5c-6.2 7.7-14.3 15.6-27.5 15.6h-63.6l-35.7 63.4-9.2-12.3c-4.6-6.1-12.3-10.4-21.2-11.9l-14.1-2.3 35.3-62.8-32.5-56.4c-5.3-10.7-5.3-21.9 0-32.6l0.2-0.4 39.4-63.1c5.4-10.4 16.3-16.9 28.4-16.9h74.8c12.2 0 23.1 6.5 28.5 17l35.2 59.6 0.5 0.9 0.3 1c0.3 0.9 0.6 1.9 1 2.9 2.3 6.4 5.4 15.1 3.4 23-0.4 3.2-3.8 9.1-21.7 39.4zM740 145.8l-27.6-47.1h-53.5l-27.6 47.1 27.6 47.1h53.5l27.6-47.1zM431.4 283.9c-9.7 3.9-17.2 9-21.3 14.4l-8.8 11.8-43-70.4-60.5 1.6c-13.7 0-24.8-6.1-30.4-16.9l-39.7-63.4c-5.3-10.7-5.3-21.9 0-32.6l35.6-65.3 0.5-0.8c5.4-8.1 16.1-16.2 27.9-16.3l75-2c13.7 0 24.8 6.1 30.4 16.9l39.7 63.4c5.3 10.7 5.3 21.9 0 32.6l-32.3 59.2 38 63.3-11.1 4.5zM386.6 140.9l-27.4-45.2-53.5 1.6-26 47 27.4 45.2 53.5-1.6 26-47zM229.4 362.5l32 55.6 79.5-2.1-4.5 13.5c-3.2 9.6-3.3 17-0.2 24.6l5.3 13.3-79.9 2.2-32.2 56c-5.4 10.5-16.3 17.1-28.5 17.1h-74.9c-12.2 0-23.1-6.5-28.5-17.1l-37.6-65.3c-5.3-10.7-5.3-21.9 0-32.6l0.2-0.3 37.1-62.5c2.9-7.5 9.8-13.5 19-16.8 2.7-1.3 6.4-2.7 9.7-2.7h74.8c12.4 0 23.3 6.6 28.7 17.1zM215 444.2l-27.7-47.2h-53.4l-25.9 47 27.7 47.3h53.4l25.9-47.1zM605.7 319.9l0.4 0.5 59.1 102.5c8.1 11.3 8.1 27.2 0 38.5l-59.2 102.4-0.4 0.5c-8.2 11-21.1 17.8-33.6 17.8h-118.1c-11 0-19.3-3.3-26.8-10.8-2.1-2.1-3.2-4.3-3.8-5.6-0.1-0.2-0.2-0.4-0.3-0.5l-0.8-0.8-59.5-103.1c-8.1-11.3-8.1-27.2 0-38.5l58.7-101.7c5.8-11.2 19-19 32.4-19h120.2c12 0 22.9 6.2 31.7 17.8zM613.7 444.1l-51.3-88.5h-102.7l-51.3 88.5 51.3 88.5h102.7l51.3-88.5z" />
<glyph unicode="&#xe93b;" glyph-name="hub-icon1" data-tags="hub-icon" d="M237.9 730.7l37.4-65c5.4-10.5 16.3-17.1 28.5-17.1h66.4l39.7-71 8.9 14.8c3.6 6 9.6 9.2 20.6 11l14 2.3-39.8 71.1 31.1 54c5.3 10.7 5.3 21.9 0 32.6l-0.1 0.3-37.4 65c-5.4 10.5-16.3 17.1-28.5 17.1h-74.8c-12.2 0-23.1-6.5-28.5-17.1l-37.7-65.2c-5.3-10.7-5.3-21.9 0-32.6l0.2-0.2zM287.6 747.2l26 47.1h53.4l27.6-47.1-27.6-47.1h-53.4l-26 47.1zM594.4 600.9c9.7-3.9 17.2-9 21.3-14.4l8.8-11.8 43 70.4 58.6-1.6c13.7 0 24.8 6.1 30.4 16.9l39.7 63.5c5.3 10.7 5.3 21.9 0 32.6l-35.6 65.3-0.5 0.8c-5.4 8.1-16.1 16.2-27.9 16.3l-73 2c-13.7 0-24.8-6.1-30.4-16.9l-39.7-63.5c-5.3-10.7-5.3-21.9 0-32.6l32.3-59.2-38-63.3 11-4.5zM639.2 743.9l27.4 45.2 53.5-1.6 26-47-27.4-45.2-53.5 1.6-26 47zM968.1 458.4l-0.1 0.3-37.2 64.6c-1.3 3.1-4.4 7.7-13.7 13.3-4.6 2.8-10.9 6.1-15.1 6.1h-74.8c-12.2 0-23.1-6.5-28.5-17.1l-33.1-57.5-79.3 2.1 5.6-14.1c3.1-7.7 3-15-0.2-24.6l-4.3-12.8 80-2.2 31.2-55.9c5.4-10.6 16.3-17.1 28.5-17.1h74.9c12.2 0 23.1 6.5 28.5 17.1l37.6 65.3c5.3 10.6 5.3 21.8 0 32.5zM920.1 444.2l-27.7-47.2h-53.4l-25.9 47 27.7 47.3h53.4l25.9-47.1zM771.1 192.9c-10.2 17.3-20.6 34.6-20.7 34.8l-0.4 0.6-0.4 0.5c-6.2 7.7-14.3 15.6-27.5 15.6h-63.6l-35.7 63.4-9.2-12.3c-4.6-6.1-12.3-10.4-21.2-11.9l-14.1-2.3 35.3-62.8-32.5-56.4c-5.3-10.7-5.3-21.9 0-32.6l0.2-0.4 39.4-63.1c5.4-10.4 16.3-16.9 28.4-16.9h74.8c12.2 0 23.1 6.5 28.5 17l35.2 59.6 0.5 0.9 0.3 1c0.3 0.9 0.6 1.9 1 2.9 2.3 6.4 5.4 15.1 3.4 23-0.4 3.2-3.8 9.1-21.7 39.4zM740 145.8l-27.6-47.1h-53.5l-27.6 47.1 27.6 47.1h53.5l27.6-47.1zM431.4 283.9c-9.7 3.9-17.2 9-21.3 14.4l-8.8 11.8-43-70.4-60.5 1.6c-13.7 0-24.8-6.1-30.4-16.9l-39.7-63.4c-5.3-10.7-5.3-21.9 0-32.6l35.6-65.3 0.5-0.8c5.4-8.1 16.1-16.2 27.9-16.3l75-2c13.7 0 24.8 6.1 30.4 16.9l39.7 63.4c5.3 10.7 5.3 21.9 0 32.6l-32.3 59.2 38 63.3-11.1 4.5zM386.6 140.9l-27.4-45.2-53.5 1.6-26 47 27.4 45.2 53.5-1.6 26-47zM229.4 362.5l32 55.6 79.5-2.1-4.5 13.5c-3.2 9.6-3.3 17-0.2 24.6l5.3 13.3-79.9 2.2-32.2 56c-5.4 10.5-16.3 17.1-28.5 17.1h-74.9c-12.2 0-23.1-6.5-28.5-17.1l-37.6-65.3c-5.3-10.7-5.3-21.9 0-32.6l0.2-0.3 37.1-62.5c2.9-7.5 9.8-13.5 19-16.8 2.7-1.3 6.4-2.7 9.7-2.7h74.8c12.4 0 23.3 6.6 28.7 17.1zM215 444.2l-27.7-47.2h-53.4l-25.9 47 27.7 47.3h53.4l25.9-47.1zM605.7 319.9l0.4 0.5 59.1 102.5c8.1 11.3 8.1 27.2 0 38.5l-59.2 102.4-0.4 0.5c-8.2 11-21.1 17.8-33.6 17.8h-118.1c-11 0-19.3-3.3-26.8-10.8-2.1-2.1-3.2-4.3-3.8-5.6-0.1-0.2-0.2-0.4-0.3-0.5l-0.8-0.8-59.5-103.1c-8.1-11.3-8.1-27.2 0-38.5l58.7-101.7c5.8-11.2 19-19 32.4-19h120.2c12 0 22.9 6.2 31.7 17.8zM613.7 444.1l-51.3-88.5h-102.7l-51.3 88.5 51.3 88.5h102.7l51.3-88.5z" />
<glyph unicode="&#xe93c;" glyph-name="info1" data-tags="info (1)" d="M745.14 54.974c-0.699 25.827-20.941 46.069-46.768 46.768h-46.069v418.813c-1.395 25.827-21.639 46.069-46.768 46.069h-279.209c-25.827 0-46.768-20.941-47.465-46.768v-92.837c0.699-25.827 20.941-46.069 46.768-46.768h46.768v-279.209h-46.069c-25.827-0.699-46.069-20.941-46.768-46.768v-92.837c0.699-25.827 20.941-46.069 46.768-46.768h372.045c25.827 0.699 46.069 20.941 46.768 46.768v93.534zM638.343 924.708c-8.376 9.075-20.242 13.96-32.806 13.96h-185.673c-25.827-0.699-46.069-20.941-46.768-46.768v-139.604c0.699-25.827 20.941-46.069 46.768-46.768h186.372c25.129 1.395 45.371 21.639 46.069 46.768v139.604c0 12.564-5.584 24.43-13.96 32.806z" />
<glyph unicode="&#xe93d;" glyph-name="examples_2" data-tags="examples_2" d="M451.2 767.996l30.4 64.001 60.8 32.001-60.8 32.001-30.4 64.001-30.4-64.001-60.8-32.001 60.8-32.001zM177.6 639.994l50.654 106.662 101.346 53.341-101.346 53.341-50.654 106.662-50.654-106.662-101.346-53.341 101.346-53.341zM846.4 383.988l-50.654-106.662-101.346-53.341 101.346-53.341 50.654-106.662 50.654 106.662 101.346 53.341-101.346 53.341zM980.579 771.536l-161.215 169.704c-11.856 12.52-27.417 18.76-42.978 18.76s-31.122-6.24-42.997-18.76l-689.966-726.294c-23.75-25-23.75-65.521 0-90.502l161.215-169.704c11.875-12.5 27.436-18.74 42.978-18.74 15.561 0 31.122 6.24 42.997 18.74l689.966 726.314c23.75 24.961 23.75 65.501 0 90.482zM708.555 553.072l-96.729 101.822 164.54 173.204 96.729-101.822z" />
<glyph unicode="&#xe93e;" glyph-name="tutorials_2" data-tags="tutorials_2" d="M467.17 680.041c-118.657 75.993-310.854 96.874-407.572 102.628-32.499 1.925-59.599-23.978-59.599-56.681v-466.167c0-29.983 23.18-54.986 52.979-56.597 87.319-4.791 263.975-22.346 386.072-86.684 18.74-9.876 40.959 3.578 40.959 24.836v514.688c-0.020 9.771-4.64 18.726-12.84 23.978zM964.381 782.669c-96.698-5.733-288.914-26.635-407.552-102.628-8.2-5.252-12.82-14.562-12.82-24.334v-514.269c0-21.321 22.279-34.795 41.079-24.898 122.078 64.276 298.634 81.83 385.932 86.622 29.8 1.632 52.979 26.635 52.979 56.618v466.208c-0.020 32.703-27.12 58.606-59.619 56.681z" />
<glyph unicode="&#xe991;" glyph-name="drag-and-drop" data-tags="drag-and-drop" d="M626.476 280.209h-394.015c-42.596 0-79.867 37.271-79.867 79.867v287.523c0 42.596 37.271 79.867 79.867 79.867h388.69c42.596 0 79.867-37.271 79.867-79.867v0-287.523c5.326-47.922-31.948-79.867-74.544-79.867zM232.464 679.547c-15.974 0-31.948-15.974-31.948-31.948v0-287.523c0-15.974 15.974-31.948 31.948-31.948h388.69c15.974 0 31.948 15.974 31.948 31.948v287.523c0 15.974-15.974 31.948-31.948 31.948h-388.69zM738.291 83.201h-69.219v47.922h69.219v-47.922zM594.528 83.201h-69.219v47.922h69.219v-47.922zM450.768 83.201h-53.245c-10.648 0-21.297 0-26.622 5.326l15.974 47.922c5.326 0 5.326 0 10.648 0h53.245v-53.245zM818.158 88.527l-15.974 47.922c15.974 5.326 21.297 15.974 21.297 31.948h47.922c0-37.271-21.297-69.219-53.245-79.867zM370.901 168.394h-47.922v69.219h47.922v-69.219zM871.406 237.613h-47.922v69.219h47.922v-69.219zM871.406 381.376h-47.922v69.219h47.922v-69.219zM802.187 487.865c-5.326 0-5.326 0-10.648 0h-53.245v47.922h53.245c10.648 0 21.297 0 26.622-5.326l-15.974-42.596z" />
<glyph unicode="&#xe992;" glyph-name="summary" data-tags="summary" d="M871.415 740.13h-718.824c-14.417 0-26.37-11.954-26.37-26.37v-52.745c0-14.417 11.954-26.37 26.37-26.37h718.824c14.417 0 26.37 11.954 26.37 26.37v52.745c0 14.42-11.954 26.37-26.37 26.37zM871.415 570.352h-558.12c-14.417 0-26.37-11.954-26.37-26.37v-52.745c0-14.417 11.954-26.37 26.37-26.37h558.12c14.417 0 26.37 11.954 26.37 26.37v52.745c0 14.417-11.954 26.37-26.37 26.37zM871.415 373.188h-558.12c-14.417 0-26.37-11.954-26.37-26.37v-52.745c0-14.417 11.954-26.37 26.37-26.37h558.12c14.417 0 26.37 11.954 26.37 26.37v52.745c0 14.42-11.954 26.37-26.37 26.37zM871.415 176.024h-558.12c-14.417 0-26.37-11.954-26.37-26.37v-52.745c0-14.417 11.954-26.37 26.37-26.37h558.12c14.417 0 26.37 11.954 26.37 26.37v52.745c0 14.42-11.954 26.37-26.37 26.37zM201.792 570.352h-49.207c-14.417 0-26.37-11.954-26.37-26.37v-52.745c0-14.417 11.954-26.37 26.37-26.37h49.207c14.417 0 26.37 11.954 26.37 26.37v52.745c0 14.417-11.954 26.37-26.37 26.37zM201.792 373.188h-49.207c-14.417 0-26.37-11.954-26.37-26.37v-52.745c0-14.417 11.954-26.37 26.37-26.37h49.207c14.417 0 26.37 11.954 26.37 26.37v52.745c0 14.42-11.954 26.37-26.37 26.37zM201.792 176.024h-49.207c-14.417 0-26.37-11.954-26.37-26.37v-52.745c0-14.417 11.954-26.37 26.37-26.37h49.207c14.417 0 26.37 11.954 26.37 26.37v52.745c0 14.42-11.954 26.37-26.37 26.37z" />
<glyph unicode="&#xe993;" glyph-name="single-choice-set" data-tags="single-choice-set" d="M820.25 464.266h-414.758c-15.966 0-29.197-13.231-29.197-29.197v-58.389c0-15.966 13.231-29.197 29.197-29.197h414.758c15.966 0 29.197 13.231 29.197 29.197v58.389c0.001 15.966-13.231 29.197-29.197 29.197zM894.379 231.16h-488.887c-15.966 0-29.197-13.231-29.197-29.197v-58.389c0-15.966 13.231-29.197 29.197-29.197h488.887c15.966 0 29.197 13.231 29.197 29.197v58.389c0 15.964-13.231 29.197-29.197 29.197zM909.211 697.366h-503.718c-15.966 0-29.197-13.231-29.197-29.197v-58.389c0-15.966 13.231-29.197 29.197-29.197h503.718c15.966 0 29.197 13.231 29.197 29.197v58.389c0 15.966-13.231 29.197-29.197 29.197zM189.717 705.921c36.969 0 66.939-29.969 66.939-66.939s-29.969-66.939-66.939-66.939c-36.969 0-66.939 29.969-66.939 66.939s29.969 66.939 66.939 66.939zM189.717 736.327c-53.681 0-97.359-43.678-97.359-97.359s43.678-97.359 97.359-97.359c53.681 0 97.359 43.678 97.359 97.359s-43.678 97.359-97.359 97.359v0zM189.717 238.648c36.969 0 66.939-29.969 66.939-66.939s-29.969-66.939-66.939-66.939c-36.969 0-66.939 29.969-66.939 66.939s29.969 66.939 66.939 66.939zM189.717 269.060c-53.681 0-97.359-43.678-97.359-97.359s43.678-97.359 97.359-97.359c53.681 0 97.359 43.678 97.359 97.359s-43.678 97.359-97.359 97.359v0zM293.854 406.722c0-57.51-46.621-104.131-104.131-104.131s-104.131 46.621-104.131 104.131c0 57.51 46.621 104.131 104.131 104.131s104.131-46.621 104.131-104.131z" />

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 97 KiB

View File

@ -704,15 +704,15 @@ class H5PValidator {
'source' => '/^(http[s]?:\/\/.+)$/',
'license' => '/^(CC BY|CC BY-SA|CC BY-ND|CC BY-NC|CC BY-NC-SA|CC BY-NC-ND|CC0 1\.0|GNU GPL|PD|ODC PDDL|CC PDM|U|C)$/',
'licenseVersion' => '/^(1\.0|2\.0|2\.5|3\.0|4\.0)$/',
'licenseExtras' => '/^.{1,5000}$/',
'licenseExtras' => '/^.{1,5000}$/s',
'yearsFrom' => '/^([0-9]{1,4})$/',
'yearsTo' => '/^([0-9]{1,4})$/',
'changes' => array(
'date' => '/^[0-9]{2}-[0-9]{2}-[0-9]{2} [0-9]{1,2}:[0-9]{2}:[0-9]{2}$/',
'author' => '/^.{1,255}$/',
'log' => '/^.{1,5000}$/'
'log' => '/^.{1,5000}$/s'
),
'authorComments' => '/^.{1,5000}$/',
'authorComments' => '/^.{1,5000}$/s',
'w' => '/^[0-9]{1,4}$/',
'h' => '/^[0-9]{1,4}$/',
// deprecated
@ -2043,9 +2043,9 @@ abstract class H5PContentStatus {
abstract class H5PHubEndpoints {
const CONTENT_TYPES = 'api.h5p.org/v1/content-types/';
const SITES = 'api.h5p.org/v1/sites';
const METADATA = 'api-test.h5p.org/v1/metadata';
const CONTENT = 'api-test.h5p.org/v1/contents';
const REGISTER = 'api-test.h5p.org/v1/accounts';
const METADATA = 'hub-api.h5p.org/v1/metadata';
const CONTENT = 'hub-api.h5p.org/v1/contents';
const REGISTER = 'hub-api.h5p.org/v1/accounts';
public static function createURL($endpoint) {
$protocol = (extension_loaded('openssl') ? 'https' : 'http');
@ -2083,7 +2083,7 @@ class H5PCore {
'js/h5p-utils.js',
);
public static $defaultContentWhitelist = 'json png jpg jpeg gif bmp tif tiff svg eot ttf woff woff2 otf webm mp4 ogg mp3 m4a wav txt pdf rtf doc docx xls xlsx ppt pptx odt ods odp xml csv diff patch swf md textile vtt webvtt';
public static $defaultContentWhitelist = 'json png jpg jpeg gif bmp tif tiff svg eot ttf woff woff2 otf webm mp4 ogg mp3 m4a wav txt pdf rtf doc docx xls xlsx ppt pptx odt ods odp xml csv diff patch swf md textile vtt webvtt gltf glb';
public static $defaultLibraryWhitelistExtras = 'js css';
public $librariesJsonData, $contentJsonData, $mainJsonData, $h5pF, $fs, $h5pD, $disableFileCheck;
@ -3736,7 +3736,8 @@ class H5PCore {
'copyrightWarning' => $this->h5pF->t('Copyrighted material cannot be shared in the H5P Content Hub. If the content is licensed with a OER friendly license like Creative Commons, please choose the appropriate license. If not this content cannot be shared.'),
'keywordsExits' => $this->h5pF->t('Keywords already exists!'),
'someKeywordsExits' => $this->h5pF->t('Some of these keywords already exist'),
'width' => $this->h5pF->t('width'),
'height' => $this->h5pF->t('height')
);
}
@ -4852,7 +4853,7 @@ class H5PContentValidator {
return '&lt;';
}
if (!preg_match('%^<\s*(/\s*)?([a-zA-Z0-9\-]+)([^>]*)>?|(<!--.*?-->)$%', $string, $matches)) {
if (!preg_match('%^<\s*(/\s*)?([a-zA-Z0-9\-]+)\s*([^>]*)>?|(<!--.*?-->)$%', $string, $matches)) {
// Seriously malformed.
return '';
}
@ -4914,7 +4915,13 @@ class H5PContentValidator {
// Attribute name, href for instance.
if (preg_match('/^([-a-zA-Z]+)/', $attr, $match)) {
$attrName = strtolower($match[1]);
$skip = ($attrName == 'style' || substr($attrName, 0, 2) == 'on');
$skip = (
$attrName == 'style' ||
substr($attrName, 0, 2) == 'on' ||
substr($attrName, 0, 1) == '-' ||
// Ignore long attributes to avoid unnecessary processing overhead.
strlen($attrName) > 96
);
$working = $mode = 1;
$attr = preg_replace('/^[-a-zA-Z]+/', '', $attr);
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -23,7 +23,7 @@ H5P.$window = H5P.jQuery(window);
H5P.instances = [];
// Detect if we support fullscreen, and what prefix to use.
if (document.documentElement.requestFullScreen) {
if (document.documentElement.requestFullscreen) {
/**
* Browser prefix to use when entering fullscreen mode.
* undefined means no fullscreen support.
@ -377,13 +377,29 @@ H5P.init = function (target) {
// Insert H5Ps that should be in iframes.
H5P.jQuery('iframe.h5p-iframe:not(.h5p-initialized)', target).each(function () {
var contentId = H5P.jQuery(this).addClass('h5p-initialized').data('content-id');
const iframe = this;
const $iframe = H5P.jQuery(iframe);
const contentId = $iframe.data('content-id');
const contentData = H5PIntegration.contents['cid-' + contentId];
const language = contentData && contentData.metadata && contentData.metadata.defaultLanguage
const contentLanguage = contentData && contentData.metadata && contentData.metadata.defaultLanguage
? contentData.metadata.defaultLanguage : 'en';
this.contentDocument.open();
this.contentDocument.write('<!doctype html><html class="h5p-iframe" lang="' + language + '"><head>' + H5P.getHeadTags(contentId) + '</head><body><div class="h5p-content" data-content-id="' + contentId + '"/></body></html>');
this.contentDocument.close();
const writeDocument = function () {
iframe.contentDocument.open();
iframe.contentDocument.write('<!doctype html><html class="h5p-iframe" lang="' + contentLanguage + '"><head>' + H5P.getHeadTags(contentId) + '</head><body><div class="h5p-content" data-content-id="' + contentId + '"/></body></html>');
iframe.contentDocument.close();
};
$iframe.addClass('h5p-initialized')
if (iframe.contentDocument === null) {
// In some Edge cases the iframe isn't always loaded when the page is ready.
$iframe.on('load', writeDocument);
$iframe.attr('src', 'about:blank');
}
else {
writeDocument();
}
});
};
@ -660,7 +676,7 @@ H5P.fullScreen = function ($element, instance, exitCallback, body, forceSemiFull
});
if (H5P.fullScreenBrowserPrefix === '') {
$element[0].requestFullScreen();
$element[0].requestFullscreen();
}
else {
var method = (H5P.fullScreenBrowserPrefix === 'ms' ? 'msRequestFullscreen' : H5P.fullScreenBrowserPrefix + 'RequestFullScreen');
@ -1332,7 +1348,7 @@ H5P.openReuseDialog = function ($element, contentData, library, instance, conten
*/
H5P.openEmbedDialog = function ($element, embedCode, resizeCode, size, instance) {
var fullEmbedCode = embedCode + resizeCode;
var dialog = new H5P.Dialog('embed', H5P.t('embed'), '<textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>' + H5P.t('size') + ': <input type="text" value="' + Math.ceil(size.width) + '" class="h5p-embed-size"/> × <input type="text" value="' + Math.ceil(size.height) + '" class="h5p-embed-size"/> px<br/><div role="button" tabindex="0" class="h5p-expander">' + H5P.t('showAdvanced') + '</div><div class="h5p-expander-content"><p>' + H5P.t('advancedHelp') + '</p><textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false">' + resizeCode + '</textarea></div>', $element);
var dialog = new H5P.Dialog('embed', H5P.t('embed'), '<textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>' + H5P.t('size') + ': <input aria-label="'+ H5P.t('width') +'" type="text" value="' + Math.ceil(size.width) + '" class="h5p-embed-size"/> × <input aria-label="'+ H5P.t('width') +'" type="text" value="' + Math.ceil(size.height) + '" class="h5p-embed-size"/> px<br/><div role="button" tabindex="0" class="h5p-expander">' + H5P.t('showAdvanced') + '</div><div class="h5p-expander-content"><p>' + H5P.t('advancedHelp') + '</p><textarea class="h5p-embed-code-container" autocorrect="off" autocapitalize="off" spellcheck="false">' + resizeCode + '</textarea></div>', $element);
// Selecting embed code when dialog is opened
H5P.jQuery(dialog).on('dialog-opened', function (event, $dialog) {

18
js/jquery.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3,11 +3,11 @@
/* Custom H5P font to use for icons. */
@font-face {
font-family: 'h5p';
src: url('../fonts/h5p-core-27.eot?9pg14');
src: url('../fonts/h5p-core-27.eot?9pg14#iefix') format('embedded-opentype'),
url('../fonts/h5p-core-27.ttf?9pg14') format('truetype'),
url('../fonts/h5p-core-27.woff?9pg14') format('woff'),
url('../fonts/h5p-core-27.svg?9pg14#h5p-core-27') format('svg');
src: url('../fonts/h5p-core-28.eot?h1atjl');
src: url('../fonts/h5p-core-28.eot?h1atjl#iefix') format('embedded-opentype'),
url('../fonts/h5p-core-28.ttf?h1atjl') format('truetype'),
url('../fonts/h5p-core-28.woff?h1atjl') format('woff'),
url('../fonts/h5p-core-28.svg?h1atjl#h5p-core-28') format('svg');
font-weight: normal;
font-style: normal;
}
@ -55,6 +55,8 @@ html.h5p-iframe .h5p-content {
line-height: 1.5em;
width: 100%;
height: auto;
-webkit-text-size-adjust: none;
text-size-adjust: none;
}
html.h5p-iframe .h5p-fullscreen .h5p-content,
html.h5p-iframe .h5p-semi-fullscreen .h5p-content {