Customization
Adding custom scripts and styles via constructor injection
const player = new H5PPlayer(
libraryStorage,
contentStorage,
config,
integrationObjectDefaults, // set to undefined if unneeded
urlGenerator, // set to undefined if unneeded
translationFunction,
{
customization: {
global: {
scripts: [
'/url/of/script/1.js',
'https://example.com/external/script.js'
],
styles: [
'/url/of/style/1.js',
'https://example.com/external/style.css'
]
}
}
}
);Adding custom scripts and styles via the configuration
Changing JavaScript and CSS files of individual libraries
Changing the semantics of individual libraries
Last updated
Was this helpful?