-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/justineuro/h5p-LET-GenEd-Math…
… into main 2024-02-25 (1)
- Loading branch information
Showing
679 changed files
with
96,236 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<div id='h5p-container'></div> | ||
<script type="text/javascript" src="dist/main.bundle.js"></script> | ||
<script type="text/javascript"> | ||
const el = document.getElementById('h5p-container'); | ||
const options = { | ||
h5pJsonPath: './LETReview-GenEd-Math-006-PNU-IIFun', | ||
frameJs: './dist/frame.bundle.js', | ||
frameCss: './dist/styles/h5p.css', | ||
customJs: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/latest.js?config=TeX-AMS-MML_HTMLorMML', | ||
frame: true, | ||
copyright: true, | ||
export: true, | ||
icon: true, | ||
downloadUrl: 'https://github.com/justineuro/h5p-LET-GenEd-Math/raw/main/LETReview-GenEd-Math-006-PNU-IIFun.h5p', | ||
embed: true, | ||
embedCode: '<iframe width=":w" height=":h" src="https://justineuro.github.io/h5p-LET-GenEd-Math/" frameBorder="0" scrolling="no" styles="width:100%"></iframe>', | ||
} | ||
new H5PStandalone.H5P(el, options); | ||
</script> |
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
LETReview-GenEd-Math-006-PNU-IIFun/FontAwesome-4.5/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Font Awesome | ||
========== | ||
|
||
Used in H5P libraries to provide icons. FontAwesome is no longer a part of core. | ||
`font-family: 'H5PFontAwesome4';` is used to avoids collisions. | ||
The woff(W3C Recommendation) font file is included inline to avoid cross origin issues when embedding on some browsers. | ||
|
||
## License | ||
|
||
Font Awesome font licensed under SIL OFL 1.1 · Code licensed under MIT License | ||
http://fontawesome.io/license | ||
Created by @davegandy. |
Binary file added
BIN
+69.1 KB
LETReview-GenEd-Math-006-PNU-IIFun/FontAwesome-4.5/fontawesome-webfont.eot
Binary file not shown.
655 changes: 655 additions & 0 deletions
655
LETReview-GenEd-Math-006-PNU-IIFun/FontAwesome-4.5/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+139 KB
LETReview-GenEd-Math-006-PNU-IIFun/FontAwesome-4.5/fontawesome-webfont.ttf
Binary file not shown.
Binary file added
BIN
+81.6 KB
LETReview-GenEd-Math-006-PNU-IIFun/FontAwesome-4.5/fontawesome-webfont.woff
Binary file not shown.
Binary file added
BIN
+65.1 KB
LETReview-GenEd-Math-006-PNU-IIFun/FontAwesome-4.5/fontawesome-webfont.woff2
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
LETReview-GenEd-Math-006-PNU-IIFun/FontAwesome-4.5/h5p-font-awesome.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
LETReview-GenEd-Math-006-PNU-IIFun/FontAwesome-4.5/library.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"title":"Font Awesome","contentType":"Font","majorVersion":4,"minorVersion":5,"patchVersion":4,"runnable":0,"machineName":"FontAwesome","license":"MIT","author":"Dave Gandy","preloadedCss":[{"path":"h5p-font-awesome.min.css"}]} |
Binary file not shown.
93 changes: 93 additions & 0 deletions
93
LETReview-GenEd-Math-006-PNU-IIFun/H5P.FontIcons-1.0/fonts/h5p.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions
1
LETReview-GenEd-Math-006-PNU-IIFun/H5P.FontIcons-1.0/library.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"title":"H5P.FontIcons","majorVersion":1,"minorVersion":0,"patchVersion":6,"runnable":0,"machineName":"H5P.FontIcons","author":"Joubel","preloadedCss":[{"path":"styles/h5p-font-icons.css"}]} |
10 changes: 10 additions & 0 deletions
10
LETReview-GenEd-Math-006-PNU-IIFun/H5P.FontIcons-1.0/styles/h5p-font-icons.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@font-face { | ||
font-family: 'H5PFontIcons'; | ||
src: url('../fonts/h5p.eot?105'); | ||
src: url('../fonts/h5p.eot?105#iefix') format('embedded-opentype'), | ||
url('../fonts/h5p.ttf?105') format('truetype'), | ||
url('../fonts/h5p.woff?105') format('woff'), | ||
url('../fonts/h5p.svg?105#H5PFontIcons') format('svg'); | ||
font-weight: normal; | ||
font-style: normal; | ||
} |
15 changes: 15 additions & 0 deletions
15
LETReview-GenEd-Math-006-PNU-IIFun/H5P.Image-1.1/image.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.h5p-image > img { | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
.h5p-image > .h5p-placeholder { | ||
background: url('placeholder.svg'); | ||
background-size: cover; | ||
} | ||
.h5p-image .h5p-image-tooltip { | ||
bottom: 0; | ||
left: auto; | ||
right: 0; | ||
transform: none; | ||
} |
102 changes: 102 additions & 0 deletions
102
LETReview-GenEd-Math-006-PNU-IIFun/H5P.Image-1.1/image.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
var H5P = H5P || {}; | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param {Object} params Options for this library. | ||
* @param {Number} id Content identifier | ||
* @returns {undefined} | ||
*/ | ||
(function ($) { | ||
H5P.Image = function (params, id, extras) { | ||
H5P.EventDispatcher.call(this); | ||
this.extras = extras; | ||
|
||
if (params.file === undefined || !(params.file instanceof Object)) { | ||
this.placeholder = true; | ||
} | ||
else { | ||
this.source = H5P.getPath(params.file.path, id); | ||
this.width = params.file.width; | ||
this.height = params.file.height; | ||
} | ||
|
||
this.alt = (!params.decorative && params.alt !== undefined) ? | ||
this.stripHTML(this.htmlDecode(params.alt)) : | ||
''; | ||
|
||
if (params.title !== undefined) { | ||
this.title = this.stripHTML(this.htmlDecode(params.title)); | ||
} | ||
}; | ||
|
||
H5P.Image.prototype = Object.create(H5P.EventDispatcher.prototype); | ||
H5P.Image.prototype.constructor = H5P.Image; | ||
|
||
/** | ||
* Wipe out the content of the wrapper and put our HTML in it. | ||
* | ||
* @param {jQuery} $wrapper | ||
* @returns {undefined} | ||
*/ | ||
H5P.Image.prototype.attach = function ($wrapper) { | ||
var self = this; | ||
var source = this.source; | ||
|
||
if (self.$img === undefined) { | ||
if(self.placeholder) { | ||
self.$img = $('<div>', { | ||
width: '100%', | ||
height: '100%', | ||
class: 'h5p-placeholder', | ||
title: this.title === undefined ? '' : this.title, | ||
on: { | ||
load: function () { | ||
self.trigger('loaded'); | ||
} | ||
} | ||
}); | ||
} else { | ||
self.$img = $('<img>', { | ||
width: '100%', | ||
height: '100%', | ||
src: source, | ||
alt: this.alt, | ||
title: this.title === undefined ? '' : this.title, | ||
on: { | ||
load: function () { | ||
self.trigger('loaded'); | ||
} | ||
} | ||
}); | ||
} | ||
} | ||
|
||
$wrapper.addClass('h5p-image').html(self.$img); | ||
}; | ||
|
||
/** | ||
* Retrieve decoded HTML encoded string. | ||
* | ||
* @param {string} input HTML encoded string. | ||
* @returns {string} Decoded string. | ||
*/ | ||
H5P.Image.prototype.htmlDecode = function (input) { | ||
const dparser = new DOMParser().parseFromString(input, 'text/html'); | ||
return dparser.documentElement.textContent; | ||
}; | ||
|
||
/** | ||
* Retrieve string without HTML tags. | ||
* | ||
* @param {string} input Input string. | ||
* @returns {string} Output string. | ||
*/ | ||
H5P.Image.prototype.stripHTML = function (html) { | ||
const div = document.createElement('div'); | ||
div.innerHTML = html; | ||
return div.textContent || div.innerText || ''; | ||
}; | ||
|
||
return H5P.Image; | ||
}(H5P.jQuery)); |
23 changes: 23 additions & 0 deletions
23
LETReview-GenEd-Math-006-PNU-IIFun/H5P.Image-1.1/language/af.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"semantics": [ | ||
{ | ||
"label": "Prent" | ||
}, | ||
{ | ||
"label": "Decorative only", | ||
"description": "Enable this option if the image is purely decorative and does not add any information to the content on the page. It will be ignored by screen readers and not given any alternative text." | ||
}, | ||
{ | ||
"label": "Alternatiewe teks", | ||
"description": "Vereis. Indien die webleser nie die prent kan laai nie, sal die teks vertoon word. Word ook gebruik vir \"teks-na-spraak\" lesers." | ||
}, | ||
{ | ||
"label": "Sweefteks", | ||
"description": "Opsioneel. Hierdie teks word vertoon wanneer die gebruiker sy wysapparaat oor die beeld hou." | ||
}, | ||
{ | ||
"label": "Prent inhoud naam", | ||
"default": "Prent" | ||
} | ||
] | ||
} |
23 changes: 23 additions & 0 deletions
23
LETReview-GenEd-Math-006-PNU-IIFun/H5P.Image-1.1/language/ar.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"semantics": [ | ||
{ | ||
"label": "الصورة" | ||
}, | ||
{ | ||
"label": "Decorative only", | ||
"description": "Enable this option if the image is purely decorative and does not add any information to the content on the page. It will be ignored by screen readers and not given any alternative text." | ||
}, | ||
{ | ||
"label": "النص البديل", | ||
"description": "مطلوبة. إذا كان المتصفح لم يتمكن من تحميل الصورة سيتم عرض هذا النص بدلا من ذلك. تستخدم أيضا من قبل مكبرات الصوت للقراءة" | ||
}, | ||
{ | ||
"label": "وضع مؤشر الفأرة فوق الصورة", | ||
"description": "اختياري. يتم عرض هذا النص عندما يقوم المستخدم بتحويم موشر الفارة فوق الصورة" | ||
}, | ||
{ | ||
"label": "اسم ملف الصورة", | ||
"default": "Image" | ||
} | ||
] | ||
} |
23 changes: 23 additions & 0 deletions
23
LETReview-GenEd-Math-006-PNU-IIFun/H5P.Image-1.1/language/bg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"semantics": [ | ||
{ | ||
"label": "Изображение" | ||
}, | ||
{ | ||
"label": "Decorative only", | ||
"description": "Enable this option if the image is purely decorative and does not add any information to the content on the page. It will be ignored by screen readers and not given any alternative text." | ||
}, | ||
{ | ||
"label": "Алтернативен текст", | ||
"description": "Задължителен. Ако браузърът не може да зареди изображението, вместо него ще се покаже този текст. Използва се също и от екранните четци \"text-to-speech\"." | ||
}, | ||
{ | ||
"label": "Текст при посочване", | ||
"description": "Не е задължителен. Този текст се показва, когато потребителя задържи мишката върху изображението." | ||
}, | ||
{ | ||
"label": "Име на тип съдържание Изображение", | ||
"default": "Изображение" | ||
} | ||
] | ||
} |
23 changes: 23 additions & 0 deletions
23
LETReview-GenEd-Math-006-PNU-IIFun/H5P.Image-1.1/language/bs.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"semantics": [ | ||
{ | ||
"label": "Slika" | ||
}, | ||
{ | ||
"label": "Decorative only", | ||
"description": "Enable this option if the image is purely decorative and does not add any information to the content on the page. It will be ignored by screen readers and not given any alternative text." | ||
}, | ||
{ | ||
"label": "Alternativni tekst", | ||
"description": "Obavezno. U slučaju da se slika ne pokaže onda će se pokazati ovaj tekst ili biti elektronskm glasom pročitan." | ||
}, | ||
{ | ||
"label": "Hover Tekst", | ||
"description": "Opcionalno. Ovaj tekst će se pokazati kada mišom prelazimo preko slike." | ||
}, | ||
{ | ||
"label": "Naziv slike", | ||
"default": "Image" | ||
} | ||
] | ||
} |
23 changes: 23 additions & 0 deletions
23
LETReview-GenEd-Math-006-PNU-IIFun/H5P.Image-1.1/language/ca.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"semantics": [ | ||
{ | ||
"label": "Imatge" | ||
}, | ||
{ | ||
"label": "Decorative only", | ||
"description": "Enable this option if the image is purely decorative and does not add any information to the content on the page. It will be ignored by screen readers and not given any alternative text." | ||
}, | ||
{ | ||
"label": "Text alternatiu", | ||
"description": "Requerit. Si el navegador no pot carregar la imatge es mostrarà aquest text. També s’utilitza per a lectors de \"text a veu\"." | ||
}, | ||
{ | ||
"label": "Text que es mostra en passar el cursor per sobre", | ||
"description": "Opcional. Aquest text es mostra quan els usuaris passen el dispositiu d’apuntar per sobre de la imatge." | ||
}, | ||
{ | ||
"label": "Nom del contingut de la imatge", | ||
"default": "Imatge" | ||
} | ||
] | ||
} |
23 changes: 23 additions & 0 deletions
23
LETReview-GenEd-Math-006-PNU-IIFun/H5P.Image-1.1/language/cs.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"semantics": [ | ||
{ | ||
"label": "Obrázek" | ||
}, | ||
{ | ||
"label": "Pouze dekorační", | ||
"description": "Tuto možnost zvolte, pokud má být obrázek čistě dekoračního charakteru a nedodává obsahu stránky nové informace. Obrázek bude odečítači obrazovky ignorován a nebude doplněn alternativním textem." | ||
}, | ||
{ | ||
"label": "Alternativní text", | ||
"description": "Povinné. Pokud prohlížeč nemůže načíst obrázek, zobrazí se místo toho tento text. Také se používá \"text-to-speech\" čtečka." | ||
}, | ||
{ | ||
"label": "Najeďte kurzorem na text", | ||
"description": "Volitelné. Tento text se zobrazí, když uživatelé umístí své polohovací zařízení na obrázek." | ||
}, | ||
{ | ||
"label": "Název obsahu obrázku", | ||
"default": "Obrázek" | ||
} | ||
] | ||
} |
23 changes: 23 additions & 0 deletions
23
LETReview-GenEd-Math-006-PNU-IIFun/H5P.Image-1.1/language/cy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"semantics": [ | ||
{ | ||
"label": "Delwedd" | ||
}, | ||
{ | ||
"label": "Decorative only", | ||
"description": "Enable this option if the image is purely decorative and does not add any information to the content on the page. It will be ignored by screen readers and not given any alternative text." | ||
}, | ||
{ | ||
"label": "Testun amgen", | ||
"description": "Angenrheidiol. Os dyw'r porwr yn methu llwytho'r ddelwedd, caiff y testun hwn ei ddangos yn ei lle. Caiff ei ddefnyddio gan ddarllenwyr \"llefaru testun\" hefyd." | ||
}, | ||
{ | ||
"label": "Testun wrth hofran", | ||
"description": "Opsiynol. Caiff y testun hwn ei ddangos pan fydd defnyddwyr yn hofro dyfais bwyntio, fel llygoden, dros y ddelwedd." | ||
}, | ||
{ | ||
"label": "Enw cynnwys y ddelwedd", | ||
"default": "Delwedd" | ||
} | ||
] | ||
} |
23 changes: 23 additions & 0 deletions
23
LETReview-GenEd-Math-006-PNU-IIFun/H5P.Image-1.1/language/da.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"semantics": [ | ||
{ | ||
"label": "Image" | ||
}, | ||
{ | ||
"label": "Decorative only", | ||
"description": "Enable this option if the image is purely decorative and does not add any information to the content on the page. It will be ignored by screen readers and not given any alternative text." | ||
}, | ||
{ | ||
"label": "Alternative text", | ||
"description": "Required. If the browser can't load the image this text will be displayed instead. Also used by \"text-to-speech\" readers." | ||
}, | ||
{ | ||
"label": "Hover text", | ||
"description": "Optional. This text is displayed when the users hover their pointing device over the image." | ||
}, | ||
{ | ||
"label": "Image content name", | ||
"default": "Image" | ||
} | ||
] | ||
} |
23 changes: 23 additions & 0 deletions
23
LETReview-GenEd-Math-006-PNU-IIFun/H5P.Image-1.1/language/de.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"semantics": [ | ||
{ | ||
"label": "Bild" | ||
}, | ||
{ | ||
"label": "Nur dekorativ", | ||
"description": "Wähle diese Option, wenn das Bild rein dekorativ ist und keine Informationen zum Inhalt der Seite hinzufügt. Es wird von Vorlesewerkzeugen ignoriert und erhält keinen Alternativtext." | ||
}, | ||
{ | ||
"label": "Alternativtext", | ||
"description": "Erforderlich. Falls das Bild nicht geladen werden kann, wird dieser Text stattdessen angezeigt. Wird auch zum Vorlesen von Bildschirmtexten genutzt." | ||
}, | ||
{ | ||
"label": "Mouseover-Text", | ||
"description": "Optional. Dieser Text wird angezeigt, wenn der Mauszeiger über dem Bild ruht." | ||
}, | ||
{ | ||
"label": "Name des Bildinhalts", | ||
"default": "Bild" | ||
} | ||
] | ||
} |
Oops, something went wrong.