OPPG-376:
Added hook for modifying params. Replace getContentPath with getPath to reduce code and display absolute urls.pull/1/head
parent
0bd174b54a
commit
ddb6893d35
|
@ -16,7 +16,6 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var $ = H5P.jQuery;
|
var $ = H5P.jQuery;
|
||||||
var cp = H5P.getContentPath(contentId);
|
|
||||||
|
|
||||||
var texttemplate =
|
var texttemplate =
|
||||||
'<% if (introPage.showIntroPage) { %>' +
|
'<% if (introPage.showIntroPage) { %>' +
|
||||||
|
@ -234,7 +233,7 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
fitToWrapper: true,
|
fitToWrapper: true,
|
||||||
controls: false,
|
controls: false,
|
||||||
autoplay: true
|
autoplay: true
|
||||||
}, cp);
|
}, contentId);
|
||||||
video.endedCallback = function () {
|
video.endedCallback = function () {
|
||||||
displayResults();
|
displayResults();
|
||||||
$videoContainer.hide();
|
$videoContainer.hide();
|
||||||
|
@ -270,7 +269,7 @@ H5P.QuestionSet = function (options, contentId) {
|
||||||
if (params.backgroundImage !== undefined) {
|
if (params.backgroundImage !== undefined) {
|
||||||
$myDom.css({
|
$myDom.css({
|
||||||
overflow: 'hidden',
|
overflow: 'hidden',
|
||||||
background: '#000 url(' + cp + params.backgroundImage.path + ') no-repeat 50% 50%',
|
background: '#000 url(' + H5P.getPath(contentId, params.backgroundImage.path) + ') no-repeat 50% 50%',
|
||||||
backgroundSize: '100% auto'
|
backgroundSize: '100% auto'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue